Test duration: 8.807s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.110s |
2020-06-17 22:57:10 |
2020-06-17 22:57:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-17 22:57:10 | ------------------------------------ 2020-06-17 22:57:10 | [Mutex] waiting for: [configured:node:node-81abd49d-e366-40e3-8040-551baa4c31f5:node-b31f76ec-3908-4522-9c84-7c3ab138592b] 2020-06-17 22:57:10 | [Mutex] received everything. 2020-06-17 22:57:10 | [Mutex] isItemNotified: configured:node:node-81abd49d-e366-40e3-8040-551baa4c31f5:node-b31f76ec-3908-4522-9c84-7c3ab138592b :: true 2020-06-17 22:57:11 | [Mutex] waiting for: [received:nodes:fe944768-aafc-4521-9621-71d22ddad29a:localhost] 2020-06-17 22:57:11 | [Mutex] received everything. 2020-06-17 22:57:11 | [Mutex] isItemNotified: received:node:fe944768-aafc-4521-9621-71d22ddad29a:localhost:node-81abd49d-e366-40e3-8040-551baa4c31f5:Node 81abd49d-e366-40e3-8040-551baa4c31f5 :: true 2020-06-17 22:57:11 | [Mutex] waiting for: [received:nodes:c31b6aef-8926-4037-8f0e-f4b23ed095fc:localhost] 2020-06-17 22:57:11 | [Mutex] received everything. 2020-06-17 22:57:11 | [Mutex] isItemNotified: received:node:c31b6aef-8926-4037-8f0e-f4b23ed095fc:localhost:node-81abd49d-e366-40e3-8040-551baa4c31f5:Node 81abd49d-e366-40e3-8040-551baa4c31f5 :: false |
createNodes | 1.556s |
2020-06-17 22:57:07 |
2020-06-17 22:57:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-17 22:57:07 | ------------------------------------ 2020-06-17 22:57:08 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-81abd49d-e366-40e3-8040-551baa4c31f5", "pubsub#title": "Node 81abd49d-e366-40e3-8040-551baa4c31f5" } 2020-06-17 22:57:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-06-17 22:57:09 | [Mutex] waiting for: [received:nodes:c898d398-0cc5-48cf-b69e-5d49c8c68e0a:localhost] 2020-06-17 22:57:09 | [Mutex] received everything. 2020-06-17 22:57:09 | [Mutex] isItemNotified: received:node:c898d398-0cc5-48cf-b69e-5d49c8c68e0a:localhost:node-81abd49d-e366-40e3-8040-551baa4c31f5:Node 81abd49d-e366-40e3-8040-551baa4c31f5 :: true |
createSubnodes | 1.020s |
2020-06-17 22:57:09 |
2020-06-17 22:57:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-17 22:57:09 | ------------------------------------ 2020-06-17 22:57:09 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-b31f76ec-3908-4522-9c84-7c3ab138592b", "pubsub#title": "Node b31f76ec-3908-4522-9c84-7c3ab138592b" } 2020-06-17 22:57:09 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-06-17 22:57:10 | [Mutex] waiting for: [received:nodes:72226b2c-536d-4a01-a915-be7867cdd3af:localhost] 2020-06-17 22:57:10 | [Mutex] received everything. 2020-06-17 22:57:10 | [Mutex] isItemNotified: received:node:72226b2c-536d-4a01-a915-be7867cdd3af:localhost:node-b31f76ec-3908-4522-9c84-7c3ab138592b:Node b31f76ec-3908-4522-9c84-7c3ab138592b :: true |
deleteNodes | 1.017s |
2020-06-17 22:57:14 |
2020-06-17 22:57:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-17 22:57:14 | ------------------------------------ 2020-06-17 22:57:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b31f76ec-3908-4522-9c84-7c3ab138592b" } 2020-06-17 22:57:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-06-17 22:57:15 | [Mutex] waiting for: [received:nodes:0ccfe50e-951c-46b1-9d83-7744f40c7900:localhost] 2020-06-17 22:57:15 | [Mutex] received everything. 2020-06-17 22:57:15 | [Mutex] isItemNotified: received:node:0ccfe50e-951c-46b1-9d83-7744f40c7900:localhost:node-b31f76ec-3908-4522-9c84-7c3ab138592b:Node b31f76ec-3908-4522-9c84-7c3ab138592b :: false |
deleteSubnodes | 1.029s |
2020-06-17 22:57:13 |
2020-06-17 22:57:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-17 22:57:13 | ------------------------------------ 2020-06-17 22:57:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-81abd49d-e366-40e3-8040-551baa4c31f5" } 2020-06-17 22:57:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-06-17 22:57:14 | [Mutex] waiting for: [received:nodes:a3678512-ee17-4374-a71d-3b4d850abed4:localhost] 2020-06-17 22:57:14 | [Mutex] received everything. 2020-06-17 22:57:14 | [Mutex] isItemNotified: received:node:a3678512-ee17-4374-a71d-3b4d850abed4:localhost:node-81abd49d-e366-40e3-8040-551baa4c31f5:Node 81abd49d-e366-40e3-8040-551baa4c31f5 :: false 2020-06-17 22:57:14 | [Mutex] waiting for: [received:nodes:e602de77-6131-41db-b97e-41c8c4353f9c:localhost] 2020-06-17 22:57:14 | [Mutex] received everything. 2020-06-17 22:57:14 | [Mutex] isItemNotified: received:node:e602de77-6131-41db-b97e-41c8c4353f9c:localhost:node-81abd49d-e366-40e3-8040-551baa4c31f5:Node 81abd49d-e366-40e3-8040-551baa4c31f5 :: false |
publishItemsToNodes | 0.037s |
2020-06-17 22:57:12 |
2020-06-17 22:57:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-17 22:57:12 | ------------------------------------ 2020-06-17 22:57:12 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-81abd49d-e366-40e3-8040-551baa4c31f5", "entry": "<test>item-01a8371c-2b5d-48df-80c0-4130f28962ad</test>", "item-id": "item-01a8371c-2b5d-48df-80c0-4130f28962ad" } 2020-06-17 22:57:12 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-01a8371c-2b5d-48df-80c0-4130f28962ad" } 2020-06-17 22:57:12 | [Mutex] waiting for: [published:item:notifieditem-01a8371c-2b5d-48df-80c0-4130f28962ad:admin@localhost] 2020-06-17 22:57:12 | [Mutex] received everything. 2020-06-17 22:57:12 | [Mutex] isItemNotified: published:item:notifieditem-01a8371c-2b5d-48df-80c0-4130f28962ad:admin@localhost :: true |
retractItemsFromNodes | 0.064s |
2020-06-17 22:57:12 |
2020-06-17 22:57:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-17 22:57:12 | ------------------------------------ 2020-06-17 22:57:12 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-81abd49d-e366-40e3-8040-551baa4c31f5", "item-id": "item-01a8371c-2b5d-48df-80c0-4130f28962ad" } 2020-06-17 22:57:12 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-01a8371c-2b5d-48df-80c0-4130f28962ad" } 2020-06-17 22:57:12 | [Mutex] received everything. 2020-06-17 22:57:12 | [Mutex] isItemNotified: retracted:item:notifieditem-01a8371c-2b5d-48df-80c0-4130f28962ad:admin@localhost :: true |
retrieveItemsFromNodes | 0.058s |
2020-06-17 22:57:12 |
2020-06-17 22:57:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-17 22:57:12 | ------------------------------------ 2020-06-17 22:57:12 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-81abd49d-e366-40e3-8040-551baa4c31f5", "item-id": "item-01a8371c-2b5d-48df-80c0-4130f28962ad" } 2020-06-17 22:57:12 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-81abd49d-e366-40e3-8040-551baa4c31f5", "item-id": "item-01a8371c-2b5d-48df-80c0-4130f28962ad", "item": [ "<item id=\"item-01a8371c-2b5d-48df-80c0-4130f28962ad\"><test>item-01a8371c-2b5d-48df-80c0-4130f28962ad</test></item>" ] } 2020-06-17 22:57:12 | [Mutex] notify: [retrieved:item:item-01a8371c-2b5d-48df-80c0-4130f28962ad:payload-matches:true:localhost] 2020-06-17 22:57:12 | [Mutex] received everything. 2020-06-17 22:57:12 | [Mutex] isItemNotified: retrieved:item:item-01a8371c-2b5d-48df-80c0-4130f28962ad:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2020-06-17 22:57:12 |
2020-06-17 22:57:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-17 22:57:12 | ------------------------------------ 2020-06-17 22:57:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2020-06-17 22:57:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-81abd49d-e366-40e3-8040-551baa4c31f5", "test", "node-b31f76ec-3908-4522-9c84-7c3ab138592b" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2020-06-17 22:57:12 |
2020-06-17 22:57:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-17 22:57:12 | ------------------------------------ 2020-06-17 22:57:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-81abd49d-e366-40e3-8040-551baa4c31f5)" } 2020-06-17 22:57:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2020-06-17 22:57:11 |
2020-06-17 22:57:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-17 22:57:11 | ------------------------------------ 2020-06-17 22:57:11 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-81abd49d-e366-40e3-8040-551baa4c31f5", "jids": [ "admin@localhost" ] } 2020-06-17 22:57:11 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.060s |
2020-06-17 22:57:12 |
2020-06-17 22:57:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-17 22:57:12 | ------------------------------------ 2020-06-17 22:57:12 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-81abd49d-e366-40e3-8040-551baa4c31f5", "jids": [ "admin@localhost" ] } 2020-06-17 22:57:12 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |