Test duration : 8.838s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2022-05-08 23:20:14 |
2022-05-08 23:20:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 23:20:14 | ------------------------------------ 2022-05-08 23:20:14 | [Mutex] waiting for: [configured:node:node-467e3d08-fb26-41aa-ae40-3b6bdc9ff04d:node-f62cd95b-af5e-4586-bf81-dbce520a3068] 2022-05-08 23:20:14 | [Mutex] received everything. 2022-05-08 23:20:14 | [Mutex] isItemNotified: configured:node:node-467e3d08-fb26-41aa-ae40-3b6bdc9ff04d:node-f62cd95b-af5e-4586-bf81-dbce520a3068 :: true 2022-05-08 23:20:15 | [Mutex] waiting for: [received:nodes:251d2538-4483-41e6-bd5e-ffa0ad61378f:localhost] 2022-05-08 23:20:15 | [Mutex] received everything. 2022-05-08 23:20:15 | [Mutex] isItemNotified: received:node:251d2538-4483-41e6-bd5e-ffa0ad61378f:localhost:node-467e3d08-fb26-41aa-ae40-3b6bdc9ff04d:Node 467e3d08-fb26-41aa-ae40-3b6bdc9ff04d :: true 2022-05-08 23:20:15 | [Mutex] waiting for: [received:nodes:58d81556-7a4c-4916-b200-1aeed8ac8e6b:localhost] 2022-05-08 23:20:15 | [Mutex] received everything. 2022-05-08 23:20:15 | [Mutex] isItemNotified: received:node:58d81556-7a4c-4916-b200-1aeed8ac8e6b:localhost:node-467e3d08-fb26-41aa-ae40-3b6bdc9ff04d:Node 467e3d08-fb26-41aa-ae40-3b6bdc9ff04d :: false |
createNodes | 1.631s |
2022-05-08 23:20:11 |
2022-05-08 23:20:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 23:20:11 | ------------------------------------ 2022-05-08 23:20:12 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-467e3d08-fb26-41aa-ae40-3b6bdc9ff04d", "pubsub#title": "Node 467e3d08-fb26-41aa-ae40-3b6bdc9ff04d" } 2022-05-08 23:20:12 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-08 23:20:13 | [Mutex] waiting for: [received:nodes:e9ed5108-adaa-447f-8da6-a2b1ba2f050f:localhost] 2022-05-08 23:20:13 | [Mutex] received everything. 2022-05-08 23:20:13 | [Mutex] isItemNotified: received:node:e9ed5108-adaa-447f-8da6-a2b1ba2f050f:localhost:node-467e3d08-fb26-41aa-ae40-3b6bdc9ff04d:Node 467e3d08-fb26-41aa-ae40-3b6bdc9ff04d :: true |
createSubnodes | 1.026s |
2022-05-08 23:20:13 |
2022-05-08 23:20:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 23:20:13 | ------------------------------------ 2022-05-08 23:20:13 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-f62cd95b-af5e-4586-bf81-dbce520a3068", "pubsub#title": "Node f62cd95b-af5e-4586-bf81-dbce520a3068" } 2022-05-08 23:20:13 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-08 23:20:14 | [Mutex] waiting for: [received:nodes:f2c19fed-b27d-4659-92cb-2e05fd5a32dd:localhost] 2022-05-08 23:20:14 | [Mutex] received everything. 2022-05-08 23:20:14 | [Mutex] isItemNotified: received:node:f2c19fed-b27d-4659-92cb-2e05fd5a32dd:localhost:node-f62cd95b-af5e-4586-bf81-dbce520a3068:Node f62cd95b-af5e-4586-bf81-dbce520a3068 :: true |
deleteNodes | 1.018s |
2022-05-08 23:20:18 |
2022-05-08 23:20:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 23:20:18 | ------------------------------------ 2022-05-08 23:20:18 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f62cd95b-af5e-4586-bf81-dbce520a3068" } 2022-05-08 23:20:18 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-08 23:20:19 | [Mutex] waiting for: [received:nodes:0659c31e-c8dd-41d3-aba8-3d169181eca0:localhost] 2022-05-08 23:20:19 | [Mutex] waiting for: [received:nodes:0659c31e-c8dd-41d3-aba8-3d169181eca0:localhost] 2022-05-08 23:20:19 | [Mutex] received everything. 2022-05-08 23:20:19 | [Mutex] isItemNotified: received:node:0659c31e-c8dd-41d3-aba8-3d169181eca0:localhost:node-f62cd95b-af5e-4586-bf81-dbce520a3068:Node f62cd95b-af5e-4586-bf81-dbce520a3068 :: false |
deleteSubnodes | 1.025s |
2022-05-08 23:20:17 |
2022-05-08 23:20:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 23:20:17 | ------------------------------------ 2022-05-08 23:20:17 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-467e3d08-fb26-41aa-ae40-3b6bdc9ff04d" } 2022-05-08 23:20:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-08 23:20:18 | [Mutex] waiting for: [received:nodes:17799a98-8ba8-4e27-8673-ac67c5647751:localhost] 2022-05-08 23:20:18 | [Mutex] waiting for: [received:nodes:17799a98-8ba8-4e27-8673-ac67c5647751:localhost] 2022-05-08 23:20:18 | [Mutex] received everything. 2022-05-08 23:20:18 | [Mutex] isItemNotified: received:node:17799a98-8ba8-4e27-8673-ac67c5647751:localhost:node-467e3d08-fb26-41aa-ae40-3b6bdc9ff04d:Node 467e3d08-fb26-41aa-ae40-3b6bdc9ff04d :: false 2022-05-08 23:20:18 | [Mutex] waiting for: [received:nodes:8308cb62-f815-4754-b03f-c83ce10013b6:localhost] 2022-05-08 23:20:18 | [Mutex] received everything. 2022-05-08 23:20:18 | [Mutex] isItemNotified: received:node:8308cb62-f815-4754-b03f-c83ce10013b6:localhost:node-467e3d08-fb26-41aa-ae40-3b6bdc9ff04d:Node 467e3d08-fb26-41aa-ae40-3b6bdc9ff04d :: false |
publishItemsToNodes | 0.054s |
2022-05-08 23:20:16 |
2022-05-08 23:20:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 23:20:16 | ------------------------------------ 2022-05-08 23:20:16 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-467e3d08-fb26-41aa-ae40-3b6bdc9ff04d", "entry": "<test>item-b3a8dccd-58f4-4f24-879c-3de1a3222b3b</test>", "item-id": "item-b3a8dccd-58f4-4f24-879c-3de1a3222b3b" } 2022-05-08 23:20:16 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b3a8dccd-58f4-4f24-879c-3de1a3222b3b" } 2022-05-08 23:20:16 | [Mutex] waiting for: [published:item:notifieditem-b3a8dccd-58f4-4f24-879c-3de1a3222b3b:admin@test-domain.com] 2022-05-08 23:20:16 | [Mutex] received everything. 2022-05-08 23:20:16 | [Mutex] isItemNotified: published:item:notifieditem-b3a8dccd-58f4-4f24-879c-3de1a3222b3b:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-05-08 23:20:16 |
2022-05-08 23:20:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 23:20:16 | ------------------------------------ 2022-05-08 23:20:16 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-467e3d08-fb26-41aa-ae40-3b6bdc9ff04d", "item-id": "item-b3a8dccd-58f4-4f24-879c-3de1a3222b3b" } 2022-05-08 23:20:16 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b3a8dccd-58f4-4f24-879c-3de1a3222b3b" } 2022-05-08 23:20:16 | [Mutex] received everything. 2022-05-08 23:20:16 | [Mutex] isItemNotified: retracted:item:notifieditem-b3a8dccd-58f4-4f24-879c-3de1a3222b3b:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.027s |
2022-05-08 23:20:16 |
2022-05-08 23:20:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 23:20:16 | ------------------------------------ 2022-05-08 23:20:16 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-467e3d08-fb26-41aa-ae40-3b6bdc9ff04d", "item-id": "item-b3a8dccd-58f4-4f24-879c-3de1a3222b3b" } 2022-05-08 23:20:16 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-467e3d08-fb26-41aa-ae40-3b6bdc9ff04d", "item-id": "item-b3a8dccd-58f4-4f24-879c-3de1a3222b3b", "item": [ "<item id=\"item-b3a8dccd-58f4-4f24-879c-3de1a3222b3b\"><test>item-b3a8dccd-58f4-4f24-879c-3de1a3222b3b</test></item>" ] } 2022-05-08 23:20:16 | [Mutex] notify: [retrieved:item:item-b3a8dccd-58f4-4f24-879c-3de1a3222b3b:payload-matches:true:localhost] 2022-05-08 23:20:16 | [Mutex] received everything. 2022-05-08 23:20:16 | [Mutex] isItemNotified: retrieved:item:item-b3a8dccd-58f4-4f24-879c-3de1a3222b3b:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.073s |
2022-05-08 23:20:16 |
2022-05-08 23:20:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 23:20:16 | ------------------------------------ 2022-05-08 23:20:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-08 23:20:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-467e3d08-fb26-41aa-ae40-3b6bdc9ff04d", "test", "node-f62cd95b-af5e-4586-bf81-dbce520a3068" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-05-08 23:20:16 |
2022-05-08 23:20:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 23:20:16 | ------------------------------------ 2022-05-08 23:20:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-467e3d08-fb26-41aa-ae40-3b6bdc9ff04d)" } 2022-05-08 23:20:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-05-08 23:20:15 |
2022-05-08 23:20:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 23:20:15 | ------------------------------------ 2022-05-08 23:20:15 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-467e3d08-fb26-41aa-ae40-3b6bdc9ff04d", "jids": [ "admin@test-domain.com" ] } 2022-05-08 23:20:15 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-05-08 23:20:16 |
2022-05-08 23:20:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 23:20:16 | ------------------------------------ 2022-05-08 23:20:16 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-467e3d08-fb26-41aa-ae40-3b6bdc9ff04d", "jids": [ "admin@test-domain.com" ] } 2022-05-08 23:20:16 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |