Test duration: 8.747s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.097s |
2019-11-25 20:18:31 |
2019-11-25 20:18:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:18:31 | ------------------------------------ 2019-11-25 20:18:31 | [Mutex] waiting for: [configured:node:node-fcdcc3b4-743d-4e30-a115-f0051e4ba742:node-91b48c38-de77-4e74-a158-d8ca1dad6049] 2019-11-25 20:18:31 | [Mutex] received everything. 2019-11-25 20:18:31 | [Mutex] isItemNotified: configured:node:node-fcdcc3b4-743d-4e30-a115-f0051e4ba742:node-91b48c38-de77-4e74-a158-d8ca1dad6049 :: true 2019-11-25 20:18:32 | [Mutex] waiting for: [received:nodes:42c933db-9172-429d-ab32-002a18a75457:localhost] 2019-11-25 20:18:32 | [Mutex] received everything. 2019-11-25 20:18:32 | [Mutex] isItemNotified: received:node:42c933db-9172-429d-ab32-002a18a75457:localhost:node-fcdcc3b4-743d-4e30-a115-f0051e4ba742:Node fcdcc3b4-743d-4e30-a115-f0051e4ba742 :: true 2019-11-25 20:18:32 | [Mutex] waiting for: [received:nodes:0203998b-adb3-498e-8004-c4168e226157:localhost] 2019-11-25 20:18:32 | [Mutex] waiting for: [received:nodes:0203998b-adb3-498e-8004-c4168e226157:localhost] 2019-11-25 20:18:32 | [Mutex] received everything. 2019-11-25 20:18:32 | [Mutex] isItemNotified: received:node:0203998b-adb3-498e-8004-c4168e226157:localhost:node-fcdcc3b4-743d-4e30-a115-f0051e4ba742:Node fcdcc3b4-743d-4e30-a115-f0051e4ba742 :: false |
createNodes | 1.518s |
2019-11-25 20:18:28 |
2019-11-25 20:18:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:18:28 | ------------------------------------ 2019-11-25 20:18:29 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-fcdcc3b4-743d-4e30-a115-f0051e4ba742", "pubsub#title": "Node fcdcc3b4-743d-4e30-a115-f0051e4ba742" } 2019-11-25 20:18:29 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-25 20:18:30 | [Mutex] waiting for: [received:nodes:6d2b8128-4326-43ea-b32c-b2c59107fa41:localhost] 2019-11-25 20:18:30 | [Mutex] received everything. 2019-11-25 20:18:30 | [Mutex] isItemNotified: received:node:6d2b8128-4326-43ea-b32c-b2c59107fa41:localhost:node-fcdcc3b4-743d-4e30-a115-f0051e4ba742:Node fcdcc3b4-743d-4e30-a115-f0051e4ba742 :: true |
createSubnodes | 1.024s |
2019-11-25 20:18:30 |
2019-11-25 20:18:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:18:30 | ------------------------------------ 2019-11-25 20:18:30 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-91b48c38-de77-4e74-a158-d8ca1dad6049", "pubsub#title": "Node 91b48c38-de77-4e74-a158-d8ca1dad6049" } 2019-11-25 20:18:30 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-25 20:18:31 | [Mutex] waiting for: [received:nodes:83249e51-fe09-4d52-8b75-a730df6a079f:localhost] 2019-11-25 20:18:31 | [Mutex] received everything. 2019-11-25 20:18:31 | [Mutex] isItemNotified: received:node:83249e51-fe09-4d52-8b75-a730df6a079f:localhost:node-91b48c38-de77-4e74-a158-d8ca1dad6049:Node 91b48c38-de77-4e74-a158-d8ca1dad6049 :: true |
deleteNodes | 1.019s |
2019-11-25 20:18:35 |
2019-11-25 20:18:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:18:35 | ------------------------------------ 2019-11-25 20:18:35 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-91b48c38-de77-4e74-a158-d8ca1dad6049" } 2019-11-25 20:18:35 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-25 20:18:36 | [Mutex] waiting for: [received:nodes:0e07d45e-bddb-4391-bebc-b4ac53f9c563:localhost] 2019-11-25 20:18:36 | [Mutex] received everything. 2019-11-25 20:18:36 | [Mutex] isItemNotified: received:node:0e07d45e-bddb-4391-bebc-b4ac53f9c563:localhost:node-91b48c38-de77-4e74-a158-d8ca1dad6049:Node 91b48c38-de77-4e74-a158-d8ca1dad6049 :: false |
deleteSubnodes | 1.033s |
2019-11-25 20:18:34 |
2019-11-25 20:18:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:18:34 | ------------------------------------ 2019-11-25 20:18:34 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-fcdcc3b4-743d-4e30-a115-f0051e4ba742" } 2019-11-25 20:18:34 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-25 20:18:35 | [Mutex] waiting for: [received:nodes:4d75fdd3-b4f9-410e-a6e7-6b33ef773dde:localhost] 2019-11-25 20:18:35 | [Mutex] received everything. 2019-11-25 20:18:35 | [Mutex] isItemNotified: received:node:4d75fdd3-b4f9-410e-a6e7-6b33ef773dde:localhost:node-fcdcc3b4-743d-4e30-a115-f0051e4ba742:Node fcdcc3b4-743d-4e30-a115-f0051e4ba742 :: false 2019-11-25 20:18:35 | [Mutex] waiting for: [received:nodes:527bb7ae-5886-486e-a535-83b83835772e:localhost] 2019-11-25 20:18:35 | [Mutex] received everything. 2019-11-25 20:18:35 | [Mutex] isItemNotified: received:node:527bb7ae-5886-486e-a535-83b83835772e:localhost:node-fcdcc3b4-743d-4e30-a115-f0051e4ba742:Node fcdcc3b4-743d-4e30-a115-f0051e4ba742 :: false |
publishItemsToNodes | 0.035s |
2019-11-25 20:18:33 |
2019-11-25 20:18:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:18:33 | ------------------------------------ 2019-11-25 20:18:33 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-fcdcc3b4-743d-4e30-a115-f0051e4ba742", "entry": "<test>item-4941fc23-f047-4f19-abb5-f9f34b624ede</test>", "item-id": "item-4941fc23-f047-4f19-abb5-f9f34b624ede" } 2019-11-25 20:18:33 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4941fc23-f047-4f19-abb5-f9f34b624ede" } 2019-11-25 20:18:33 | [Mutex] waiting for: [published:item:notifieditem-4941fc23-f047-4f19-abb5-f9f34b624ede:admin@localhost] 2019-11-25 20:18:33 | [Mutex] received everything. 2019-11-25 20:18:33 | [Mutex] isItemNotified: published:item:notifieditem-4941fc23-f047-4f19-abb5-f9f34b624ede:admin@localhost :: true |
retractItemsFromNodes | 0.059s |
2019-11-25 20:18:33 |
2019-11-25 20:18:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:18:33 | ------------------------------------ 2019-11-25 20:18:33 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-fcdcc3b4-743d-4e30-a115-f0051e4ba742", "item-id": "item-4941fc23-f047-4f19-abb5-f9f34b624ede" } 2019-11-25 20:18:33 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4941fc23-f047-4f19-abb5-f9f34b624ede" } 2019-11-25 20:18:33 | [Mutex] received everything. 2019-11-25 20:18:33 | [Mutex] isItemNotified: retracted:item:notifieditem-4941fc23-f047-4f19-abb5-f9f34b624ede:admin@localhost :: true |
retrieveItemsFromNodes | 0.055s |
2019-11-25 20:18:33 |
2019-11-25 20:18:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:18:33 | ------------------------------------ 2019-11-25 20:18:33 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-fcdcc3b4-743d-4e30-a115-f0051e4ba742", "item-id": "item-4941fc23-f047-4f19-abb5-f9f34b624ede" } 2019-11-25 20:18:33 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-fcdcc3b4-743d-4e30-a115-f0051e4ba742", "item-id": "item-4941fc23-f047-4f19-abb5-f9f34b624ede", "item": [ "<item id=\"item-4941fc23-f047-4f19-abb5-f9f34b624ede\"><test>item-4941fc23-f047-4f19-abb5-f9f34b624ede</test></item>" ] } 2019-11-25 20:18:33 | [Mutex] notify: [retrieved:item:item-4941fc23-f047-4f19-abb5-f9f34b624ede:payload-matches:true:localhost] 2019-11-25 20:18:33 | [Mutex] received everything. 2019-11-25 20:18:33 | [Mutex] isItemNotified: retrieved:item:item-4941fc23-f047-4f19-abb5-f9f34b624ede:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2019-11-25 20:18:33 |
2019-11-25 20:18:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:18:33 | ------------------------------------ 2019-11-25 20:18:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2019-11-25 20:18:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-91b48c38-de77-4e74-a158-d8ca1dad6049", "node-fcdcc3b4-743d-4e30-a115-f0051e4ba742" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2019-11-25 20:18:33 |
2019-11-25 20:18:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:18:33 | ------------------------------------ 2019-11-25 20:18:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-fcdcc3b4-743d-4e30-a115-f0051e4ba742)" } 2019-11-25 20:18:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2019-11-25 20:18:32 |
2019-11-25 20:18:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:18:32 | ------------------------------------ 2019-11-25 20:18:32 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-fcdcc3b4-743d-4e30-a115-f0051e4ba742", "jids": [ "admin@localhost" ] } 2019-11-25 20:18:32 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2019-11-25 20:18:33 |
2019-11-25 20:18:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:18:33 | ------------------------------------ 2019-11-25 20:18:33 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-fcdcc3b4-743d-4e30-a115-f0051e4ba742", "jids": [ "admin@localhost" ] } 2019-11-25 20:18:33 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |