Test duration : 9.274s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.126s |
2021-01-28 21:38:29 |
2021-01-28 21:38:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:38:29 | ------------------------------------ 2021-01-28 21:38:29 | [Mutex] waiting for: [configured:node:node-8b1b55af-f3e2-4a08-b29f-7417887f0654:node-3593b70f-057d-4773-9a2d-792f95b2a74a] 2021-01-28 21:38:29 | [Mutex] received everything. 2021-01-28 21:38:29 | [Mutex] isItemNotified: configured:node:node-8b1b55af-f3e2-4a08-b29f-7417887f0654:node-3593b70f-057d-4773-9a2d-792f95b2a74a :: true 2021-01-28 21:38:30 | [Mutex] waiting for: [received:nodes:901adb4b-8898-49d6-9540-d4b968194e1c:localhost] 2021-01-28 21:38:30 | [Mutex] waiting for: [received:nodes:901adb4b-8898-49d6-9540-d4b968194e1c:localhost] 2021-01-28 21:38:30 | [Mutex] received everything. 2021-01-28 21:38:30 | [Mutex] isItemNotified: received:node:901adb4b-8898-49d6-9540-d4b968194e1c:localhost:node-8b1b55af-f3e2-4a08-b29f-7417887f0654:Node 8b1b55af-f3e2-4a08-b29f-7417887f0654 :: true 2021-01-28 21:38:30 | [Mutex] waiting for: [received:nodes:8cb5f130-1978-47df-b7e4-c321f35ff294:localhost] 2021-01-28 21:38:30 | [Mutex] received everything. 2021-01-28 21:38:30 | [Mutex] isItemNotified: received:node:8cb5f130-1978-47df-b7e4-c321f35ff294:localhost:node-8b1b55af-f3e2-4a08-b29f-7417887f0654:Node 8b1b55af-f3e2-4a08-b29f-7417887f0654 :: false |
createNodes | 1.641s |
2021-01-28 21:38:26 |
2021-01-28 21:38:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:38:26 | ------------------------------------ 2021-01-28 21:38:27 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-8b1b55af-f3e2-4a08-b29f-7417887f0654", "pubsub#title": "Node 8b1b55af-f3e2-4a08-b29f-7417887f0654" } 2021-01-28 21:38:27 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-28 21:38:28 | [Mutex] waiting for: [received:nodes:6eacfd14-e66c-444d-96ad-5be5c367de23:localhost] 2021-01-28 21:38:28 | [Mutex] received everything. 2021-01-28 21:38:28 | [Mutex] isItemNotified: received:node:6eacfd14-e66c-444d-96ad-5be5c367de23:localhost:node-8b1b55af-f3e2-4a08-b29f-7417887f0654:Node 8b1b55af-f3e2-4a08-b29f-7417887f0654 :: true |
createSubnodes | 1.032s |
2021-01-28 21:38:28 |
2021-01-28 21:38:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:38:28 | ------------------------------------ 2021-01-28 21:38:28 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-3593b70f-057d-4773-9a2d-792f95b2a74a", "pubsub#title": "Node 3593b70f-057d-4773-9a2d-792f95b2a74a" } 2021-01-28 21:38:28 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-28 21:38:29 | [Mutex] waiting for: [received:nodes:fa75f54a-c707-459d-8422-a47925101af6:localhost] 2021-01-28 21:38:29 | [Mutex] waiting for: [received:nodes:fa75f54a-c707-459d-8422-a47925101af6:localhost] 2021-01-28 21:38:29 | [Mutex] received everything. 2021-01-28 21:38:29 | [Mutex] isItemNotified: received:node:fa75f54a-c707-459d-8422-a47925101af6:localhost:node-3593b70f-057d-4773-9a2d-792f95b2a74a:Node 3593b70f-057d-4773-9a2d-792f95b2a74a :: true |
deleteNodes | 1.026s |
2021-01-28 21:38:34 |
2021-01-28 21:38:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:38:34 | ------------------------------------ 2021-01-28 21:38:34 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3593b70f-057d-4773-9a2d-792f95b2a74a" } 2021-01-28 21:38:34 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-28 21:38:35 | [Mutex] waiting for: [received:nodes:74754274-d621-4aa3-a317-a9524bdd96ad:localhost] 2021-01-28 21:38:35 | [Mutex] received everything. 2021-01-28 21:38:35 | [Mutex] isItemNotified: received:node:74754274-d621-4aa3-a317-a9524bdd96ad:localhost:node-3593b70f-057d-4773-9a2d-792f95b2a74a:Node 3593b70f-057d-4773-9a2d-792f95b2a74a :: false |
deleteSubnodes | 1.035s |
2021-01-28 21:38:33 |
2021-01-28 21:38:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:38:33 | ------------------------------------ 2021-01-28 21:38:33 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8b1b55af-f3e2-4a08-b29f-7417887f0654" } 2021-01-28 21:38:33 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-28 21:38:34 | [Mutex] waiting for: [received:nodes:52f467b1-dbcf-4c26-b85c-0ce557222f30:localhost] 2021-01-28 21:38:34 | [Mutex] received everything. 2021-01-28 21:38:34 | [Mutex] isItemNotified: received:node:52f467b1-dbcf-4c26-b85c-0ce557222f30:localhost:node-8b1b55af-f3e2-4a08-b29f-7417887f0654:Node 8b1b55af-f3e2-4a08-b29f-7417887f0654 :: false 2021-01-28 21:38:34 | [Mutex] waiting for: [received:nodes:00cc2e42-0167-4cf9-b6e5-1b10bdf28cb4:localhost] 2021-01-28 21:38:34 | [Mutex] received everything. 2021-01-28 21:38:34 | [Mutex] isItemNotified: received:node:00cc2e42-0167-4cf9-b6e5-1b10bdf28cb4:localhost:node-8b1b55af-f3e2-4a08-b29f-7417887f0654:Node 8b1b55af-f3e2-4a08-b29f-7417887f0654 :: false |
publishItemsToNodes | 0.060s |
2021-01-28 21:38:31 |
2021-01-28 21:38:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:38:31 | ------------------------------------ 2021-01-28 21:38:31 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-8b1b55af-f3e2-4a08-b29f-7417887f0654", "entry": "<test>item-42a4aa6d-9e1d-45f8-9106-31895b050486</test>", "item-id": "item-42a4aa6d-9e1d-45f8-9106-31895b050486" } 2021-01-28 21:38:31 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-42a4aa6d-9e1d-45f8-9106-31895b050486" } 2021-01-28 21:38:31 | [Mutex] waiting for: [published:item:notifieditem-42a4aa6d-9e1d-45f8-9106-31895b050486:admin@test-domain.com] 2021-01-28 21:38:31 | [Mutex] received everything. 2021-01-28 21:38:31 | [Mutex] isItemNotified: published:item:notifieditem-42a4aa6d-9e1d-45f8-9106-31895b050486:admin@test-domain.com :: true |
retractItemsFromNodes | 0.078s |
2021-01-28 21:38:31 |
2021-01-28 21:38:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:38:31 | ------------------------------------ 2021-01-28 21:38:31 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-8b1b55af-f3e2-4a08-b29f-7417887f0654", "item-id": "item-42a4aa6d-9e1d-45f8-9106-31895b050486" } 2021-01-28 21:38:31 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-42a4aa6d-9e1d-45f8-9106-31895b050486" } 2021-01-28 21:38:31 | [Mutex] waiting for: [retracted:item:notifieditem-42a4aa6d-9e1d-45f8-9106-31895b050486:admin@test-domain.com] 2021-01-28 21:38:32 | [Mutex] received everything. 2021-01-28 21:38:32 | [Mutex] isItemNotified: retracted:item:notifieditem-42a4aa6d-9e1d-45f8-9106-31895b050486:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.076s |
2021-01-28 21:38:31 |
2021-01-28 21:38:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:38:31 | ------------------------------------ 2021-01-28 21:38:31 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-8b1b55af-f3e2-4a08-b29f-7417887f0654", "item-id": "item-42a4aa6d-9e1d-45f8-9106-31895b050486" } 2021-01-28 21:38:31 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-8b1b55af-f3e2-4a08-b29f-7417887f0654", "item-id": "item-42a4aa6d-9e1d-45f8-9106-31895b050486", "item": [ "<item id=\"item-42a4aa6d-9e1d-45f8-9106-31895b050486\"><test>item-42a4aa6d-9e1d-45f8-9106-31895b050486</test></item>" ] } 2021-01-28 21:38:31 | [Mutex] notify: [retrieved:item:item-42a4aa6d-9e1d-45f8-9106-31895b050486:payload-matches:true:localhost] 2021-01-28 21:38:31 | [Mutex] received everything. 2021-01-28 21:38:31 | [Mutex] isItemNotified: retrieved:item:item-42a4aa6d-9e1d-45f8-9106-31895b050486:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.049s |
2021-01-28 21:38:31 |
2021-01-28 21:38:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:38:31 | ------------------------------------ 2021-01-28 21:38:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-01-28 21:38:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-3593b70f-057d-4773-9a2d-792f95b2a74a", "node-8b1b55af-f3e2-4a08-b29f-7417887f0654" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-01-28 21:38:31 |
2021-01-28 21:38:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:38:31 | ------------------------------------ 2021-01-28 21:38:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-8b1b55af-f3e2-4a08-b29f-7417887f0654)" } 2021-01-28 21:38:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2021-01-28 21:38:30 |
2021-01-28 21:38:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:38:30 | ------------------------------------ 2021-01-28 21:38:30 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-8b1b55af-f3e2-4a08-b29f-7417887f0654", "jids": [ "admin@test-domain.com" ] } 2021-01-28 21:38:30 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.096s |
2021-01-28 21:38:32 |
2021-01-28 21:38:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:38:32 | ------------------------------------ 2021-01-28 21:38:32 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-8b1b55af-f3e2-4a08-b29f-7417887f0654", "jids": [ "admin@test-domain.com" ] } 2021-01-28 21:38:32 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |