Test duration : 8.675s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.090s |
2022-07-27 23:05:18 |
2022-07-27 23:05:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-27 23:05:18 | ------------------------------------ 2022-07-27 23:05:18 | [Mutex] waiting for: [configured:node:node-a162e18f-c6a6-452a-b18b-f95a45cf33ea:node-b4570524-23ad-4605-bfac-6882c92fe0ac] 2022-07-27 23:05:18 | [Mutex] received everything. 2022-07-27 23:05:18 | [Mutex] isItemNotified: configured:node:node-a162e18f-c6a6-452a-b18b-f95a45cf33ea:node-b4570524-23ad-4605-bfac-6882c92fe0ac :: true 2022-07-27 23:05:19 | [Mutex] waiting for: [received:nodes:75f5ebcb-230c-4c3b-9b04-5b23684b238a:localhost] 2022-07-27 23:05:19 | [Mutex] received everything. 2022-07-27 23:05:19 | [Mutex] isItemNotified: received:node:75f5ebcb-230c-4c3b-9b04-5b23684b238a:localhost:node-a162e18f-c6a6-452a-b18b-f95a45cf33ea:Node a162e18f-c6a6-452a-b18b-f95a45cf33ea :: true 2022-07-27 23:05:19 | [Mutex] waiting for: [received:nodes:61843b9a-5270-463b-929a-6426a7cca762:localhost] 2022-07-27 23:05:19 | [Mutex] received everything. 2022-07-27 23:05:19 | [Mutex] isItemNotified: received:node:61843b9a-5270-463b-929a-6426a7cca762:localhost:node-a162e18f-c6a6-452a-b18b-f95a45cf33ea:Node a162e18f-c6a6-452a-b18b-f95a45cf33ea :: false |
createNodes | 1.535s |
2022-07-27 23:05:16 |
2022-07-27 23:05:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-27 23:05:16 | ------------------------------------ 2022-07-27 23:05:16 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-a162e18f-c6a6-452a-b18b-f95a45cf33ea", "pubsub#title": "Node a162e18f-c6a6-452a-b18b-f95a45cf33ea" } 2022-07-27 23:05:16 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-27 23:05:17 | [Mutex] waiting for: [received:nodes:44f20981-fecc-41e3-bd9c-605214f62ce5:localhost] 2022-07-27 23:05:17 | [Mutex] waiting for: [received:nodes:44f20981-fecc-41e3-bd9c-605214f62ce5:localhost] 2022-07-27 23:05:17 | [Mutex] waiting for: [received:nodes:44f20981-fecc-41e3-bd9c-605214f62ce5:localhost] 2022-07-27 23:05:17 | [Mutex] received everything. 2022-07-27 23:05:17 | [Mutex] isItemNotified: received:node:44f20981-fecc-41e3-bd9c-605214f62ce5:localhost:node-a162e18f-c6a6-452a-b18b-f95a45cf33ea:Node a162e18f-c6a6-452a-b18b-f95a45cf33ea :: true |
createSubnodes | 1.020s |
2022-07-27 23:05:17 |
2022-07-27 23:05:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-27 23:05:17 | ------------------------------------ 2022-07-27 23:05:17 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-b4570524-23ad-4605-bfac-6882c92fe0ac", "pubsub#title": "Node b4570524-23ad-4605-bfac-6882c92fe0ac" } 2022-07-27 23:05:17 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-27 23:05:18 | [Mutex] waiting for: [received:nodes:27efd0e8-287c-4902-a28e-b7c3f76ce407:localhost] 2022-07-27 23:05:18 | [Mutex] received everything. 2022-07-27 23:05:18 | [Mutex] isItemNotified: received:node:27efd0e8-287c-4902-a28e-b7c3f76ce407:localhost:node-b4570524-23ad-4605-bfac-6882c92fe0ac:Node b4570524-23ad-4605-bfac-6882c92fe0ac :: true |
deleteNodes | 1.058s |
2022-07-27 23:05:23 |
2022-07-27 23:05:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-27 23:05:23 | ------------------------------------ 2022-07-27 23:05:23 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b4570524-23ad-4605-bfac-6882c92fe0ac" } 2022-07-27 23:05:23 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-27 23:05:24 | [Mutex] waiting for: [received:nodes:f3b7c05e-8225-4b83-8a48-6a3a370d8dc6:localhost] 2022-07-27 23:05:24 | [Mutex] received everything. 2022-07-27 23:05:24 | [Mutex] isItemNotified: received:node:f3b7c05e-8225-4b83-8a48-6a3a370d8dc6:localhost:node-b4570524-23ad-4605-bfac-6882c92fe0ac:Node b4570524-23ad-4605-bfac-6882c92fe0ac :: false |
deleteSubnodes | 1.027s |
2022-07-27 23:05:22 |
2022-07-27 23:05:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-27 23:05:22 | ------------------------------------ 2022-07-27 23:05:22 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a162e18f-c6a6-452a-b18b-f95a45cf33ea" } 2022-07-27 23:05:22 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-27 23:05:23 | [Mutex] waiting for: [received:nodes:2550ab54-464b-4ead-b365-bc6bb2582cce:localhost] 2022-07-27 23:05:23 | [Mutex] waiting for: [received:nodes:2550ab54-464b-4ead-b365-bc6bb2582cce:localhost] 2022-07-27 23:05:23 | [Mutex] received everything. 2022-07-27 23:05:23 | [Mutex] isItemNotified: received:node:2550ab54-464b-4ead-b365-bc6bb2582cce:localhost:node-a162e18f-c6a6-452a-b18b-f95a45cf33ea:Node a162e18f-c6a6-452a-b18b-f95a45cf33ea :: false 2022-07-27 23:05:23 | [Mutex] waiting for: [received:nodes:f0c4e798-6538-4805-84a4-983637662190:localhost] 2022-07-27 23:05:23 | [Mutex] received everything. 2022-07-27 23:05:23 | [Mutex] isItemNotified: received:node:f0c4e798-6538-4805-84a4-983637662190:localhost:node-a162e18f-c6a6-452a-b18b-f95a45cf33ea:Node a162e18f-c6a6-452a-b18b-f95a45cf33ea :: false |
publishItemsToNodes | 0.042s |
2022-07-27 23:05:20 |
2022-07-27 23:05:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-27 23:05:20 | ------------------------------------ 2022-07-27 23:05:20 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-a162e18f-c6a6-452a-b18b-f95a45cf33ea", "entry": "<test>item-3bb5fcd8-d79e-4915-8abc-e1c412994442</test>", "item-id": "item-3bb5fcd8-d79e-4915-8abc-e1c412994442" } 2022-07-27 23:05:20 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3bb5fcd8-d79e-4915-8abc-e1c412994442" } 2022-07-27 23:05:20 | [Mutex] received everything. 2022-07-27 23:05:20 | [Mutex] isItemNotified: published:item:notifieditem-3bb5fcd8-d79e-4915-8abc-e1c412994442:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-07-27 23:05:20 |
2022-07-27 23:05:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-27 23:05:20 | ------------------------------------ 2022-07-27 23:05:20 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-a162e18f-c6a6-452a-b18b-f95a45cf33ea", "item-id": "item-3bb5fcd8-d79e-4915-8abc-e1c412994442" } 2022-07-27 23:05:21 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3bb5fcd8-d79e-4915-8abc-e1c412994442" } 2022-07-27 23:05:21 | [Mutex] received everything. 2022-07-27 23:05:21 | [Mutex] isItemNotified: retracted:item:notifieditem-3bb5fcd8-d79e-4915-8abc-e1c412994442:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.054s |
2022-07-27 23:05:20 |
2022-07-27 23:05:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-27 23:05:20 | ------------------------------------ 2022-07-27 23:05:20 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-a162e18f-c6a6-452a-b18b-f95a45cf33ea", "item-id": "item-3bb5fcd8-d79e-4915-8abc-e1c412994442" } 2022-07-27 23:05:20 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-a162e18f-c6a6-452a-b18b-f95a45cf33ea", "item-id": "item-3bb5fcd8-d79e-4915-8abc-e1c412994442", "item": [ "<item id=\"item-3bb5fcd8-d79e-4915-8abc-e1c412994442\"><test>item-3bb5fcd8-d79e-4915-8abc-e1c412994442</test></item>" ] } 2022-07-27 23:05:20 | [Mutex] notify: [retrieved:item:item-3bb5fcd8-d79e-4915-8abc-e1c412994442:payload-matches:true:localhost] 2022-07-27 23:05:20 | [Mutex] received everything. 2022-07-27 23:05:20 | [Mutex] isItemNotified: retrieved:item:item-3bb5fcd8-d79e-4915-8abc-e1c412994442:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-07-27 23:05:20 |
2022-07-27 23:05:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-27 23:05:20 | ------------------------------------ 2022-07-27 23:05:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-27 23:05:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-b4570524-23ad-4605-bfac-6882c92fe0ac", "node-a162e18f-c6a6-452a-b18b-f95a45cf33ea" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-07-27 23:05:20 |
2022-07-27 23:05:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-27 23:05:20 | ------------------------------------ 2022-07-27 23:05:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-a162e18f-c6a6-452a-b18b-f95a45cf33ea)" } 2022-07-27 23:05:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2022-07-27 23:05:19 |
2022-07-27 23:05:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-27 23:05:19 | ------------------------------------ 2022-07-27 23:05:19 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-a162e18f-c6a6-452a-b18b-f95a45cf33ea", "jids": [ "admin@test-domain.com" ] } 2022-07-27 23:05:19 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2022-07-27 23:05:21 |
2022-07-27 23:05:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-27 23:05:21 | ------------------------------------ 2022-07-27 23:05:21 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-a162e18f-c6a6-452a-b18b-f95a45cf33ea", "jids": [ "admin@test-domain.com" ] } 2022-07-27 23:05:21 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |