Generated by TestNG with ReportNG at 22:23 PDT on Monday 20 September 2021
root@b2c2a8eba6e6 / 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 : 9.146s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.089s
2021-09-20 22:38:06 |

2021-09-20 22:38:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:38:06 | ------------------------------------

2021-09-20 22:38:06 | [Mutex] waiting for: [configured:node:node-2491f705-e3b0-4634-93d2-87c02aa0c28d:node-c1890e22-db64-42d9-9225-fd0586f8b752]

2021-09-20 22:38:06 | [Mutex] received everything.

2021-09-20 22:38:06 | [Mutex] isItemNotified: configured:node:node-2491f705-e3b0-4634-93d2-87c02aa0c28d:node-c1890e22-db64-42d9-9225-fd0586f8b752 :: true

2021-09-20 22:38:07 | [Mutex] waiting for: [received:nodes:5802967a-12b2-4bb8-95a6-ce2e54082443:localhost]

2021-09-20 22:38:07 | [Mutex] received everything.

2021-09-20 22:38:07 | [Mutex] isItemNotified: received:node:5802967a-12b2-4bb8-95a6-ce2e54082443:localhost:node-2491f705-e3b0-4634-93d2-87c02aa0c28d:Node 2491f705-e3b0-4634-93d2-87c02aa0c28d :: true

2021-09-20 22:38:07 | [Mutex] waiting for: [received:nodes:eb56c7c5-ca6e-4039-9184-e80c9e2fa3e0:localhost]

2021-09-20 22:38:07 | [Mutex] waiting for: [received:nodes:eb56c7c5-ca6e-4039-9184-e80c9e2fa3e0:localhost]

2021-09-20 22:38:07 | [Mutex] waiting for: [received:nodes:eb56c7c5-ca6e-4039-9184-e80c9e2fa3e0:localhost]

2021-09-20 22:38:07 | [Mutex] received everything.

2021-09-20 22:38:07 | [Mutex] isItemNotified: received:node:eb56c7c5-ca6e-4039-9184-e80c9e2fa3e0:localhost:node-2491f705-e3b0-4634-93d2-87c02aa0c28d:Node 2491f705-e3b0-4634-93d2-87c02aa0c28d :: false

createNodes 1.830s
2021-09-20 22:38:03 |

2021-09-20 22:38:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:38:03 | ------------------------------------

2021-09-20 22:38:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2491f705-e3b0-4634-93d2-87c02aa0c28d",
    "pubsub#title": "Node 2491f705-e3b0-4634-93d2-87c02aa0c28d"
}

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

2021-09-20 22:38:05 | [Mutex] waiting for: [received:nodes:47071869-3f79-4a38-8d77-171999f6e9f7:localhost]

2021-09-20 22:38:05 | [Mutex] received everything.

2021-09-20 22:38:05 | [Mutex] isItemNotified: received:node:47071869-3f79-4a38-8d77-171999f6e9f7:localhost:node-2491f705-e3b0-4634-93d2-87c02aa0c28d:Node 2491f705-e3b0-4634-93d2-87c02aa0c28d :: true

createSubnodes 1.027s
2021-09-20 22:38:05 |

2021-09-20 22:38:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:38:05 | ------------------------------------

2021-09-20 22:38:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c1890e22-db64-42d9-9225-fd0586f8b752",
    "pubsub#title": "Node c1890e22-db64-42d9-9225-fd0586f8b752"
}

2021-09-20 22:38:05 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-20 22:38:06 | [Mutex] waiting for: [received:nodes:86a9e711-ed2c-4dd1-97ed-26c03d4a4cbc:localhost]

2021-09-20 22:38:06 | [Mutex] received everything.

2021-09-20 22:38:06 | [Mutex] isItemNotified: received:node:86a9e711-ed2c-4dd1-97ed-26c03d4a4cbc:localhost:node-c1890e22-db64-42d9-9225-fd0586f8b752:Node c1890e22-db64-42d9-9225-fd0586f8b752 :: true

deleteNodes 1.024s
2021-09-20 22:38:10 |

2021-09-20 22:38:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:38:10 | ------------------------------------

2021-09-20 22:38:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c1890e22-db64-42d9-9225-fd0586f8b752"
}

2021-09-20 22:38:10 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-20 22:38:11 | [Mutex] waiting for: [received:nodes:abf0c0a1-8dea-4527-ba10-e9d6ab428287:localhost]

2021-09-20 22:38:11 | [Mutex] received everything.

2021-09-20 22:38:11 | [Mutex] isItemNotified: received:node:abf0c0a1-8dea-4527-ba10-e9d6ab428287:localhost:node-c1890e22-db64-42d9-9225-fd0586f8b752:Node c1890e22-db64-42d9-9225-fd0586f8b752 :: false

deleteSubnodes 1.026s
2021-09-20 22:38:09 |

2021-09-20 22:38:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:38:09 | ------------------------------------

2021-09-20 22:38:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2491f705-e3b0-4634-93d2-87c02aa0c28d"
}

2021-09-20 22:38:09 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-20 22:38:10 | [Mutex] waiting for: [received:nodes:8f1a14e3-5448-4904-8d5a-2609675322cd:localhost]

2021-09-20 22:38:10 | [Mutex] waiting for: [received:nodes:8f1a14e3-5448-4904-8d5a-2609675322cd:localhost]

2021-09-20 22:38:10 | [Mutex] received everything.

2021-09-20 22:38:10 | [Mutex] isItemNotified: received:node:8f1a14e3-5448-4904-8d5a-2609675322cd:localhost:node-2491f705-e3b0-4634-93d2-87c02aa0c28d:Node 2491f705-e3b0-4634-93d2-87c02aa0c28d :: false

2021-09-20 22:38:10 | [Mutex] waiting for: [received:nodes:faa5953f-3420-41d8-ae03-4857c9236d4f:localhost]

2021-09-20 22:38:10 | [Mutex] received everything.

2021-09-20 22:38:10 | [Mutex] isItemNotified: received:node:faa5953f-3420-41d8-ae03-4857c9236d4f:localhost:node-2491f705-e3b0-4634-93d2-87c02aa0c28d:Node 2491f705-e3b0-4634-93d2-87c02aa0c28d :: false

publishItemsToNodes 0.048s
2021-09-20 22:38:08 |

2021-09-20 22:38:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:38:08 | ------------------------------------

2021-09-20 22:38:08 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2491f705-e3b0-4634-93d2-87c02aa0c28d",
    "entry": "<test>item-cfba461a-e243-46fc-8e55-67a724c6e840</test>",
    "item-id": "item-cfba461a-e243-46fc-8e55-67a724c6e840"
}

2021-09-20 22:38:08 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cfba461a-e243-46fc-8e55-67a724c6e840"
}

2021-09-20 22:38:08 | [Mutex] waiting for: [published:item:notifieditem-cfba461a-e243-46fc-8e55-67a724c6e840:admin@test-domain.com]

2021-09-20 22:38:08 | [Mutex] received everything.

2021-09-20 22:38:08 | [Mutex] isItemNotified: published:item:notifieditem-cfba461a-e243-46fc-8e55-67a724c6e840:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2021-09-20 22:38:08 |

2021-09-20 22:38:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:38:08 | ------------------------------------

2021-09-20 22:38:08 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2491f705-e3b0-4634-93d2-87c02aa0c28d",
    "item-id": "item-cfba461a-e243-46fc-8e55-67a724c6e840"
}

2021-09-20 22:38:08 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cfba461a-e243-46fc-8e55-67a724c6e840"
}

2021-09-20 22:38:08 | [Mutex] waiting for: [retracted:item:notifieditem-cfba461a-e243-46fc-8e55-67a724c6e840:admin@test-domain.com]

2021-09-20 22:38:08 | [Mutex] received everything.

2021-09-20 22:38:08 | [Mutex] isItemNotified: retracted:item:notifieditem-cfba461a-e243-46fc-8e55-67a724c6e840:admin@test-domain.com :: true

retrieveItemsFromNodes 0.078s
2021-09-20 22:38:08 |

2021-09-20 22:38:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:38:08 | ------------------------------------

2021-09-20 22:38:08 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2491f705-e3b0-4634-93d2-87c02aa0c28d",
    "item-id": "item-cfba461a-e243-46fc-8e55-67a724c6e840"
}

2021-09-20 22:38:08 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2491f705-e3b0-4634-93d2-87c02aa0c28d",
    "item-id": "item-cfba461a-e243-46fc-8e55-67a724c6e840",
    "item": [
        "<item id=\"item-cfba461a-e243-46fc-8e55-67a724c6e840\"><test>item-cfba461a-e243-46fc-8e55-67a724c6e840</test></item>"
    ]
}

2021-09-20 22:38:08 | [Mutex] notify: [retrieved:item:item-cfba461a-e243-46fc-8e55-67a724c6e840:payload-matches:true:localhost]

2021-09-20 22:38:08 | [Mutex] received everything.

2021-09-20 22:38:08 | [Mutex] isItemNotified: retrieved:item:item-cfba461a-e243-46fc-8e55-67a724c6e840:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-09-20 22:38:08 |

2021-09-20 22:38:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:38:08 | ------------------------------------

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

2021-09-20 22:38:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-2491f705-e3b0-4634-93d2-87c02aa0c28d",
        "node-c1890e22-db64-42d9-9225-fd0586f8b752"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-09-20 22:38:08 |

2021-09-20 22:38:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:38:08 | ------------------------------------

2021-09-20 22:38:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2491f705-e3b0-4634-93d2-87c02aa0c28d)"
}

2021-09-20 22:38:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2021-09-20 22:38:07 |

2021-09-20 22:38:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:38:07 | ------------------------------------

2021-09-20 22:38:07 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2491f705-e3b0-4634-93d2-87c02aa0c28d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-20 22:38:07 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2021-09-20 22:38:08 |

2021-09-20 22:38:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:38:08 | ------------------------------------

2021-09-20 22:38:08 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2491f705-e3b0-4634-93d2-87c02aa0c28d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-20 22:38:08 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}