Test duration : 9.017s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.107s |
2022-01-19 21:43:29 |
2022-01-19 21:43:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-19 21:43:29 | ------------------------------------ 2022-01-19 21:43:29 | [Mutex] waiting for: [configured:node:node-9a2ef734-e417-470b-ace2-9a4383e7901d:node-fb19556a-6f19-4055-99c9-88d21914c83d] 2022-01-19 21:43:29 | [Mutex] received everything. 2022-01-19 21:43:29 | [Mutex] isItemNotified: configured:node:node-9a2ef734-e417-470b-ace2-9a4383e7901d:node-fb19556a-6f19-4055-99c9-88d21914c83d :: true 2022-01-19 21:43:30 | [Mutex] waiting for: [received:nodes:f2ff749c-559a-474e-ad84-35dc5dc5574f:localhost] 2022-01-19 21:43:30 | [Mutex] received everything. 2022-01-19 21:43:30 | [Mutex] isItemNotified: received:node:f2ff749c-559a-474e-ad84-35dc5dc5574f:localhost:node-9a2ef734-e417-470b-ace2-9a4383e7901d:Node 9a2ef734-e417-470b-ace2-9a4383e7901d :: true 2022-01-19 21:43:30 | [Mutex] waiting for: [received:nodes:ff46b0ab-3b8a-452c-b45e-ea9f845e3353:localhost] 2022-01-19 21:43:30 | [Mutex] received everything. 2022-01-19 21:43:30 | [Mutex] isItemNotified: received:node:ff46b0ab-3b8a-452c-b45e-ea9f845e3353:localhost:node-9a2ef734-e417-470b-ace2-9a4383e7901d:Node 9a2ef734-e417-470b-ace2-9a4383e7901d :: false |
createNodes | 1.569s |
2022-01-19 21:43:26 |
2022-01-19 21:43:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-19 21:43:26 | ------------------------------------ 2022-01-19 21:43: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-9a2ef734-e417-470b-ace2-9a4383e7901d", "pubsub#title": "Node 9a2ef734-e417-470b-ace2-9a4383e7901d" } 2022-01-19 21:43:27 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-01-19 21:43:28 | [Mutex] waiting for: [received:nodes:484bce1c-13bb-49a3-a54a-6cdfb1ceec5f:localhost] 2022-01-19 21:43:28 | [Mutex] waiting for: [received:nodes:484bce1c-13bb-49a3-a54a-6cdfb1ceec5f:localhost] 2022-01-19 21:43:28 | [Mutex] received everything. 2022-01-19 21:43:28 | [Mutex] isItemNotified: received:node:484bce1c-13bb-49a3-a54a-6cdfb1ceec5f:localhost:node-9a2ef734-e417-470b-ace2-9a4383e7901d:Node 9a2ef734-e417-470b-ace2-9a4383e7901d :: true |
createSubnodes | 1.030s |
2022-01-19 21:43:28 |
2022-01-19 21:43:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-19 21:43:28 | ------------------------------------ 2022-01-19 21:43: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-fb19556a-6f19-4055-99c9-88d21914c83d", "pubsub#title": "Node fb19556a-6f19-4055-99c9-88d21914c83d" } 2022-01-19 21:43:28 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-01-19 21:43:29 | [Mutex] waiting for: [received:nodes:04a17e63-ce4e-44e8-aed0-0d63360c21c4:localhost] 2022-01-19 21:43:29 | [Mutex] waiting for: [received:nodes:04a17e63-ce4e-44e8-aed0-0d63360c21c4:localhost] 2022-01-19 21:43:29 | [Mutex] received everything. 2022-01-19 21:43:29 | [Mutex] isItemNotified: received:node:04a17e63-ce4e-44e8-aed0-0d63360c21c4:localhost:node-fb19556a-6f19-4055-99c9-88d21914c83d:Node fb19556a-6f19-4055-99c9-88d21914c83d :: true |
deleteNodes | 1.018s |
2022-01-19 21:43:33 |
2022-01-19 21:43:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-19 21:43:33 | ------------------------------------ 2022-01-19 21:43:33 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-fb19556a-6f19-4055-99c9-88d21914c83d" } 2022-01-19 21:43:33 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-01-19 21:43:34 | [Mutex] waiting for: [received:nodes:2315f442-3ea2-4fd9-9ba9-512f75bd31eb:localhost] 2022-01-19 21:43:34 | [Mutex] waiting for: [received:nodes:2315f442-3ea2-4fd9-9ba9-512f75bd31eb:localhost] 2022-01-19 21:43:34 | [Mutex] received everything. 2022-01-19 21:43:34 | [Mutex] isItemNotified: received:node:2315f442-3ea2-4fd9-9ba9-512f75bd31eb:localhost:node-fb19556a-6f19-4055-99c9-88d21914c83d:Node fb19556a-6f19-4055-99c9-88d21914c83d :: false |
deleteSubnodes | 1.029s |
2022-01-19 21:43:32 |
2022-01-19 21:43:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-19 21:43:32 | ------------------------------------ 2022-01-19 21:43:32 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9a2ef734-e417-470b-ace2-9a4383e7901d" } 2022-01-19 21:43:32 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-01-19 21:43:33 | [Mutex] waiting for: [received:nodes:ebfb28ef-927d-4040-ac35-c935626f8f3d:localhost] 2022-01-19 21:43:33 | [Mutex] waiting for: [received:nodes:ebfb28ef-927d-4040-ac35-c935626f8f3d:localhost] 2022-01-19 21:43:33 | [Mutex] received everything. 2022-01-19 21:43:33 | [Mutex] isItemNotified: received:node:ebfb28ef-927d-4040-ac35-c935626f8f3d:localhost:node-9a2ef734-e417-470b-ace2-9a4383e7901d:Node 9a2ef734-e417-470b-ace2-9a4383e7901d :: false 2022-01-19 21:43:33 | [Mutex] waiting for: [received:nodes:719aff3f-1761-46db-9002-6ccbda4d15a2:localhost] 2022-01-19 21:43:33 | [Mutex] received everything. 2022-01-19 21:43:33 | [Mutex] isItemNotified: received:node:719aff3f-1761-46db-9002-6ccbda4d15a2:localhost:node-9a2ef734-e417-470b-ace2-9a4383e7901d:Node 9a2ef734-e417-470b-ace2-9a4383e7901d :: false |
publishItemsToNodes | 0.047s |
2022-01-19 21:43:31 |
2022-01-19 21:43:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-19 21:43:31 | ------------------------------------ 2022-01-19 21:43:31 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-9a2ef734-e417-470b-ace2-9a4383e7901d", "entry": "<test>item-a8aee243-287c-4b70-aeab-4be14b748f17</test>", "item-id": "item-a8aee243-287c-4b70-aeab-4be14b748f17" } 2022-01-19 21:43:31 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a8aee243-287c-4b70-aeab-4be14b748f17" } 2022-01-19 21:43:31 | [Mutex] waiting for: [published:item:notifieditem-a8aee243-287c-4b70-aeab-4be14b748f17:admin@test-domain.com] 2022-01-19 21:43:31 | [Mutex] received everything. 2022-01-19 21:43:31 | [Mutex] isItemNotified: published:item:notifieditem-a8aee243-287c-4b70-aeab-4be14b748f17:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2022-01-19 21:43:31 |
2022-01-19 21:43:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-19 21:43:31 | ------------------------------------ 2022-01-19 21:43:31 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-9a2ef734-e417-470b-ace2-9a4383e7901d", "item-id": "item-a8aee243-287c-4b70-aeab-4be14b748f17" } 2022-01-19 21:43:31 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a8aee243-287c-4b70-aeab-4be14b748f17" } 2022-01-19 21:43:31 | [Mutex] waiting for: [retracted:item:notifieditem-a8aee243-287c-4b70-aeab-4be14b748f17:admin@test-domain.com] 2022-01-19 21:43:31 | [Mutex] received everything. 2022-01-19 21:43:31 | [Mutex] isItemNotified: retracted:item:notifieditem-a8aee243-287c-4b70-aeab-4be14b748f17:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.136s |
2022-01-19 21:43:31 |
2022-01-19 21:43:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-19 21:43:31 | ------------------------------------ 2022-01-19 21:43:31 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-9a2ef734-e417-470b-ace2-9a4383e7901d", "item-id": "item-a8aee243-287c-4b70-aeab-4be14b748f17" } 2022-01-19 21:43:31 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-9a2ef734-e417-470b-ace2-9a4383e7901d", "item-id": "item-a8aee243-287c-4b70-aeab-4be14b748f17", "item": [ "<item id=\"item-a8aee243-287c-4b70-aeab-4be14b748f17\"><test>item-a8aee243-287c-4b70-aeab-4be14b748f17</test></item>" ] } 2022-01-19 21:43:31 | [Mutex] notify: [retrieved:item:item-a8aee243-287c-4b70-aeab-4be14b748f17:payload-matches:true:localhost] 2022-01-19 21:43:31 | [Mutex] received everything. 2022-01-19 21:43:31 | [Mutex] isItemNotified: retrieved:item:item-a8aee243-287c-4b70-aeab-4be14b748f17:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-01-19 21:43:31 |
2022-01-19 21:43:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-19 21:43:31 | ------------------------------------ 2022-01-19 21:43:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-01-19 21:43:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-fb19556a-6f19-4055-99c9-88d21914c83d", "test", "node-9a2ef734-e417-470b-ace2-9a4383e7901d" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-01-19 21:43:31 |
2022-01-19 21:43:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-19 21:43:31 | ------------------------------------ 2022-01-19 21:43:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-9a2ef734-e417-470b-ace2-9a4383e7901d)" } 2022-01-19 21:43:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-01-19 21:43:30 |
2022-01-19 21:43:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-19 21:43:30 | ------------------------------------ 2022-01-19 21:43:30 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-9a2ef734-e417-470b-ace2-9a4383e7901d", "jids": [ "admin@test-domain.com" ] } 2022-01-19 21:43:30 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.083s |
2022-01-19 21:43:31 |
2022-01-19 21:43:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-19 21:43:31 | ------------------------------------ 2022-01-19 21:43:31 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-9a2ef734-e417-470b-ace2-9a4383e7901d", "jids": [ "admin@test-domain.com" ] } 2022-01-19 21:43:31 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |