Test duration : 8.872s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.104s |
2022-08-02 23:02:33 |
2022-08-02 23:02:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:02:33 | ------------------------------------ 2022-08-02 23:02:33 | [Mutex] waiting for: [configured:node:node-5074d25e-f5b0-4cab-b49d-72d846920b2b:node-f13f6e15-d6de-4725-9903-430152a5516f] 2022-08-02 23:02:33 | [Mutex] received everything. 2022-08-02 23:02:33 | [Mutex] isItemNotified: configured:node:node-5074d25e-f5b0-4cab-b49d-72d846920b2b:node-f13f6e15-d6de-4725-9903-430152a5516f :: true 2022-08-02 23:02:34 | [Mutex] waiting for: [received:nodes:5a36234e-0b9f-46bc-9a29-34efb8be7258:localhost] 2022-08-02 23:02:34 | [Mutex] received everything. 2022-08-02 23:02:34 | [Mutex] isItemNotified: received:node:5a36234e-0b9f-46bc-9a29-34efb8be7258:localhost:node-5074d25e-f5b0-4cab-b49d-72d846920b2b:Node 5074d25e-f5b0-4cab-b49d-72d846920b2b :: true 2022-08-02 23:02:34 | [Mutex] waiting for: [received:nodes:44fb5653-0f6b-43cd-bbf8-af937372ce4c:localhost] 2022-08-02 23:02:34 | [Mutex] received everything. 2022-08-02 23:02:34 | [Mutex] isItemNotified: received:node:44fb5653-0f6b-43cd-bbf8-af937372ce4c:localhost:node-5074d25e-f5b0-4cab-b49d-72d846920b2b:Node 5074d25e-f5b0-4cab-b49d-72d846920b2b :: false |
createNodes | 1.761s |
2022-08-02 23:02:30 |
2022-08-02 23:02:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:02:30 | ------------------------------------ 2022-08-02 23:02:30 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-5074d25e-f5b0-4cab-b49d-72d846920b2b", "pubsub#title": "Node 5074d25e-f5b0-4cab-b49d-72d846920b2b" } 2022-08-02 23:02:31 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-02 23:02:32 | [Mutex] waiting for: [received:nodes:0e6a27cf-ed7f-4865-9daa-d16b65886bb3:localhost] 2022-08-02 23:02:32 | [Mutex] waiting for: [received:nodes:0e6a27cf-ed7f-4865-9daa-d16b65886bb3:localhost] 2022-08-02 23:02:32 | [Mutex] received everything. 2022-08-02 23:02:32 | [Mutex] isItemNotified: received:node:0e6a27cf-ed7f-4865-9daa-d16b65886bb3:localhost:node-5074d25e-f5b0-4cab-b49d-72d846920b2b:Node 5074d25e-f5b0-4cab-b49d-72d846920b2b :: true |
createSubnodes | 1.026s |
2022-08-02 23:02:32 |
2022-08-02 23:02:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:02:32 | ------------------------------------ 2022-08-02 23:02:32 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-f13f6e15-d6de-4725-9903-430152a5516f", "pubsub#title": "Node f13f6e15-d6de-4725-9903-430152a5516f" } 2022-08-02 23:02:32 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-02 23:02:33 | [Mutex] waiting for: [received:nodes:f2f2ea42-9454-467e-a9cf-6f3b52654623:localhost] 2022-08-02 23:02:33 | [Mutex] received everything. 2022-08-02 23:02:33 | [Mutex] isItemNotified: received:node:f2f2ea42-9454-467e-a9cf-6f3b52654623:localhost:node-f13f6e15-d6de-4725-9903-430152a5516f:Node f13f6e15-d6de-4725-9903-430152a5516f :: true |
deleteNodes | 1.070s |
2022-08-02 23:02:37 |
2022-08-02 23:02:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:02:37 | ------------------------------------ 2022-08-02 23:02:37 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f13f6e15-d6de-4725-9903-430152a5516f" } 2022-08-02 23:02:37 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-02 23:02:38 | [Mutex] waiting for: [received:nodes:36f8399a-94c0-4435-8511-3dd2617aa205:localhost] 2022-08-02 23:02:38 | [Mutex] received everything. 2022-08-02 23:02:38 | [Mutex] isItemNotified: received:node:36f8399a-94c0-4435-8511-3dd2617aa205:localhost:node-f13f6e15-d6de-4725-9903-430152a5516f:Node f13f6e15-d6de-4725-9903-430152a5516f :: false |
deleteSubnodes | 1.027s |
2022-08-02 23:02:36 |
2022-08-02 23:02:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:02:36 | ------------------------------------ 2022-08-02 23:02:36 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5074d25e-f5b0-4cab-b49d-72d846920b2b" } 2022-08-02 23:02:36 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-02 23:02:37 | [Mutex] waiting for: [received:nodes:c5b742f4-dde0-4b28-8f08-bacce26d6a53:localhost] 2022-08-02 23:02:37 | [Mutex] received everything. 2022-08-02 23:02:37 | [Mutex] isItemNotified: received:node:c5b742f4-dde0-4b28-8f08-bacce26d6a53:localhost:node-5074d25e-f5b0-4cab-b49d-72d846920b2b:Node 5074d25e-f5b0-4cab-b49d-72d846920b2b :: false 2022-08-02 23:02:37 | [Mutex] waiting for: [received:nodes:ff30c4eb-ebd4-4830-ae07-11d001a1609d:localhost] 2022-08-02 23:02:37 | [Mutex] received everything. 2022-08-02 23:02:37 | [Mutex] isItemNotified: received:node:ff30c4eb-ebd4-4830-ae07-11d001a1609d:localhost:node-5074d25e-f5b0-4cab-b49d-72d846920b2b:Node 5074d25e-f5b0-4cab-b49d-72d846920b2b :: false |
publishItemsToNodes | 0.045s |
2022-08-02 23:02:35 |
2022-08-02 23:02:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:02:35 | ------------------------------------ 2022-08-02 23:02:35 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-5074d25e-f5b0-4cab-b49d-72d846920b2b", "entry": "<test>item-3b9cba69-9978-4d77-a42e-1fcfed1856c5</test>", "item-id": "item-3b9cba69-9978-4d77-a42e-1fcfed1856c5" } 2022-08-02 23:02:35 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3b9cba69-9978-4d77-a42e-1fcfed1856c5" } 2022-08-02 23:02:35 | [Mutex] waiting for: [published:item:notifieditem-3b9cba69-9978-4d77-a42e-1fcfed1856c5:admin@test-domain.com] 2022-08-02 23:02:35 | [Mutex] received everything. 2022-08-02 23:02:35 | [Mutex] isItemNotified: published:item:notifieditem-3b9cba69-9978-4d77-a42e-1fcfed1856c5:admin@test-domain.com :: true |
retractItemsFromNodes | 0.088s |
2022-08-02 23:02:35 |
2022-08-02 23:02:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:02:35 | ------------------------------------ 2022-08-02 23:02:35 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-5074d25e-f5b0-4cab-b49d-72d846920b2b", "item-id": "item-3b9cba69-9978-4d77-a42e-1fcfed1856c5" } 2022-08-02 23:02:35 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3b9cba69-9978-4d77-a42e-1fcfed1856c5" } 2022-08-02 23:02:35 | [Mutex] received everything. 2022-08-02 23:02:35 | [Mutex] isItemNotified: retracted:item:notifieditem-3b9cba69-9978-4d77-a42e-1fcfed1856c5:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.061s |
2022-08-02 23:02:35 |
2022-08-02 23:02:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:02:35 | ------------------------------------ 2022-08-02 23:02:35 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-5074d25e-f5b0-4cab-b49d-72d846920b2b", "item-id": "item-3b9cba69-9978-4d77-a42e-1fcfed1856c5" } 2022-08-02 23:02:35 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-5074d25e-f5b0-4cab-b49d-72d846920b2b", "item-id": "item-3b9cba69-9978-4d77-a42e-1fcfed1856c5", "item": [ "<item id=\"item-3b9cba69-9978-4d77-a42e-1fcfed1856c5\"><test>item-3b9cba69-9978-4d77-a42e-1fcfed1856c5</test></item>" ] } 2022-08-02 23:02:35 | [Mutex] notify: [retrieved:item:item-3b9cba69-9978-4d77-a42e-1fcfed1856c5:payload-matches:true:localhost] 2022-08-02 23:02:35 | [Mutex] received everything. 2022-08-02 23:02:35 | [Mutex] isItemNotified: retrieved:item:item-3b9cba69-9978-4d77-a42e-1fcfed1856c5:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-08-02 23:02:35 |
2022-08-02 23:02:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:02:35 | ------------------------------------ 2022-08-02 23:02:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-02 23:02:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-5074d25e-f5b0-4cab-b49d-72d846920b2b", "node-f13f6e15-d6de-4725-9903-430152a5516f" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-08-02 23:02:35 |
2022-08-02 23:02:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:02:35 | ------------------------------------ 2022-08-02 23:02:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-5074d25e-f5b0-4cab-b49d-72d846920b2b)" } 2022-08-02 23:02:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-08-02 23:02:34 |
2022-08-02 23:02:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:02:34 | ------------------------------------ 2022-08-02 23:02:34 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-5074d25e-f5b0-4cab-b49d-72d846920b2b", "jids": [ "admin@test-domain.com" ] } 2022-08-02 23:02:34 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-08-02 23:02:35 |
2022-08-02 23:02:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:02:35 | ------------------------------------ 2022-08-02 23:02:35 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-5074d25e-f5b0-4cab-b49d-72d846920b2b", "jids": [ "admin@test-domain.com" ] } 2022-08-02 23:02:35 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |