Test duration: 9.056s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.096s |
2019-11-27 19:57:14 |
2019-11-27 19:57:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 19:57:14 | ------------------------------------ 2019-11-27 19:57:14 | [Mutex] waiting for: [configured:node:node-5bc46718-71f2-41e8-8d9d-cb12c398dd52:node-3385f178-693d-4dfb-85f3-3bf2128f99e1] 2019-11-27 19:57:14 | [Mutex] received everything. 2019-11-27 19:57:14 | [Mutex] isItemNotified: configured:node:node-5bc46718-71f2-41e8-8d9d-cb12c398dd52:node-3385f178-693d-4dfb-85f3-3bf2128f99e1 :: true 2019-11-27 19:57:15 | [Mutex] waiting for: [received:nodes:f5442cee-7a20-4e80-9386-f296c665d367:localhost] 2019-11-27 19:57:15 | [Mutex] received everything. 2019-11-27 19:57:15 | [Mutex] isItemNotified: received:node:f5442cee-7a20-4e80-9386-f296c665d367:localhost:node-5bc46718-71f2-41e8-8d9d-cb12c398dd52:Node 5bc46718-71f2-41e8-8d9d-cb12c398dd52 :: true 2019-11-27 19:57:15 | [Mutex] waiting for: [received:nodes:c2d7a7f6-efae-45d6-b28d-60fc168a0a39:localhost] 2019-11-27 19:57:15 | [Mutex] received everything. 2019-11-27 19:57:15 | [Mutex] isItemNotified: received:node:c2d7a7f6-efae-45d6-b28d-60fc168a0a39:localhost:node-5bc46718-71f2-41e8-8d9d-cb12c398dd52:Node 5bc46718-71f2-41e8-8d9d-cb12c398dd52 :: false |
createNodes | 1.732s |
2019-11-27 19:57:11 |
2019-11-27 19:57:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 19:57:11 | ------------------------------------ 2019-11-27 19:57:11 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-5bc46718-71f2-41e8-8d9d-cb12c398dd52", "pubsub#title": "Node 5bc46718-71f2-41e8-8d9d-cb12c398dd52" } 2019-11-27 19:57:12 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-27 19:57:13 | [Mutex] waiting for: [received:nodes:8c5e872f-697f-495a-be06-2fcf9d87442e:localhost] 2019-11-27 19:57:13 | [Mutex] received everything. 2019-11-27 19:57:13 | [Mutex] isItemNotified: received:node:8c5e872f-697f-495a-be06-2fcf9d87442e:localhost:node-5bc46718-71f2-41e8-8d9d-cb12c398dd52:Node 5bc46718-71f2-41e8-8d9d-cb12c398dd52 :: true |
createSubnodes | 1.023s |
2019-11-27 19:57:13 |
2019-11-27 19:57:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 19:57:13 | ------------------------------------ 2019-11-27 19:57:13 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-3385f178-693d-4dfb-85f3-3bf2128f99e1", "pubsub#title": "Node 3385f178-693d-4dfb-85f3-3bf2128f99e1" } 2019-11-27 19:57:13 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-27 19:57:14 | [Mutex] waiting for: [received:nodes:2d501133-bb94-476f-b519-923f82a857f2:localhost] 2019-11-27 19:57:14 | [Mutex] received everything. 2019-11-27 19:57:14 | [Mutex] isItemNotified: received:node:2d501133-bb94-476f-b519-923f82a857f2:localhost:node-3385f178-693d-4dfb-85f3-3bf2128f99e1:Node 3385f178-693d-4dfb-85f3-3bf2128f99e1 :: true |
deleteNodes | 1.022s |
2019-11-27 19:57:18 |
2019-11-27 19:57:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 19:57:18 | ------------------------------------ 2019-11-27 19:57:18 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3385f178-693d-4dfb-85f3-3bf2128f99e1" } 2019-11-27 19:57:18 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-27 19:57:19 | [Mutex] waiting for: [received:nodes:cbfda94b-c874-4c90-b209-91baa9414f04:localhost] 2019-11-27 19:57:19 | [Mutex] received everything. 2019-11-27 19:57:19 | [Mutex] isItemNotified: received:node:cbfda94b-c874-4c90-b209-91baa9414f04:localhost:node-3385f178-693d-4dfb-85f3-3bf2128f99e1:Node 3385f178-693d-4dfb-85f3-3bf2128f99e1 :: false |
deleteSubnodes | 1.032s |
2019-11-27 19:57:17 |
2019-11-27 19:57:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 19:57:17 | ------------------------------------ 2019-11-27 19:57:17 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5bc46718-71f2-41e8-8d9d-cb12c398dd52" } 2019-11-27 19:57:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-27 19:57:18 | [Mutex] waiting for: [received:nodes:d7870ffc-db45-4547-a08e-338d0310c901:localhost] 2019-11-27 19:57:18 | [Mutex] received everything. 2019-11-27 19:57:18 | [Mutex] isItemNotified: received:node:d7870ffc-db45-4547-a08e-338d0310c901:localhost:node-5bc46718-71f2-41e8-8d9d-cb12c398dd52:Node 5bc46718-71f2-41e8-8d9d-cb12c398dd52 :: false 2019-11-27 19:57:18 | [Mutex] waiting for: [received:nodes:e98cb49d-b0f2-4a66-96f4-cf8f26a0dc64:localhost] 2019-11-27 19:57:18 | [Mutex] received everything. 2019-11-27 19:57:18 | [Mutex] isItemNotified: received:node:e98cb49d-b0f2-4a66-96f4-cf8f26a0dc64:localhost:node-5bc46718-71f2-41e8-8d9d-cb12c398dd52:Node 5bc46718-71f2-41e8-8d9d-cb12c398dd52 :: false |
publishItemsToNodes | 0.067s |
2019-11-27 19:57:16 |
2019-11-27 19:57:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 19:57:16 | ------------------------------------ 2019-11-27 19:57:16 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-5bc46718-71f2-41e8-8d9d-cb12c398dd52", "entry": "<test>item-d91c4430-dae4-4c2d-aedc-64f12b448a9b</test>", "item-id": "item-d91c4430-dae4-4c2d-aedc-64f12b448a9b" } 2019-11-27 19:57:16 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d91c4430-dae4-4c2d-aedc-64f12b448a9b" } 2019-11-27 19:57:16 | [Mutex] waiting for: [published:item:notifieditem-d91c4430-dae4-4c2d-aedc-64f12b448a9b:admin@localhost] 2019-11-27 19:57:16 | [Mutex] received everything. 2019-11-27 19:57:16 | [Mutex] isItemNotified: published:item:notifieditem-d91c4430-dae4-4c2d-aedc-64f12b448a9b:admin@localhost :: true |
retractItemsFromNodes | 0.051s |
2019-11-27 19:57:16 |
2019-11-27 19:57:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 19:57:16 | ------------------------------------ 2019-11-27 19:57:16 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-5bc46718-71f2-41e8-8d9d-cb12c398dd52", "item-id": "item-d91c4430-dae4-4c2d-aedc-64f12b448a9b" } 2019-11-27 19:57:16 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d91c4430-dae4-4c2d-aedc-64f12b448a9b" } 2019-11-27 19:57:16 | [Mutex] received everything. 2019-11-27 19:57:16 | [Mutex] isItemNotified: retracted:item:notifieditem-d91c4430-dae4-4c2d-aedc-64f12b448a9b:admin@localhost :: true |
retrieveItemsFromNodes | 0.021s |
2019-11-27 19:57:16 |
2019-11-27 19:57:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 19:57:16 | ------------------------------------ 2019-11-27 19:57:16 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-5bc46718-71f2-41e8-8d9d-cb12c398dd52", "item-id": "item-d91c4430-dae4-4c2d-aedc-64f12b448a9b" } 2019-11-27 19:57:16 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-5bc46718-71f2-41e8-8d9d-cb12c398dd52", "item-id": "item-d91c4430-dae4-4c2d-aedc-64f12b448a9b", "item": [ "<item id=\"item-d91c4430-dae4-4c2d-aedc-64f12b448a9b\"><test>item-d91c4430-dae4-4c2d-aedc-64f12b448a9b</test></item>" ] } 2019-11-27 19:57:16 | [Mutex] notify: [retrieved:item:item-d91c4430-dae4-4c2d-aedc-64f12b448a9b:payload-matches:true:localhost] 2019-11-27 19:57:16 | [Mutex] received everything. 2019-11-27 19:57:16 | [Mutex] isItemNotified: retrieved:item:item-d91c4430-dae4-4c2d-aedc-64f12b448a9b:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.058s |
2019-11-27 19:57:16 |
2019-11-27 19:57:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 19:57:16 | ------------------------------------ 2019-11-27 19:57:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2019-11-27 19:57:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-5bc46718-71f2-41e8-8d9d-cb12c398dd52", "node-3385f178-693d-4dfb-85f3-3bf2128f99e1" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2019-11-27 19:57:16 |
2019-11-27 19:57:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 19:57:16 | ------------------------------------ 2019-11-27 19:57:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-5bc46718-71f2-41e8-8d9d-cb12c398dd52)" } 2019-11-27 19:57:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2019-11-27 19:57:15 |
2019-11-27 19:57:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 19:57:15 | ------------------------------------ 2019-11-27 19:57:15 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-5bc46718-71f2-41e8-8d9d-cb12c398dd52", "jids": [ "admin@localhost" ] } 2019-11-27 19:57:15 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2019-11-27 19:57:16 |
2019-11-27 19:57:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 19:57:16 | ------------------------------------ 2019-11-27 19:57:16 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-5bc46718-71f2-41e8-8d9d-cb12c398dd52", "jids": [ "admin@localhost" ] } 2019-11-27 19:57:16 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |