Test duration : 8.759s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2022-08-09 22:34:25 |
2022-08-09 22:34:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:25 | ------------------------------------ 2022-08-09 22:34:25 | [Mutex] waiting for: [configured:node:node-fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6:node-36e787e5-ded8-4a45-a114-c5adc0e4692e] 2022-08-09 22:34:25 | [Mutex] received everything. 2022-08-09 22:34:25 | [Mutex] isItemNotified: configured:node:node-fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6:node-36e787e5-ded8-4a45-a114-c5adc0e4692e :: true 2022-08-09 22:34:26 | [Mutex] waiting for: [received:nodes:2f587ee7-676f-4919-9a28-eeb244f1b20d:localhost] 2022-08-09 22:34:26 | [Mutex] received everything. 2022-08-09 22:34:26 | [Mutex] isItemNotified: received:node:2f587ee7-676f-4919-9a28-eeb244f1b20d:localhost:node-fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6:Node fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6 :: true 2022-08-09 22:34:26 | [Mutex] waiting for: [received:nodes:82d63764-1aa0-4426-84ae-c7c17762687b:localhost] 2022-08-09 22:34:26 | [Mutex] waiting for: [received:nodes:82d63764-1aa0-4426-84ae-c7c17762687b:localhost] 2022-08-09 22:34:26 | [Mutex] received everything. 2022-08-09 22:34:26 | [Mutex] isItemNotified: received:node:82d63764-1aa0-4426-84ae-c7c17762687b:localhost:node-fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6:Node fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6 :: false |
createNodes | 1.558s |
2022-08-09 22:34:23 |
2022-08-09 22:34:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:23 | ------------------------------------ 2022-08-09 22:34:23 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6", "pubsub#title": "Node fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6" } 2022-08-09 22:34:23 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-09 22:34:24 | [Mutex] waiting for: [received:nodes:b55d3dac-0bd4-477b-9b01-a27c55a128e7:localhost] 2022-08-09 22:34:24 | [Mutex] received everything. 2022-08-09 22:34:24 | [Mutex] isItemNotified: received:node:b55d3dac-0bd4-477b-9b01-a27c55a128e7:localhost:node-fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6:Node fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6 :: true |
createSubnodes | 1.024s |
2022-08-09 22:34:24 |
2022-08-09 22:34:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:24 | ------------------------------------ 2022-08-09 22:34:24 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-36e787e5-ded8-4a45-a114-c5adc0e4692e", "pubsub#title": "Node 36e787e5-ded8-4a45-a114-c5adc0e4692e" } 2022-08-09 22:34:24 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-09 22:34:25 | [Mutex] waiting for: [received:nodes:be47e1f7-299e-445f-862c-dc737de44aeb:localhost] 2022-08-09 22:34:25 | [Mutex] waiting for: [received:nodes:be47e1f7-299e-445f-862c-dc737de44aeb:localhost] 2022-08-09 22:34:25 | [Mutex] received everything. 2022-08-09 22:34:25 | [Mutex] isItemNotified: received:node:be47e1f7-299e-445f-862c-dc737de44aeb:localhost:node-36e787e5-ded8-4a45-a114-c5adc0e4692e:Node 36e787e5-ded8-4a45-a114-c5adc0e4692e :: true |
deleteNodes | 1.021s |
2022-08-09 22:34:30 |
2022-08-09 22:34:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:30 | ------------------------------------ 2022-08-09 22:34:30 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-36e787e5-ded8-4a45-a114-c5adc0e4692e" } 2022-08-09 22:34:30 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-09 22:34:31 | [Mutex] waiting for: [received:nodes:b098e516-29ab-429a-8746-39e2625b6619:localhost] 2022-08-09 22:34:31 | [Mutex] waiting for: [received:nodes:b098e516-29ab-429a-8746-39e2625b6619:localhost] 2022-08-09 22:34:31 | [Mutex] received everything. 2022-08-09 22:34:31 | [Mutex] isItemNotified: received:node:b098e516-29ab-429a-8746-39e2625b6619:localhost:node-36e787e5-ded8-4a45-a114-c5adc0e4692e:Node 36e787e5-ded8-4a45-a114-c5adc0e4692e :: false |
deleteSubnodes | 1.025s |
2022-08-09 22:34:29 |
2022-08-09 22:34:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:29 | ------------------------------------ 2022-08-09 22:34:29 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6" } 2022-08-09 22:34:29 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-09 22:34:30 | [Mutex] waiting for: [received:nodes:80d862d5-1ec0-4349-81c4-c106c0b3f7e5:localhost] 2022-08-09 22:34:30 | [Mutex] waiting for: [received:nodes:80d862d5-1ec0-4349-81c4-c106c0b3f7e5:localhost] 2022-08-09 22:34:30 | [Mutex] received everything. 2022-08-09 22:34:30 | [Mutex] isItemNotified: received:node:80d862d5-1ec0-4349-81c4-c106c0b3f7e5:localhost:node-fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6:Node fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6 :: false 2022-08-09 22:34:30 | [Mutex] waiting for: [received:nodes:e080b621-7f91-4813-b164-d5313338f639:localhost] 2022-08-09 22:34:30 | [Mutex] received everything. 2022-08-09 22:34:30 | [Mutex] isItemNotified: received:node:e080b621-7f91-4813-b164-d5313338f639:localhost:node-fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6:Node fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6 :: false |
publishItemsToNodes | 0.035s |
2022-08-09 22:34:27 |
2022-08-09 22:34:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:27 | ------------------------------------ 2022-08-09 22:34:27 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6", "entry": "<test>item-b49511c6-fdbc-407c-82e6-c1ca2cc3f29f</test>", "item-id": "item-b49511c6-fdbc-407c-82e6-c1ca2cc3f29f" } 2022-08-09 22:34:27 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b49511c6-fdbc-407c-82e6-c1ca2cc3f29f" } 2022-08-09 22:34:27 | [Mutex] waiting for: [published:item:notifieditem-b49511c6-fdbc-407c-82e6-c1ca2cc3f29f:admin@test-domain.com] 2022-08-09 22:34:27 | [Mutex] received everything. 2022-08-09 22:34:27 | [Mutex] isItemNotified: published:item:notifieditem-b49511c6-fdbc-407c-82e6-c1ca2cc3f29f:admin@test-domain.com :: true |
retractItemsFromNodes | 0.062s |
2022-08-09 22:34:28 |
2022-08-09 22:34:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:28 | ------------------------------------ 2022-08-09 22:34:28 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6", "item-id": "item-b49511c6-fdbc-407c-82e6-c1ca2cc3f29f" } 2022-08-09 22:34:28 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b49511c6-fdbc-407c-82e6-c1ca2cc3f29f" } 2022-08-09 22:34:28 | [Mutex] received everything. 2022-08-09 22:34:28 | [Mutex] isItemNotified: retracted:item:notifieditem-b49511c6-fdbc-407c-82e6-c1ca2cc3f29f:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.068s |
2022-08-09 22:34:27 |
2022-08-09 22:34:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:27 | ------------------------------------ 2022-08-09 22:34:27 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6", "item-id": "item-b49511c6-fdbc-407c-82e6-c1ca2cc3f29f" } 2022-08-09 22:34:27 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6", "item-id": "item-b49511c6-fdbc-407c-82e6-c1ca2cc3f29f", "item": [ "<item id=\"item-b49511c6-fdbc-407c-82e6-c1ca2cc3f29f\"><test>item-b49511c6-fdbc-407c-82e6-c1ca2cc3f29f</test></item>" ] } 2022-08-09 22:34:27 | [Mutex] notify: [retrieved:item:item-b49511c6-fdbc-407c-82e6-c1ca2cc3f29f:payload-matches:true:localhost] 2022-08-09 22:34:27 | [Mutex] received everything. 2022-08-09 22:34:27 | [Mutex] isItemNotified: retrieved:item:item-b49511c6-fdbc-407c-82e6-c1ca2cc3f29f:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.067s |
2022-08-09 22:34:27 |
2022-08-09 22:34:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:27 | ------------------------------------ 2022-08-09 22:34:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-09 22:34:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6", "test", "node-36e787e5-ded8-4a45-a114-c5adc0e4692e" ] } |
retrieveUserSubscriptionsWithRegex | 0.055s |
2022-08-09 22:34:28 |
2022-08-09 22:34:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:28 | ------------------------------------ 2022-08-09 22:34:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6)" } 2022-08-09 22:34:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-08-09 22:34:26 |
2022-08-09 22:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:26 | ------------------------------------ 2022-08-09 22:34:26 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6", "jids": [ "admin@test-domain.com" ] } 2022-08-09 22:34:26 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.159s |
2022-08-09 22:34:28 |
2022-08-09 22:34:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:28 | ------------------------------------ 2022-08-09 22:34:28 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-fbea6f73-86ac-4d1d-9821-59c5cf1fa9c6", "jids": [ "admin@test-domain.com" ] } 2022-08-09 22:34:28 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |