Test duration : 8.965s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.104s |
2021-03-31 23:01:43 |
2021-03-31 23:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 23:01:43 | ------------------------------------ 2021-03-31 23:01:43 | [Mutex] waiting for: [configured:node:node-a8c5cbe7-52df-44a1-946b-e9bbc7e36698:node-2e37f46c-8b3f-4599-b635-a3c4165f33e5] 2021-03-31 23:01:43 | [Mutex] received everything. 2021-03-31 23:01:43 | [Mutex] isItemNotified: configured:node:node-a8c5cbe7-52df-44a1-946b-e9bbc7e36698:node-2e37f46c-8b3f-4599-b635-a3c4165f33e5 :: true 2021-03-31 23:01:44 | [Mutex] waiting for: [received:nodes:02b0cda8-e7a6-4ca8-be36-6c199c765252:localhost] 2021-03-31 23:01:44 | [Mutex] received everything. 2021-03-31 23:01:44 | [Mutex] isItemNotified: received:node:02b0cda8-e7a6-4ca8-be36-6c199c765252:localhost:node-a8c5cbe7-52df-44a1-946b-e9bbc7e36698:Node a8c5cbe7-52df-44a1-946b-e9bbc7e36698 :: true 2021-03-31 23:01:44 | [Mutex] waiting for: [received:nodes:8b27d122-cb9d-42d7-820b-7c8954e71f8e:localhost] 2021-03-31 23:01:44 | [Mutex] waiting for: [received:nodes:8b27d122-cb9d-42d7-820b-7c8954e71f8e:localhost] 2021-03-31 23:01:44 | [Mutex] waiting for: [received:nodes:8b27d122-cb9d-42d7-820b-7c8954e71f8e:localhost] 2021-03-31 23:01:44 | [Mutex] received everything. 2021-03-31 23:01:44 | [Mutex] isItemNotified: received:node:8b27d122-cb9d-42d7-820b-7c8954e71f8e:localhost:node-a8c5cbe7-52df-44a1-946b-e9bbc7e36698:Node a8c5cbe7-52df-44a1-946b-e9bbc7e36698 :: false |
createNodes | 1.629s |
2021-03-31 23:01:40 |
2021-03-31 23:01:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 23:01:40 | ------------------------------------ 2021-03-31 23:01:41 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-a8c5cbe7-52df-44a1-946b-e9bbc7e36698", "pubsub#title": "Node a8c5cbe7-52df-44a1-946b-e9bbc7e36698" } 2021-03-31 23:01:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-31 23:01:42 | [Mutex] waiting for: [received:nodes:09e928b2-7860-40b1-878b-78ee36939e7e:localhost] 2021-03-31 23:01:42 | [Mutex] received everything. 2021-03-31 23:01:42 | [Mutex] isItemNotified: received:node:09e928b2-7860-40b1-878b-78ee36939e7e:localhost:node-a8c5cbe7-52df-44a1-946b-e9bbc7e36698:Node a8c5cbe7-52df-44a1-946b-e9bbc7e36698 :: true |
createSubnodes | 1.024s |
2021-03-31 23:01:42 |
2021-03-31 23:01:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 23:01:42 | ------------------------------------ 2021-03-31 23:01:42 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-2e37f46c-8b3f-4599-b635-a3c4165f33e5", "pubsub#title": "Node 2e37f46c-8b3f-4599-b635-a3c4165f33e5" } 2021-03-31 23:01:42 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-31 23:01:43 | [Mutex] waiting for: [received:nodes:3f7c9e24-8592-47c8-b54e-db2a69f4fade:localhost] 2021-03-31 23:01:43 | [Mutex] received everything. 2021-03-31 23:01:43 | [Mutex] isItemNotified: received:node:3f7c9e24-8592-47c8-b54e-db2a69f4fade:localhost:node-2e37f46c-8b3f-4599-b635-a3c4165f33e5:Node 2e37f46c-8b3f-4599-b635-a3c4165f33e5 :: true |
deleteNodes | 1.018s |
2021-03-31 23:01:47 |
2021-03-31 23:01:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 23:01:47 | ------------------------------------ 2021-03-31 23:01:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2e37f46c-8b3f-4599-b635-a3c4165f33e5" } 2021-03-31 23:01:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-31 23:01:48 | [Mutex] waiting for: [received:nodes:892b3c42-37c1-4b14-9fe1-b38b7d7aac02:localhost] 2021-03-31 23:01:48 | [Mutex] received everything. 2021-03-31 23:01:48 | [Mutex] isItemNotified: received:node:892b3c42-37c1-4b14-9fe1-b38b7d7aac02:localhost:node-2e37f46c-8b3f-4599-b635-a3c4165f33e5:Node 2e37f46c-8b3f-4599-b635-a3c4165f33e5 :: false |
deleteSubnodes | 1.042s |
2021-03-31 23:01:46 |
2021-03-31 23:01:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 23:01:46 | ------------------------------------ 2021-03-31 23:01:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a8c5cbe7-52df-44a1-946b-e9bbc7e36698" } 2021-03-31 23:01:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-31 23:01:47 | [Mutex] waiting for: [received:nodes:b11ccdf4-9ec7-4483-9643-1351c1e7927b:localhost] 2021-03-31 23:01:47 | [Mutex] received everything. 2021-03-31 23:01:47 | [Mutex] isItemNotified: received:node:b11ccdf4-9ec7-4483-9643-1351c1e7927b:localhost:node-a8c5cbe7-52df-44a1-946b-e9bbc7e36698:Node a8c5cbe7-52df-44a1-946b-e9bbc7e36698 :: false 2021-03-31 23:01:47 | [Mutex] waiting for: [received:nodes:0d69e7e7-0d67-4f66-aa35-f3107a08b407:localhost] 2021-03-31 23:01:47 | [Mutex] received everything. 2021-03-31 23:01:47 | [Mutex] isItemNotified: received:node:0d69e7e7-0d67-4f66-aa35-f3107a08b407:localhost:node-a8c5cbe7-52df-44a1-946b-e9bbc7e36698:Node a8c5cbe7-52df-44a1-946b-e9bbc7e36698 :: false |
publishItemsToNodes | 0.046s |
2021-03-31 23:01:45 |
2021-03-31 23:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 23:01:45 | ------------------------------------ 2021-03-31 23:01:45 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-a8c5cbe7-52df-44a1-946b-e9bbc7e36698", "entry": "<test>item-d3bbbff6-78ea-4a09-9072-0dce5b7374fd</test>", "item-id": "item-d3bbbff6-78ea-4a09-9072-0dce5b7374fd" } 2021-03-31 23:01:45 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d3bbbff6-78ea-4a09-9072-0dce5b7374fd" } 2021-03-31 23:01:45 | [Mutex] received everything. 2021-03-31 23:01:45 | [Mutex] isItemNotified: published:item:notifieditem-d3bbbff6-78ea-4a09-9072-0dce5b7374fd:admin@test-domain.com :: true |
retractItemsFromNodes | 0.089s |
2021-03-31 23:01:45 |
2021-03-31 23:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 23:01:45 | ------------------------------------ 2021-03-31 23:01:45 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-a8c5cbe7-52df-44a1-946b-e9bbc7e36698", "item-id": "item-d3bbbff6-78ea-4a09-9072-0dce5b7374fd" } 2021-03-31 23:01:45 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d3bbbff6-78ea-4a09-9072-0dce5b7374fd" } 2021-03-31 23:01:45 | [Mutex] waiting for: [retracted:item:notifieditem-d3bbbff6-78ea-4a09-9072-0dce5b7374fd:admin@test-domain.com] 2021-03-31 23:01:45 | [Mutex] received everything. 2021-03-31 23:01:45 | [Mutex] isItemNotified: retracted:item:notifieditem-d3bbbff6-78ea-4a09-9072-0dce5b7374fd:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.067s |
2021-03-31 23:01:45 |
2021-03-31 23:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 23:01:45 | ------------------------------------ 2021-03-31 23:01:45 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-a8c5cbe7-52df-44a1-946b-e9bbc7e36698", "item-id": "item-d3bbbff6-78ea-4a09-9072-0dce5b7374fd" } 2021-03-31 23:01:45 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-a8c5cbe7-52df-44a1-946b-e9bbc7e36698", "item-id": "item-d3bbbff6-78ea-4a09-9072-0dce5b7374fd", "item": [ "<item id=\"item-d3bbbff6-78ea-4a09-9072-0dce5b7374fd\"><test>item-d3bbbff6-78ea-4a09-9072-0dce5b7374fd</test></item>" ] } 2021-03-31 23:01:45 | [Mutex] notify: [retrieved:item:item-d3bbbff6-78ea-4a09-9072-0dce5b7374fd:payload-matches:true:localhost] 2021-03-31 23:01:45 | [Mutex] received everything. 2021-03-31 23:01:45 | [Mutex] isItemNotified: retrieved:item:item-d3bbbff6-78ea-4a09-9072-0dce5b7374fd:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.052s |
2021-03-31 23:01:45 |
2021-03-31 23:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 23:01:45 | ------------------------------------ 2021-03-31 23:01:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-03-31 23:01:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-a8c5cbe7-52df-44a1-946b-e9bbc7e36698", "node-2e37f46c-8b3f-4599-b635-a3c4165f33e5" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-03-31 23:01:45 |
2021-03-31 23:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 23:01:45 | ------------------------------------ 2021-03-31 23:01:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-a8c5cbe7-52df-44a1-946b-e9bbc7e36698)" } 2021-03-31 23:01:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2021-03-31 23:01:44 |
2021-03-31 23:01:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 23:01:44 | ------------------------------------ 2021-03-31 23:01:44 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-a8c5cbe7-52df-44a1-946b-e9bbc7e36698", "jids": [ "admin@test-domain.com" ] } 2021-03-31 23:01:44 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2021-03-31 23:01:45 |
2021-03-31 23:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 23:01:45 | ------------------------------------ 2021-03-31 23:01:45 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-a8c5cbe7-52df-44a1-946b-e9bbc7e36698", "jids": [ "admin@test-domain.com" ] } 2021-03-31 23:01:45 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |