Test duration: 9.050s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.111s |
2020-02-09 18:46:34 |
2020-02-09 18:46:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-09 18:46:34 | ------------------------------------ 2020-02-09 18:46:34 | [Mutex] waiting for: [configured:node:node-c2861bf6-8685-48d2-b522-b28317e25441:node-bf9ed9ca-08a4-414f-903f-6610ad3b94c2] 2020-02-09 18:46:35 | [Mutex] received everything. 2020-02-09 18:46:35 | [Mutex] isItemNotified: configured:node:node-c2861bf6-8685-48d2-b522-b28317e25441:node-bf9ed9ca-08a4-414f-903f-6610ad3b94c2 :: true 2020-02-09 18:46:36 | [Mutex] waiting for: [received:nodes:bd02570b-9ecb-416d-b21e-ef311188dd3c:localhost] 2020-02-09 18:46:36 | [Mutex] received everything. 2020-02-09 18:46:36 | [Mutex] isItemNotified: received:node:bd02570b-9ecb-416d-b21e-ef311188dd3c:localhost:node-c2861bf6-8685-48d2-b522-b28317e25441:Node c2861bf6-8685-48d2-b522-b28317e25441 :: true 2020-02-09 18:46:36 | [Mutex] waiting for: [received:nodes:5cc2e534-d236-494e-89ea-ee75b01f8ae9:localhost] 2020-02-09 18:46:36 | [Mutex] received everything. 2020-02-09 18:46:36 | [Mutex] isItemNotified: received:node:5cc2e534-d236-494e-89ea-ee75b01f8ae9:localhost:node-c2861bf6-8685-48d2-b522-b28317e25441:Node c2861bf6-8685-48d2-b522-b28317e25441 :: false |
createNodes | 1.670s |
2020-02-09 18:46:32 |
2020-02-09 18:46:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-09 18:46:32 | ------------------------------------ 2020-02-09 18:46:32 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-c2861bf6-8685-48d2-b522-b28317e25441", "pubsub#title": "Node c2861bf6-8685-48d2-b522-b28317e25441" } 2020-02-09 18:46:32 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-02-09 18:46:33 | [Mutex] waiting for: [received:nodes:5d87b704-0037-402c-96d3-f30654a8bdfb:localhost] 2020-02-09 18:46:33 | [Mutex] received everything. 2020-02-09 18:46:33 | [Mutex] isItemNotified: received:node:5d87b704-0037-402c-96d3-f30654a8bdfb:localhost:node-c2861bf6-8685-48d2-b522-b28317e25441:Node c2861bf6-8685-48d2-b522-b28317e25441 :: true |
createSubnodes | 1.024s |
2020-02-09 18:46:33 |
2020-02-09 18:46:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-09 18:46:33 | ------------------------------------ 2020-02-09 18:46:33 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-bf9ed9ca-08a4-414f-903f-6610ad3b94c2", "pubsub#title": "Node bf9ed9ca-08a4-414f-903f-6610ad3b94c2" } 2020-02-09 18:46:33 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-02-09 18:46:34 | [Mutex] waiting for: [received:nodes:cced4a42-7378-408d-88ee-2a1d0f00e355:localhost] 2020-02-09 18:46:34 | [Mutex] waiting for: [received:nodes:cced4a42-7378-408d-88ee-2a1d0f00e355:localhost] 2020-02-09 18:46:34 | [Mutex] received everything. 2020-02-09 18:46:34 | [Mutex] isItemNotified: received:node:cced4a42-7378-408d-88ee-2a1d0f00e355:localhost:node-bf9ed9ca-08a4-414f-903f-6610ad3b94c2:Node bf9ed9ca-08a4-414f-903f-6610ad3b94c2 :: true |
deleteNodes | 1.023s |
2020-02-09 18:46:39 |
2020-02-09 18:46:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-09 18:46:39 | ------------------------------------ 2020-02-09 18:46:39 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-bf9ed9ca-08a4-414f-903f-6610ad3b94c2" } 2020-02-09 18:46:39 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-02-09 18:46:40 | [Mutex] waiting for: [received:nodes:ce02cf0b-d850-4772-85e1-aeb5e5a5485f:localhost] 2020-02-09 18:46:40 | [Mutex] waiting for: [received:nodes:ce02cf0b-d850-4772-85e1-aeb5e5a5485f:localhost] 2020-02-09 18:46:40 | [Mutex] received everything. 2020-02-09 18:46:40 | [Mutex] isItemNotified: received:node:ce02cf0b-d850-4772-85e1-aeb5e5a5485f:localhost:node-bf9ed9ca-08a4-414f-903f-6610ad3b94c2:Node bf9ed9ca-08a4-414f-903f-6610ad3b94c2 :: false |
deleteSubnodes | 1.033s |
2020-02-09 18:46:38 |
2020-02-09 18:46:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-09 18:46:38 | ------------------------------------ 2020-02-09 18:46:38 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c2861bf6-8685-48d2-b522-b28317e25441" } 2020-02-09 18:46:38 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-02-09 18:46:39 | [Mutex] waiting for: [received:nodes:9d5e8818-eac5-4e9c-ab19-50996cd170f2:localhost] 2020-02-09 18:46:39 | [Mutex] received everything. 2020-02-09 18:46:39 | [Mutex] isItemNotified: received:node:9d5e8818-eac5-4e9c-ab19-50996cd170f2:localhost:node-c2861bf6-8685-48d2-b522-b28317e25441:Node c2861bf6-8685-48d2-b522-b28317e25441 :: false 2020-02-09 18:46:39 | [Mutex] waiting for: [received:nodes:98ff04b8-41a4-4d91-80d0-fac22d3a2c67:localhost] 2020-02-09 18:46:39 | [Mutex] received everything. 2020-02-09 18:46:39 | [Mutex] isItemNotified: received:node:98ff04b8-41a4-4d91-80d0-fac22d3a2c67:localhost:node-c2861bf6-8685-48d2-b522-b28317e25441:Node c2861bf6-8685-48d2-b522-b28317e25441 :: false |
publishItemsToNodes | 0.040s |
2020-02-09 18:46:37 |
2020-02-09 18:46:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-09 18:46:37 | ------------------------------------ 2020-02-09 18:46:37 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-c2861bf6-8685-48d2-b522-b28317e25441", "entry": "<test>item-447e8842-8d6b-4923-ad13-336ab0c11840</test>", "item-id": "item-447e8842-8d6b-4923-ad13-336ab0c11840" } 2020-02-09 18:46:37 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-447e8842-8d6b-4923-ad13-336ab0c11840" } 2020-02-09 18:46:37 | [Mutex] waiting for: [published:item:notifieditem-447e8842-8d6b-4923-ad13-336ab0c11840:admin@localhost] 2020-02-09 18:46:37 | [Mutex] received everything. 2020-02-09 18:46:37 | [Mutex] isItemNotified: published:item:notifieditem-447e8842-8d6b-4923-ad13-336ab0c11840:admin@localhost :: true |
retractItemsFromNodes | 0.059s |
2020-02-09 18:46:37 |
2020-02-09 18:46:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-09 18:46:37 | ------------------------------------ 2020-02-09 18:46:37 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-c2861bf6-8685-48d2-b522-b28317e25441", "item-id": "item-447e8842-8d6b-4923-ad13-336ab0c11840" } 2020-02-09 18:46:37 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-447e8842-8d6b-4923-ad13-336ab0c11840" } 2020-02-09 18:46:37 | [Mutex] received everything. 2020-02-09 18:46:37 | [Mutex] isItemNotified: retracted:item:notifieditem-447e8842-8d6b-4923-ad13-336ab0c11840:admin@localhost :: true |
retrieveItemsFromNodes | 0.071s |
2020-02-09 18:46:37 |
2020-02-09 18:46:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-09 18:46:37 | ------------------------------------ 2020-02-09 18:46:37 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-c2861bf6-8685-48d2-b522-b28317e25441", "item-id": "item-447e8842-8d6b-4923-ad13-336ab0c11840" } 2020-02-09 18:46:37 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-c2861bf6-8685-48d2-b522-b28317e25441", "item-id": "item-447e8842-8d6b-4923-ad13-336ab0c11840", "item": [ "<item id=\"item-447e8842-8d6b-4923-ad13-336ab0c11840\"><test>item-447e8842-8d6b-4923-ad13-336ab0c11840</test></item>" ] } 2020-02-09 18:46:37 | [Mutex] notify: [retrieved:item:item-447e8842-8d6b-4923-ad13-336ab0c11840:payload-matches:true:localhost] 2020-02-09 18:46:37 | [Mutex] received everything. 2020-02-09 18:46:37 | [Mutex] isItemNotified: retrieved:item:item-447e8842-8d6b-4923-ad13-336ab0c11840:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-02-09 18:46:37 |
2020-02-09 18:46:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-09 18:46:37 | ------------------------------------ 2020-02-09 18:46:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2020-02-09 18:46:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-c2861bf6-8685-48d2-b522-b28317e25441", "node-bf9ed9ca-08a4-414f-903f-6610ad3b94c2" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-02-09 18:46:37 |
2020-02-09 18:46:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-09 18:46:37 | ------------------------------------ 2020-02-09 18:46:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-c2861bf6-8685-48d2-b522-b28317e25441)" } 2020-02-09 18:46:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2020-02-09 18:46:36 |
2020-02-09 18:46:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-09 18:46:36 | ------------------------------------ 2020-02-09 18:46:36 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-c2861bf6-8685-48d2-b522-b28317e25441", "jids": [ "admin@localhost" ] } 2020-02-09 18:46:36 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2020-02-09 18:46:37 |
2020-02-09 18:46:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-09 18:46:37 | ------------------------------------ 2020-02-09 18:46:37 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-c2861bf6-8685-48d2-b522-b28317e25441", "jids": [ "admin@localhost" ] } 2020-02-09 18:46:37 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |