Test duration : 8.647s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.087s |
2022-10-25 04:58:36 |
2022-10-25 04:58:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-25 04:58:36 | ------------------------------------ 2022-10-25 04:58:36 | [Mutex] waiting for: [configured:node:node-622a2d8f-01bd-462c-83d3-0e15bcbbcca7:node-71f58d3e-1c4c-4102-a64d-24d2c5bb9742] 2022-10-25 04:58:36 | [Mutex] received everything. 2022-10-25 04:58:36 | [Mutex] isItemNotified: configured:node:node-622a2d8f-01bd-462c-83d3-0e15bcbbcca7:node-71f58d3e-1c4c-4102-a64d-24d2c5bb9742 :: true 2022-10-25 04:58:37 | [Mutex] waiting for: [received:nodes:f16d4688-5e1e-46ae-bc2a-a43212f152dd:localhost] 2022-10-25 04:58:37 | [Mutex] received everything. 2022-10-25 04:58:37 | [Mutex] isItemNotified: received:node:f16d4688-5e1e-46ae-bc2a-a43212f152dd:localhost:node-622a2d8f-01bd-462c-83d3-0e15bcbbcca7:Node 622a2d8f-01bd-462c-83d3-0e15bcbbcca7 :: true 2022-10-25 04:58:37 | [Mutex] waiting for: [received:nodes:d6b51858-6980-49ac-b885-af91acea6a6d:localhost] 2022-10-25 04:58:37 | [Mutex] received everything. 2022-10-25 04:58:37 | [Mutex] isItemNotified: received:node:d6b51858-6980-49ac-b885-af91acea6a6d:localhost:node-622a2d8f-01bd-462c-83d3-0e15bcbbcca7:Node 622a2d8f-01bd-462c-83d3-0e15bcbbcca7 :: false |
createNodes | 1.640s |
2022-10-25 04:58:33 |
2022-10-25 04:58:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-25 04:58:33 | ------------------------------------ 2022-10-25 04:58:34 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-622a2d8f-01bd-462c-83d3-0e15bcbbcca7", "pubsub#title": "Node 622a2d8f-01bd-462c-83d3-0e15bcbbcca7" } 2022-10-25 04:58:34 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-25 04:58:35 | [Mutex] waiting for: [received:nodes:c23f5953-9eea-40cd-a0e8-1043507a1d23:localhost] 2022-10-25 04:58:35 | [Mutex] received everything. 2022-10-25 04:58:35 | [Mutex] isItemNotified: received:node:c23f5953-9eea-40cd-a0e8-1043507a1d23:localhost:node-622a2d8f-01bd-462c-83d3-0e15bcbbcca7:Node 622a2d8f-01bd-462c-83d3-0e15bcbbcca7 :: true |
createSubnodes | 1.022s |
2022-10-25 04:58:35 |
2022-10-25 04:58:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-25 04:58:35 | ------------------------------------ 2022-10-25 04:58:35 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-71f58d3e-1c4c-4102-a64d-24d2c5bb9742", "pubsub#title": "Node 71f58d3e-1c4c-4102-a64d-24d2c5bb9742" } 2022-10-25 04:58:35 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-25 04:58:36 | [Mutex] waiting for: [received:nodes:f021ef0f-60d6-4630-a021-054c2995fbe8:localhost] 2022-10-25 04:58:36 | [Mutex] received everything. 2022-10-25 04:58:36 | [Mutex] isItemNotified: received:node:f021ef0f-60d6-4630-a021-054c2995fbe8:localhost:node-71f58d3e-1c4c-4102-a64d-24d2c5bb9742:Node 71f58d3e-1c4c-4102-a64d-24d2c5bb9742 :: true |
deleteNodes | 1.016s |
2022-10-25 04:58:40 |
2022-10-25 04:58:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-25 04:58:40 | ------------------------------------ 2022-10-25 04:58:40 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-71f58d3e-1c4c-4102-a64d-24d2c5bb9742" } 2022-10-25 04:58:40 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-25 04:58:41 | [Mutex] waiting for: [received:nodes:c34697a1-3544-4c2f-9d72-9097178cd925:localhost] 2022-10-25 04:58:41 | [Mutex] received everything. 2022-10-25 04:58:41 | [Mutex] isItemNotified: received:node:c34697a1-3544-4c2f-9d72-9097178cd925:localhost:node-71f58d3e-1c4c-4102-a64d-24d2c5bb9742:Node 71f58d3e-1c4c-4102-a64d-24d2c5bb9742 :: false |
deleteSubnodes | 1.025s |
2022-10-25 04:58:39 |
2022-10-25 04:58:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-25 04:58:39 | ------------------------------------ 2022-10-25 04:58:39 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-622a2d8f-01bd-462c-83d3-0e15bcbbcca7" } 2022-10-25 04:58:39 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-25 04:58:40 | [Mutex] waiting for: [received:nodes:d58a92a0-33c1-4c72-8887-da4ba6898859:localhost] 2022-10-25 04:58:40 | [Mutex] waiting for: [received:nodes:d58a92a0-33c1-4c72-8887-da4ba6898859:localhost] 2022-10-25 04:58:40 | [Mutex] waiting for: [received:nodes:d58a92a0-33c1-4c72-8887-da4ba6898859:localhost] 2022-10-25 04:58:40 | [Mutex] received everything. 2022-10-25 04:58:40 | [Mutex] isItemNotified: received:node:d58a92a0-33c1-4c72-8887-da4ba6898859:localhost:node-622a2d8f-01bd-462c-83d3-0e15bcbbcca7:Node 622a2d8f-01bd-462c-83d3-0e15bcbbcca7 :: false 2022-10-25 04:58:40 | [Mutex] waiting for: [received:nodes:0b7e943a-7bd4-4db1-986e-73927df4cedf:localhost] 2022-10-25 04:58:40 | [Mutex] received everything. 2022-10-25 04:58:40 | [Mutex] isItemNotified: received:node:0b7e943a-7bd4-4db1-986e-73927df4cedf:localhost:node-622a2d8f-01bd-462c-83d3-0e15bcbbcca7:Node 622a2d8f-01bd-462c-83d3-0e15bcbbcca7 :: false |
publishItemsToNodes | 0.039s |
2022-10-25 04:58:38 |
2022-10-25 04:58:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-25 04:58:38 | ------------------------------------ 2022-10-25 04:58:38 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-622a2d8f-01bd-462c-83d3-0e15bcbbcca7", "entry": "<test>item-b98506a1-74f5-4f4f-a09a-a3d806814531</test>", "item-id": "item-b98506a1-74f5-4f4f-a09a-a3d806814531" } 2022-10-25 04:58:38 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b98506a1-74f5-4f4f-a09a-a3d806814531" } 2022-10-25 04:58:38 | [Mutex] waiting for: [published:item:notifieditem-b98506a1-74f5-4f4f-a09a-a3d806814531:admin@test-domain.com] 2022-10-25 04:58:38 | [Mutex] received everything. 2022-10-25 04:58:38 | [Mutex] isItemNotified: published:item:notifieditem-b98506a1-74f5-4f4f-a09a-a3d806814531:admin@test-domain.com :: true |
retractItemsFromNodes | 0.077s |
2022-10-25 04:58:38 |
2022-10-25 04:58:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-25 04:58:38 | ------------------------------------ 2022-10-25 04:58:38 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-622a2d8f-01bd-462c-83d3-0e15bcbbcca7", "item-id": "item-b98506a1-74f5-4f4f-a09a-a3d806814531" } 2022-10-25 04:58:38 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b98506a1-74f5-4f4f-a09a-a3d806814531" } 2022-10-25 04:58:38 | [Mutex] waiting for: [retracted:item:notifieditem-b98506a1-74f5-4f4f-a09a-a3d806814531:admin@test-domain.com] 2022-10-25 04:58:38 | [Mutex] received everything. 2022-10-25 04:58:38 | [Mutex] isItemNotified: retracted:item:notifieditem-b98506a1-74f5-4f4f-a09a-a3d806814531:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.057s |
2022-10-25 04:58:38 |
2022-10-25 04:58:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-25 04:58:38 | ------------------------------------ 2022-10-25 04:58:38 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-622a2d8f-01bd-462c-83d3-0e15bcbbcca7", "item-id": "item-b98506a1-74f5-4f4f-a09a-a3d806814531" } 2022-10-25 04:58:38 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-622a2d8f-01bd-462c-83d3-0e15bcbbcca7", "item-id": "item-b98506a1-74f5-4f4f-a09a-a3d806814531", "item": [ "<item id=\"item-b98506a1-74f5-4f4f-a09a-a3d806814531\"><test>item-b98506a1-74f5-4f4f-a09a-a3d806814531</test></item>" ] } 2022-10-25 04:58:38 | [Mutex] notify: [retrieved:item:item-b98506a1-74f5-4f4f-a09a-a3d806814531:payload-matches:true:localhost] 2022-10-25 04:58:38 | [Mutex] received everything. 2022-10-25 04:58:38 | [Mutex] isItemNotified: retrieved:item:item-b98506a1-74f5-4f4f-a09a-a3d806814531:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2022-10-25 04:58:38 |
2022-10-25 04:58:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-25 04:58:38 | ------------------------------------ 2022-10-25 04:58:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-10-25 04:58:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-622a2d8f-01bd-462c-83d3-0e15bcbbcca7", "node-71f58d3e-1c4c-4102-a64d-24d2c5bb9742" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-10-25 04:58:38 |
2022-10-25 04:58:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-25 04:58:38 | ------------------------------------ 2022-10-25 04:58:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-622a2d8f-01bd-462c-83d3-0e15bcbbcca7)" } 2022-10-25 04:58:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-10-25 04:58:37 |
2022-10-25 04:58:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-25 04:58:37 | ------------------------------------ 2022-10-25 04:58:37 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-622a2d8f-01bd-462c-83d3-0e15bcbbcca7", "jids": [ "admin@test-domain.com" ] } 2022-10-25 04:58:37 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.081s |
2022-10-25 04:58:38 |
2022-10-25 04:58:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-25 04:58:38 | ------------------------------------ 2022-10-25 04:58:38 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-622a2d8f-01bd-462c-83d3-0e15bcbbcca7", "jids": [ "admin@test-domain.com" ] } 2022-10-25 04:58:38 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |