Test duration : 8.748s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.109s |
2022-08-07 23:05:05 |
2022-08-07 23:05:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 23:05:05 | ------------------------------------ 2022-08-07 23:05:05 | [Mutex] waiting for: [configured:node:node-b85f07d3-55a1-48f7-9000-a78dbe71a39e:node-743c55a4-8650-459e-b99d-b6cabc9d85fd] 2022-08-07 23:05:05 | [Mutex] received everything. 2022-08-07 23:05:05 | [Mutex] isItemNotified: configured:node:node-b85f07d3-55a1-48f7-9000-a78dbe71a39e:node-743c55a4-8650-459e-b99d-b6cabc9d85fd :: true 2022-08-07 23:05:06 | [Mutex] waiting for: [received:nodes:862c50e9-3f5b-4053-94af-5907a4528fe6:localhost] 2022-08-07 23:05:06 | [Mutex] received everything. 2022-08-07 23:05:06 | [Mutex] isItemNotified: received:node:862c50e9-3f5b-4053-94af-5907a4528fe6:localhost:node-b85f07d3-55a1-48f7-9000-a78dbe71a39e:Node b85f07d3-55a1-48f7-9000-a78dbe71a39e :: true 2022-08-07 23:05:06 | [Mutex] waiting for: [received:nodes:de2d9656-e0ca-4720-bdbd-434d6c6d5a7d:localhost] 2022-08-07 23:05:06 | [Mutex] received everything. 2022-08-07 23:05:06 | [Mutex] isItemNotified: received:node:de2d9656-e0ca-4720-bdbd-434d6c6d5a7d:localhost:node-b85f07d3-55a1-48f7-9000-a78dbe71a39e:Node b85f07d3-55a1-48f7-9000-a78dbe71a39e :: false |
createNodes | 1.621s |
2022-08-07 23:05:02 |
2022-08-07 23:05:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 23:05:02 | ------------------------------------ 2022-08-07 23:05:03 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-b85f07d3-55a1-48f7-9000-a78dbe71a39e", "pubsub#title": "Node b85f07d3-55a1-48f7-9000-a78dbe71a39e" } 2022-08-07 23:05:03 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-07 23:05:04 | [Mutex] waiting for: [received:nodes:611de336-1f5a-4e5e-9827-ceab1efebd51:localhost] 2022-08-07 23:05:04 | [Mutex] received everything. 2022-08-07 23:05:04 | [Mutex] isItemNotified: received:node:611de336-1f5a-4e5e-9827-ceab1efebd51:localhost:node-b85f07d3-55a1-48f7-9000-a78dbe71a39e:Node b85f07d3-55a1-48f7-9000-a78dbe71a39e :: true |
createSubnodes | 1.024s |
2022-08-07 23:05:04 |
2022-08-07 23:05:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 23:05:04 | ------------------------------------ 2022-08-07 23:05:04 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-743c55a4-8650-459e-b99d-b6cabc9d85fd", "pubsub#title": "Node 743c55a4-8650-459e-b99d-b6cabc9d85fd" } 2022-08-07 23:05:04 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-07 23:05:05 | [Mutex] waiting for: [received:nodes:fccea6fa-2592-4539-adde-662aa3951eaa:localhost] 2022-08-07 23:05:05 | [Mutex] received everything. 2022-08-07 23:05:05 | [Mutex] isItemNotified: received:node:fccea6fa-2592-4539-adde-662aa3951eaa:localhost:node-743c55a4-8650-459e-b99d-b6cabc9d85fd:Node 743c55a4-8650-459e-b99d-b6cabc9d85fd :: true |
deleteNodes | 1.027s |
2022-08-07 23:05:10 |
2022-08-07 23:05:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 23:05:10 | ------------------------------------ 2022-08-07 23:05:10 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-743c55a4-8650-459e-b99d-b6cabc9d85fd" } 2022-08-07 23:05:10 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-07 23:05:11 | [Mutex] waiting for: [received:nodes:4e84e6cb-bd77-437b-8bd2-9c506a3093c7:localhost] 2022-08-07 23:05:11 | [Mutex] waiting for: [received:nodes:4e84e6cb-bd77-437b-8bd2-9c506a3093c7:localhost] 2022-08-07 23:05:11 | [Mutex] waiting for: [received:nodes:4e84e6cb-bd77-437b-8bd2-9c506a3093c7:localhost] 2022-08-07 23:05:11 | [Mutex] received everything. 2022-08-07 23:05:11 | [Mutex] isItemNotified: received:node:4e84e6cb-bd77-437b-8bd2-9c506a3093c7:localhost:node-743c55a4-8650-459e-b99d-b6cabc9d85fd:Node 743c55a4-8650-459e-b99d-b6cabc9d85fd :: false |
deleteSubnodes | 1.028s |
2022-08-07 23:05:09 |
2022-08-07 23:05:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 23:05:09 | ------------------------------------ 2022-08-07 23:05:09 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b85f07d3-55a1-48f7-9000-a78dbe71a39e" } 2022-08-07 23:05:09 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-07 23:05:10 | [Mutex] waiting for: [received:nodes:09674f0d-fbff-47df-8d05-b1aed087fcf7:localhost] 2022-08-07 23:05:10 | [Mutex] waiting for: [received:nodes:09674f0d-fbff-47df-8d05-b1aed087fcf7:localhost] 2022-08-07 23:05:10 | [Mutex] received everything. 2022-08-07 23:05:10 | [Mutex] isItemNotified: received:node:09674f0d-fbff-47df-8d05-b1aed087fcf7:localhost:node-b85f07d3-55a1-48f7-9000-a78dbe71a39e:Node b85f07d3-55a1-48f7-9000-a78dbe71a39e :: false 2022-08-07 23:05:10 | [Mutex] waiting for: [received:nodes:05f5325f-abca-4825-99c8-f0625e8a3dd8:localhost] 2022-08-07 23:05:10 | [Mutex] received everything. 2022-08-07 23:05:10 | [Mutex] isItemNotified: received:node:05f5325f-abca-4825-99c8-f0625e8a3dd8:localhost:node-b85f07d3-55a1-48f7-9000-a78dbe71a39e:Node b85f07d3-55a1-48f7-9000-a78dbe71a39e :: false |
publishItemsToNodes | 0.022s |
2022-08-07 23:05:07 |
2022-08-07 23:05:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 23:05:07 | ------------------------------------ 2022-08-07 23:05:07 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-b85f07d3-55a1-48f7-9000-a78dbe71a39e", "entry": "<test>item-7616a377-bde1-48f6-a45d-23d198f9b366</test>", "item-id": "item-7616a377-bde1-48f6-a45d-23d198f9b366" } 2022-08-07 23:05:07 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7616a377-bde1-48f6-a45d-23d198f9b366" } 2022-08-07 23:05:07 | [Mutex] waiting for: [published:item:notifieditem-7616a377-bde1-48f6-a45d-23d198f9b366:admin@test-domain.com] 2022-08-07 23:05:07 | [Mutex] received everything. 2022-08-07 23:05:07 | [Mutex] isItemNotified: published:item:notifieditem-7616a377-bde1-48f6-a45d-23d198f9b366:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2022-08-07 23:05:07 |
2022-08-07 23:05:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 23:05:07 | ------------------------------------ 2022-08-07 23:05:07 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-b85f07d3-55a1-48f7-9000-a78dbe71a39e", "item-id": "item-7616a377-bde1-48f6-a45d-23d198f9b366" } 2022-08-07 23:05:08 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7616a377-bde1-48f6-a45d-23d198f9b366" } 2022-08-07 23:05:08 | [Mutex] received everything. 2022-08-07 23:05:08 | [Mutex] isItemNotified: retracted:item:notifieditem-7616a377-bde1-48f6-a45d-23d198f9b366:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.107s |
2022-08-07 23:05:07 |
2022-08-07 23:05:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 23:05:07 | ------------------------------------ 2022-08-07 23:05:07 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-b85f07d3-55a1-48f7-9000-a78dbe71a39e", "item-id": "item-7616a377-bde1-48f6-a45d-23d198f9b366" } 2022-08-07 23:05:07 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-b85f07d3-55a1-48f7-9000-a78dbe71a39e", "item-id": "item-7616a377-bde1-48f6-a45d-23d198f9b366", "item": [ "<item id=\"item-7616a377-bde1-48f6-a45d-23d198f9b366\"><test>item-7616a377-bde1-48f6-a45d-23d198f9b366</test></item>" ] } 2022-08-07 23:05:07 | [Mutex] notify: [retrieved:item:item-7616a377-bde1-48f6-a45d-23d198f9b366:payload-matches:true:localhost] 2022-08-07 23:05:07 | [Mutex] received everything. 2022-08-07 23:05:07 | [Mutex] isItemNotified: retrieved:item:item-7616a377-bde1-48f6-a45d-23d198f9b366:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.046s |
2022-08-07 23:05:07 |
2022-08-07 23:05:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 23:05:07 | ------------------------------------ 2022-08-07 23:05:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-07 23:05:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-743c55a4-8650-459e-b99d-b6cabc9d85fd", "node-b85f07d3-55a1-48f7-9000-a78dbe71a39e" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-08-07 23:05:07 |
2022-08-07 23:05:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 23:05:07 | ------------------------------------ 2022-08-07 23:05:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-b85f07d3-55a1-48f7-9000-a78dbe71a39e)" } 2022-08-07 23:05:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2022-08-07 23:05:06 |
2022-08-07 23:05:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 23:05:06 | ------------------------------------ 2022-08-07 23:05:06 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-b85f07d3-55a1-48f7-9000-a78dbe71a39e", "jids": [ "admin@test-domain.com" ] } 2022-08-07 23:05:06 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2022-08-07 23:05:08 |
2022-08-07 23:05:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 23:05:08 | ------------------------------------ 2022-08-07 23:05:08 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-b85f07d3-55a1-48f7-9000-a78dbe71a39e", "jids": [ "admin@test-domain.com" ] } 2022-08-07 23:05:08 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |