Test duration : 9.290s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.106s |
2020-11-26 21:30:32 |
2020-11-26 21:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:30:32 | ------------------------------------ 2020-11-26 21:30:32 | [Mutex] waiting for: [configured:node:node-b56f206f-6892-4ac7-958e-4f3d9ddb5c2a:node-2f944ccc-91f8-42f5-8801-d2789dd8804e] 2020-11-26 21:30:32 | [Mutex] received everything. 2020-11-26 21:30:32 | [Mutex] isItemNotified: configured:node:node-b56f206f-6892-4ac7-958e-4f3d9ddb5c2a:node-2f944ccc-91f8-42f5-8801-d2789dd8804e :: true 2020-11-26 21:30:33 | [Mutex] waiting for: [received:nodes:d3d1bd0b-bbb1-41ae-8820-06f58e7a7b2f:localhost] 2020-11-26 21:30:33 | [Mutex] waiting for: [received:nodes:d3d1bd0b-bbb1-41ae-8820-06f58e7a7b2f:localhost] 2020-11-26 21:30:33 | [Mutex] received everything. 2020-11-26 21:30:33 | [Mutex] isItemNotified: received:node:d3d1bd0b-bbb1-41ae-8820-06f58e7a7b2f:localhost:node-b56f206f-6892-4ac7-958e-4f3d9ddb5c2a:Node b56f206f-6892-4ac7-958e-4f3d9ddb5c2a :: true 2020-11-26 21:30:33 | [Mutex] waiting for: [received:nodes:0b8c8691-d33d-48e5-9f32-3bc6a2317cc4:localhost] 2020-11-26 21:30:33 | [Mutex] waiting for: [received:nodes:0b8c8691-d33d-48e5-9f32-3bc6a2317cc4:localhost] 2020-11-26 21:30:33 | [Mutex] received everything. 2020-11-26 21:30:33 | [Mutex] isItemNotified: received:node:0b8c8691-d33d-48e5-9f32-3bc6a2317cc4:localhost:node-b56f206f-6892-4ac7-958e-4f3d9ddb5c2a:Node b56f206f-6892-4ac7-958e-4f3d9ddb5c2a :: false |
createNodes | 1.897s |
2020-11-26 21:30:29 |
2020-11-26 21:30:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:30:29 | ------------------------------------ 2020-11-26 21:30:30 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-b56f206f-6892-4ac7-958e-4f3d9ddb5c2a", "pubsub#title": "Node b56f206f-6892-4ac7-958e-4f3d9ddb5c2a" } 2020-11-26 21:30:30 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-26 21:30:31 | [Mutex] waiting for: [received:nodes:9ec1d94b-bbc4-470c-b121-15ded4a23f95:localhost] 2020-11-26 21:30:31 | [Mutex] received everything. 2020-11-26 21:30:31 | [Mutex] isItemNotified: received:node:9ec1d94b-bbc4-470c-b121-15ded4a23f95:localhost:node-b56f206f-6892-4ac7-958e-4f3d9ddb5c2a:Node b56f206f-6892-4ac7-958e-4f3d9ddb5c2a :: true |
createSubnodes | 1.032s |
2020-11-26 21:30:31 |
2020-11-26 21:30:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:30:31 | ------------------------------------ 2020-11-26 21:30:31 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-2f944ccc-91f8-42f5-8801-d2789dd8804e", "pubsub#title": "Node 2f944ccc-91f8-42f5-8801-d2789dd8804e" } 2020-11-26 21:30:31 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-26 21:30:32 | [Mutex] waiting for: [received:nodes:808c1680-6ba9-4549-81fb-baa2f4f48f2a:localhost] 2020-11-26 21:30:32 | [Mutex] waiting for: [received:nodes:808c1680-6ba9-4549-81fb-baa2f4f48f2a:localhost] 2020-11-26 21:30:32 | [Mutex] waiting for: [received:nodes:808c1680-6ba9-4549-81fb-baa2f4f48f2a:localhost] 2020-11-26 21:30:32 | [Mutex] received everything. 2020-11-26 21:30:32 | [Mutex] isItemNotified: received:node:808c1680-6ba9-4549-81fb-baa2f4f48f2a:localhost:node-2f944ccc-91f8-42f5-8801-d2789dd8804e:Node 2f944ccc-91f8-42f5-8801-d2789dd8804e :: true |
deleteNodes | 1.024s |
2020-11-26 21:30:37 |
2020-11-26 21:30:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:30:37 | ------------------------------------ 2020-11-26 21:30:37 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2f944ccc-91f8-42f5-8801-d2789dd8804e" } 2020-11-26 21:30:37 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-26 21:30:38 | [Mutex] waiting for: [received:nodes:3516fcd7-af06-47c2-898b-a90edcb9cc3a:localhost] 2020-11-26 21:30:38 | [Mutex] received everything. 2020-11-26 21:30:38 | [Mutex] isItemNotified: received:node:3516fcd7-af06-47c2-898b-a90edcb9cc3a:localhost:node-2f944ccc-91f8-42f5-8801-d2789dd8804e:Node 2f944ccc-91f8-42f5-8801-d2789dd8804e :: false |
deleteSubnodes | 1.032s |
2020-11-26 21:30:36 |
2020-11-26 21:30:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:30:36 | ------------------------------------ 2020-11-26 21:30:36 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b56f206f-6892-4ac7-958e-4f3d9ddb5c2a" } 2020-11-26 21:30:36 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-26 21:30:37 | [Mutex] waiting for: [received:nodes:0a107f4a-ce83-41aa-aac3-6950aa91f8db:localhost] 2020-11-26 21:30:37 | [Mutex] waiting for: [received:nodes:0a107f4a-ce83-41aa-aac3-6950aa91f8db:localhost] 2020-11-26 21:30:37 | [Mutex] received everything. 2020-11-26 21:30:37 | [Mutex] isItemNotified: received:node:0a107f4a-ce83-41aa-aac3-6950aa91f8db:localhost:node-b56f206f-6892-4ac7-958e-4f3d9ddb5c2a:Node b56f206f-6892-4ac7-958e-4f3d9ddb5c2a :: false 2020-11-26 21:30:37 | [Mutex] waiting for: [received:nodes:5775d21c-76c9-4167-a0ef-5646b0ad6981:localhost] 2020-11-26 21:30:37 | [Mutex] received everything. 2020-11-26 21:30:37 | [Mutex] isItemNotified: received:node:5775d21c-76c9-4167-a0ef-5646b0ad6981:localhost:node-b56f206f-6892-4ac7-958e-4f3d9ddb5c2a:Node b56f206f-6892-4ac7-958e-4f3d9ddb5c2a :: false |
publishItemsToNodes | 0.052s |
2020-11-26 21:30:34 |
2020-11-26 21:30:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:30:34 | ------------------------------------ 2020-11-26 21:30:34 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-b56f206f-6892-4ac7-958e-4f3d9ddb5c2a", "entry": "<test>item-199b14ed-13dc-4b51-b38f-3699c1dfe4ad</test>", "item-id": "item-199b14ed-13dc-4b51-b38f-3699c1dfe4ad" } 2020-11-26 21:30:34 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-199b14ed-13dc-4b51-b38f-3699c1dfe4ad" } 2020-11-26 21:30:34 | [Mutex] waiting for: [published:item:notifieditem-199b14ed-13dc-4b51-b38f-3699c1dfe4ad:admin@test-domain.com] 2020-11-26 21:30:34 | [Mutex] received everything. 2020-11-26 21:30:34 | [Mutex] isItemNotified: published:item:notifieditem-199b14ed-13dc-4b51-b38f-3699c1dfe4ad:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2020-11-26 21:30:35 |
2020-11-26 21:30:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:30:35 | ------------------------------------ 2020-11-26 21:30:35 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-b56f206f-6892-4ac7-958e-4f3d9ddb5c2a", "item-id": "item-199b14ed-13dc-4b51-b38f-3699c1dfe4ad" } 2020-11-26 21:30:35 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-199b14ed-13dc-4b51-b38f-3699c1dfe4ad" } 2020-11-26 21:30:35 | [Mutex] received everything. 2020-11-26 21:30:35 | [Mutex] isItemNotified: retracted:item:notifieditem-199b14ed-13dc-4b51-b38f-3699c1dfe4ad:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.070s |
2020-11-26 21:30:34 |
2020-11-26 21:30:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:30:34 | ------------------------------------ 2020-11-26 21:30:34 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-b56f206f-6892-4ac7-958e-4f3d9ddb5c2a", "item-id": "item-199b14ed-13dc-4b51-b38f-3699c1dfe4ad" } 2020-11-26 21:30:34 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-b56f206f-6892-4ac7-958e-4f3d9ddb5c2a", "item-id": "item-199b14ed-13dc-4b51-b38f-3699c1dfe4ad", "item": [ "<item id=\"item-199b14ed-13dc-4b51-b38f-3699c1dfe4ad\"><test>item-199b14ed-13dc-4b51-b38f-3699c1dfe4ad</test></item>" ] } 2020-11-26 21:30:34 | [Mutex] notify: [retrieved:item:item-199b14ed-13dc-4b51-b38f-3699c1dfe4ad:payload-matches:true:localhost] 2020-11-26 21:30:34 | [Mutex] received everything. 2020-11-26 21:30:34 | [Mutex] isItemNotified: retrieved:item:item-199b14ed-13dc-4b51-b38f-3699c1dfe4ad:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.111s |
2020-11-26 21:30:34 |
2020-11-26 21:30:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:30:34 | ------------------------------------ 2020-11-26 21:30:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-11-26 21:30:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-2f944ccc-91f8-42f5-8801-d2789dd8804e", "node-b56f206f-6892-4ac7-958e-4f3d9ddb5c2a" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2020-11-26 21:30:35 |
2020-11-26 21:30:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:30:35 | ------------------------------------ 2020-11-26 21:30:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-b56f206f-6892-4ac7-958e-4f3d9ddb5c2a)" } 2020-11-26 21:30:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2020-11-26 21:30:33 |
2020-11-26 21:30:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:30:33 | ------------------------------------ 2020-11-26 21:30:33 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-b56f206f-6892-4ac7-958e-4f3d9ddb5c2a", "jids": [ "admin@test-domain.com" ] } 2020-11-26 21:30:33 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.083s |
2020-11-26 21:30:35 |
2020-11-26 21:30:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:30:35 | ------------------------------------ 2020-11-26 21:30:35 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-b56f206f-6892-4ac7-958e-4f3d9ddb5c2a", "jids": [ "admin@test-domain.com" ] } 2020-11-26 21:30:35 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |