Test duration : 8.879s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.096s |
2020-09-25 22:35:44 |
2020-09-25 22:35:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:35:44 | ------------------------------------ 2020-09-25 22:35:44 | [Mutex] waiting for: [configured:node:node-4b9883ca-455e-43f8-a47d-25a6073cee0d:node-f09657be-0324-4b0c-a50d-0948981ad514] 2020-09-25 22:35:44 | [Mutex] received everything. 2020-09-25 22:35:44 | [Mutex] isItemNotified: configured:node:node-4b9883ca-455e-43f8-a47d-25a6073cee0d:node-f09657be-0324-4b0c-a50d-0948981ad514 :: true 2020-09-25 22:35:45 | [Mutex] waiting for: [received:nodes:01db5b31-fa54-4cc9-aadf-f217e3a8883c:localhost] 2020-09-25 22:35:45 | [Mutex] received everything. 2020-09-25 22:35:45 | [Mutex] isItemNotified: received:node:01db5b31-fa54-4cc9-aadf-f217e3a8883c:localhost:node-4b9883ca-455e-43f8-a47d-25a6073cee0d:Node 4b9883ca-455e-43f8-a47d-25a6073cee0d :: true 2020-09-25 22:35:45 | [Mutex] waiting for: [received:nodes:cdd31537-cb1f-4109-8c22-465bca2eeaa0:localhost] 2020-09-25 22:35:45 | [Mutex] received everything. 2020-09-25 22:35:45 | [Mutex] isItemNotified: received:node:cdd31537-cb1f-4109-8c22-465bca2eeaa0:localhost:node-4b9883ca-455e-43f8-a47d-25a6073cee0d:Node 4b9883ca-455e-43f8-a47d-25a6073cee0d :: false |
createNodes | 1.577s |
2020-09-25 22:35:41 |
2020-09-25 22:35:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:35:41 | ------------------------------------ 2020-09-25 22:35:42 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-4b9883ca-455e-43f8-a47d-25a6073cee0d", "pubsub#title": "Node 4b9883ca-455e-43f8-a47d-25a6073cee0d" } 2020-09-25 22:35:42 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-25 22:35:43 | [Mutex] waiting for: [received:nodes:680ae104-ee67-4784-8e30-f8656b8d08c5:localhost] 2020-09-25 22:35:43 | [Mutex] waiting for: [received:nodes:680ae104-ee67-4784-8e30-f8656b8d08c5:localhost] 2020-09-25 22:35:43 | [Mutex] received everything. 2020-09-25 22:35:43 | [Mutex] isItemNotified: received:node:680ae104-ee67-4784-8e30-f8656b8d08c5:localhost:node-4b9883ca-455e-43f8-a47d-25a6073cee0d:Node 4b9883ca-455e-43f8-a47d-25a6073cee0d :: true |
createSubnodes | 1.030s |
2020-09-25 22:35:43 |
2020-09-25 22:35:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:35:43 | ------------------------------------ 2020-09-25 22:35:43 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-f09657be-0324-4b0c-a50d-0948981ad514", "pubsub#title": "Node f09657be-0324-4b0c-a50d-0948981ad514" } 2020-09-25 22:35:43 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-25 22:35:44 | [Mutex] waiting for: [received:nodes:00f85659-4ca5-4798-9c1e-38d34a5f06c8:localhost] 2020-09-25 22:35:44 | [Mutex] received everything. 2020-09-25 22:35:44 | [Mutex] isItemNotified: received:node:00f85659-4ca5-4798-9c1e-38d34a5f06c8:localhost:node-f09657be-0324-4b0c-a50d-0948981ad514:Node f09657be-0324-4b0c-a50d-0948981ad514 :: true |
deleteNodes | 1.016s |
2020-09-25 22:35:48 |
2020-09-25 22:35:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:35:48 | ------------------------------------ 2020-09-25 22:35:48 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f09657be-0324-4b0c-a50d-0948981ad514" } 2020-09-25 22:35:48 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-25 22:35:49 | [Mutex] waiting for: [received:nodes:44a53ac9-28a3-4d3d-ac90-ddf82f3643f7:localhost] 2020-09-25 22:35:49 | [Mutex] waiting for: [received:nodes:44a53ac9-28a3-4d3d-ac90-ddf82f3643f7:localhost] 2020-09-25 22:35:49 | [Mutex] received everything. 2020-09-25 22:35:49 | [Mutex] isItemNotified: received:node:44a53ac9-28a3-4d3d-ac90-ddf82f3643f7:localhost:node-f09657be-0324-4b0c-a50d-0948981ad514:Node f09657be-0324-4b0c-a50d-0948981ad514 :: false |
deleteSubnodes | 1.026s |
2020-09-25 22:35:47 |
2020-09-25 22:35:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:35:47 | ------------------------------------ 2020-09-25 22:35:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4b9883ca-455e-43f8-a47d-25a6073cee0d" } 2020-09-25 22:35:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-25 22:35:48 | [Mutex] waiting for: [received:nodes:bfd97c8a-f543-474b-bc89-ae35c58c7c45:localhost] 2020-09-25 22:35:48 | [Mutex] received everything. 2020-09-25 22:35:48 | [Mutex] isItemNotified: received:node:bfd97c8a-f543-474b-bc89-ae35c58c7c45:localhost:node-4b9883ca-455e-43f8-a47d-25a6073cee0d:Node 4b9883ca-455e-43f8-a47d-25a6073cee0d :: false 2020-09-25 22:35:48 | [Mutex] waiting for: [received:nodes:7c0edcae-c652-4347-9874-7019ec425431:localhost] 2020-09-25 22:35:48 | [Mutex] received everything. 2020-09-25 22:35:48 | [Mutex] isItemNotified: received:node:7c0edcae-c652-4347-9874-7019ec425431:localhost:node-4b9883ca-455e-43f8-a47d-25a6073cee0d:Node 4b9883ca-455e-43f8-a47d-25a6073cee0d :: false |
publishItemsToNodes | 0.034s |
2020-09-25 22:35:46 |
2020-09-25 22:35:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:35:46 | ------------------------------------ 2020-09-25 22:35:46 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-4b9883ca-455e-43f8-a47d-25a6073cee0d", "entry": "<test>item-da9b7572-8811-4a2e-be94-0cfd00f5a304</test>", "item-id": "item-da9b7572-8811-4a2e-be94-0cfd00f5a304" } 2020-09-25 22:35:46 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-da9b7572-8811-4a2e-be94-0cfd00f5a304" } 2020-09-25 22:35:46 | [Mutex] received everything. 2020-09-25 22:35:46 | [Mutex] isItemNotified: published:item:notifieditem-da9b7572-8811-4a2e-be94-0cfd00f5a304:admin@test-domain.com :: true |
retractItemsFromNodes | 0.067s |
2020-09-25 22:35:46 |
2020-09-25 22:35:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:35:46 | ------------------------------------ 2020-09-25 22:35:46 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-4b9883ca-455e-43f8-a47d-25a6073cee0d", "item-id": "item-da9b7572-8811-4a2e-be94-0cfd00f5a304" } 2020-09-25 22:35:46 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-da9b7572-8811-4a2e-be94-0cfd00f5a304" } 2020-09-25 22:35:46 | [Mutex] received everything. 2020-09-25 22:35:46 | [Mutex] isItemNotified: retracted:item:notifieditem-da9b7572-8811-4a2e-be94-0cfd00f5a304:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.065s |
2020-09-25 22:35:46 |
2020-09-25 22:35:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:35:46 | ------------------------------------ 2020-09-25 22:35:46 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-4b9883ca-455e-43f8-a47d-25a6073cee0d", "item-id": "item-da9b7572-8811-4a2e-be94-0cfd00f5a304" } 2020-09-25 22:35:46 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-4b9883ca-455e-43f8-a47d-25a6073cee0d", "item-id": "item-da9b7572-8811-4a2e-be94-0cfd00f5a304", "item": [ "<item id=\"item-da9b7572-8811-4a2e-be94-0cfd00f5a304\"><test>item-da9b7572-8811-4a2e-be94-0cfd00f5a304</test></item>" ] } 2020-09-25 22:35:46 | [Mutex] notify: [retrieved:item:item-da9b7572-8811-4a2e-be94-0cfd00f5a304:payload-matches:true:localhost] 2020-09-25 22:35:46 | [Mutex] received everything. 2020-09-25 22:35:46 | [Mutex] isItemNotified: retrieved:item:item-da9b7572-8811-4a2e-be94-0cfd00f5a304:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.046s |
2020-09-25 22:35:46 |
2020-09-25 22:35:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:35:46 | ------------------------------------ 2020-09-25 22:35:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-25 22:35:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-f09657be-0324-4b0c-a50d-0948981ad514", "test", "node-4b9883ca-455e-43f8-a47d-25a6073cee0d" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2020-09-25 22:35:46 |
2020-09-25 22:35:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:35:46 | ------------------------------------ 2020-09-25 22:35:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-4b9883ca-455e-43f8-a47d-25a6073cee0d)" } 2020-09-25 22:35:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2020-09-25 22:35:45 |
2020-09-25 22:35:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:35:45 | ------------------------------------ 2020-09-25 22:35:45 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-4b9883ca-455e-43f8-a47d-25a6073cee0d", "jids": [ "admin@test-domain.com" ] } 2020-09-25 22:35:45 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2020-09-25 22:35:46 |
2020-09-25 22:35:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:35:46 | ------------------------------------ 2020-09-25 22:35:46 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-4b9883ca-455e-43f8-a47d-25a6073cee0d", "jids": [ "admin@test-domain.com" ] } 2020-09-25 22:35:46 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |