Generated by TestNG with ReportNG at 22:01 PDT on Wednesday 21 April 2021
root@f29ef40080b5 / Java 11.0.8 (Ubuntu) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.797s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.095s
2021-04-21 22:16:02 |

2021-04-21 22:16:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:16:02 | ------------------------------------

2021-04-21 22:16:02 | [Mutex] waiting for: [configured:node:node-3aed68ff-b330-4016-8750-02f8592aed40:node-9d940b49-a264-4339-a021-7c15a5db37ee]

2021-04-21 22:16:02 | [Mutex] received everything.

2021-04-21 22:16:02 | [Mutex] isItemNotified: configured:node:node-3aed68ff-b330-4016-8750-02f8592aed40:node-9d940b49-a264-4339-a021-7c15a5db37ee :: true

2021-04-21 22:16:03 | [Mutex] waiting for: [received:nodes:51942a01-d5a2-4121-bd2b-b41c576ee702:localhost]

2021-04-21 22:16:03 | [Mutex] waiting for: [received:nodes:51942a01-d5a2-4121-bd2b-b41c576ee702:localhost]

2021-04-21 22:16:03 | [Mutex] received everything.

2021-04-21 22:16:03 | [Mutex] isItemNotified: received:node:51942a01-d5a2-4121-bd2b-b41c576ee702:localhost:node-3aed68ff-b330-4016-8750-02f8592aed40:Node 3aed68ff-b330-4016-8750-02f8592aed40 :: true

2021-04-21 22:16:03 | [Mutex] waiting for: [received:nodes:f967ad11-d8d3-41cd-b2b9-41ed41aa1f2f:localhost]

2021-04-21 22:16:03 | [Mutex] waiting for: [received:nodes:f967ad11-d8d3-41cd-b2b9-41ed41aa1f2f:localhost]

2021-04-21 22:16:03 | [Mutex] waiting for: [received:nodes:f967ad11-d8d3-41cd-b2b9-41ed41aa1f2f:localhost]

2021-04-21 22:16:03 | [Mutex] waiting for: [received:nodes:f967ad11-d8d3-41cd-b2b9-41ed41aa1f2f:localhost]

2021-04-21 22:16:03 | [Mutex] received everything.

2021-04-21 22:16:03 | [Mutex] isItemNotified: received:node:f967ad11-d8d3-41cd-b2b9-41ed41aa1f2f:localhost:node-3aed68ff-b330-4016-8750-02f8592aed40:Node 3aed68ff-b330-4016-8750-02f8592aed40 :: false

createNodes 1.572s
2021-04-21 22:15:59 |

2021-04-21 22:15:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:15:59 | ------------------------------------

2021-04-21 22:16:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3aed68ff-b330-4016-8750-02f8592aed40",
    "pubsub#title": "Node 3aed68ff-b330-4016-8750-02f8592aed40"
}

2021-04-21 22:16:00 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-21 22:16:01 | [Mutex] waiting for: [received:nodes:a49859a6-8fb6-426c-8663-07219c4cdd49:localhost]

2021-04-21 22:16:01 | [Mutex] received everything.

2021-04-21 22:16:01 | [Mutex] isItemNotified: received:node:a49859a6-8fb6-426c-8663-07219c4cdd49:localhost:node-3aed68ff-b330-4016-8750-02f8592aed40:Node 3aed68ff-b330-4016-8750-02f8592aed40 :: true

createSubnodes 1.051s
2021-04-21 22:16:01 |

2021-04-21 22:16:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:16:01 | ------------------------------------

2021-04-21 22:16:01 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-9d940b49-a264-4339-a021-7c15a5db37ee",
    "pubsub#title": "Node 9d940b49-a264-4339-a021-7c15a5db37ee"
}

2021-04-21 22:16:01 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-21 22:16:02 | [Mutex] waiting for: [received:nodes:69d6e810-9c49-4439-9cbb-4e7bee7d0655:localhost]

2021-04-21 22:16:02 | [Mutex] received everything.

2021-04-21 22:16:02 | [Mutex] isItemNotified: received:node:69d6e810-9c49-4439-9cbb-4e7bee7d0655:localhost:node-9d940b49-a264-4339-a021-7c15a5db37ee:Node 9d940b49-a264-4339-a021-7c15a5db37ee :: true

deleteNodes 1.021s
2021-04-21 22:16:06 |

2021-04-21 22:16:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:16:06 | ------------------------------------

2021-04-21 22:16:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9d940b49-a264-4339-a021-7c15a5db37ee"
}

2021-04-21 22:16:06 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-21 22:16:07 | [Mutex] waiting for: [received:nodes:f1a91e6d-164a-4cab-aa08-5bc7d93d44a2:localhost]

2021-04-21 22:16:07 | [Mutex] received everything.

2021-04-21 22:16:07 | [Mutex] isItemNotified: received:node:f1a91e6d-164a-4cab-aa08-5bc7d93d44a2:localhost:node-9d940b49-a264-4339-a021-7c15a5db37ee:Node 9d940b49-a264-4339-a021-7c15a5db37ee :: false

deleteSubnodes 1.028s
2021-04-21 22:16:05 |

2021-04-21 22:16:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:16:05 | ------------------------------------

2021-04-21 22:16:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3aed68ff-b330-4016-8750-02f8592aed40"
}

2021-04-21 22:16:05 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-21 22:16:06 | [Mutex] waiting for: [received:nodes:329216c6-a53e-4252-a80b-34ebb66f857f:localhost]

2021-04-21 22:16:06 | [Mutex] received everything.

2021-04-21 22:16:06 | [Mutex] isItemNotified: received:node:329216c6-a53e-4252-a80b-34ebb66f857f:localhost:node-3aed68ff-b330-4016-8750-02f8592aed40:Node 3aed68ff-b330-4016-8750-02f8592aed40 :: false

2021-04-21 22:16:06 | [Mutex] waiting for: [received:nodes:d9088bea-5048-491d-a6de-51e7ab1199d6:localhost]

2021-04-21 22:16:06 | [Mutex] received everything.

2021-04-21 22:16:06 | [Mutex] isItemNotified: received:node:d9088bea-5048-491d-a6de-51e7ab1199d6:localhost:node-3aed68ff-b330-4016-8750-02f8592aed40:Node 3aed68ff-b330-4016-8750-02f8592aed40 :: false

publishItemsToNodes 0.040s
2021-04-21 22:16:04 |

2021-04-21 22:16:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:16:04 | ------------------------------------

2021-04-21 22:16:04 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3aed68ff-b330-4016-8750-02f8592aed40",
    "entry": "<test>item-f00d102e-cbac-4eb2-888c-8c953e9201b4</test>",
    "item-id": "item-f00d102e-cbac-4eb2-888c-8c953e9201b4"
}

2021-04-21 22:16:04 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f00d102e-cbac-4eb2-888c-8c953e9201b4"
}

2021-04-21 22:16:04 | [Mutex] waiting for: [published:item:notifieditem-f00d102e-cbac-4eb2-888c-8c953e9201b4:admin@test-domain.com]

2021-04-21 22:16:04 | [Mutex] received everything.

2021-04-21 22:16:04 | [Mutex] isItemNotified: published:item:notifieditem-f00d102e-cbac-4eb2-888c-8c953e9201b4:admin@test-domain.com :: true

retractItemsFromNodes 0.080s
2021-04-21 22:16:04 |

2021-04-21 22:16:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:16:04 | ------------------------------------

2021-04-21 22:16:04 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3aed68ff-b330-4016-8750-02f8592aed40",
    "item-id": "item-f00d102e-cbac-4eb2-888c-8c953e9201b4"
}

2021-04-21 22:16:04 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f00d102e-cbac-4eb2-888c-8c953e9201b4"
}

2021-04-21 22:16:04 | [Mutex] received everything.

2021-04-21 22:16:04 | [Mutex] isItemNotified: retracted:item:notifieditem-f00d102e-cbac-4eb2-888c-8c953e9201b4:admin@test-domain.com :: true

retrieveItemsFromNodes 0.061s
2021-04-21 22:16:04 |

2021-04-21 22:16:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:16:04 | ------------------------------------

2021-04-21 22:16:04 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3aed68ff-b330-4016-8750-02f8592aed40",
    "item-id": "item-f00d102e-cbac-4eb2-888c-8c953e9201b4"
}

2021-04-21 22:16:04 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3aed68ff-b330-4016-8750-02f8592aed40",
    "item-id": "item-f00d102e-cbac-4eb2-888c-8c953e9201b4",
    "item": [
        "<item id=\"item-f00d102e-cbac-4eb2-888c-8c953e9201b4\"><test>item-f00d102e-cbac-4eb2-888c-8c953e9201b4</test></item>"
    ]
}

2021-04-21 22:16:04 | [Mutex] notify: [retrieved:item:item-f00d102e-cbac-4eb2-888c-8c953e9201b4:payload-matches:true:localhost]

2021-04-21 22:16:04 | [Mutex] received everything.

2021-04-21 22:16:04 | [Mutex] isItemNotified: retrieved:item:item-f00d102e-cbac-4eb2-888c-8c953e9201b4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-04-21 22:16:04 |

2021-04-21 22:16:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:16:04 | ------------------------------------

2021-04-21 22:16:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-04-21 22:16:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-9d940b49-a264-4339-a021-7c15a5db37ee",
        "test",
        "node-3aed68ff-b330-4016-8750-02f8592aed40"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-04-21 22:16:04 |

2021-04-21 22:16:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:16:04 | ------------------------------------

2021-04-21 22:16:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3aed68ff-b330-4016-8750-02f8592aed40)"
}

2021-04-21 22:16:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2021-04-21 22:16:03 |

2021-04-21 22:16:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:16:03 | ------------------------------------

2021-04-21 22:16:03 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3aed68ff-b330-4016-8750-02f8592aed40",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-21 22:16:03 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.066s
2021-04-21 22:16:04 |

2021-04-21 22:16:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:16:04 | ------------------------------------

2021-04-21 22:16:04 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3aed68ff-b330-4016-8750-02f8592aed40",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-21 22:16:04 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}