Test duration : 9.111s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.106s |
2021-09-21 23:52:36 |
2021-09-21 23:52:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-21 23:52:36 | ------------------------------------ 2021-09-21 23:52:36 | [Mutex] waiting for: [configured:node:node-1cb8eda5-d0e7-4fee-aebe-c52ac4414952:node-69e6cc1c-bf83-4b77-bc43-50ad4803e622] 2021-09-21 23:52:36 | [Mutex] received everything. 2021-09-21 23:52:36 | [Mutex] isItemNotified: configured:node:node-1cb8eda5-d0e7-4fee-aebe-c52ac4414952:node-69e6cc1c-bf83-4b77-bc43-50ad4803e622 :: true 2021-09-21 23:52:37 | [Mutex] waiting for: [received:nodes:f6ad7a27-5ba0-4109-a065-5c614f130842:localhost] 2021-09-21 23:52:37 | [Mutex] received everything. 2021-09-21 23:52:37 | [Mutex] isItemNotified: received:node:f6ad7a27-5ba0-4109-a065-5c614f130842:localhost:node-1cb8eda5-d0e7-4fee-aebe-c52ac4414952:Node 1cb8eda5-d0e7-4fee-aebe-c52ac4414952 :: true 2021-09-21 23:52:37 | [Mutex] waiting for: [received:nodes:b246f344-2f25-411b-9bc8-2c4a88b109bd:localhost] 2021-09-21 23:52:37 | [Mutex] received everything. 2021-09-21 23:52:37 | [Mutex] isItemNotified: received:node:b246f344-2f25-411b-9bc8-2c4a88b109bd:localhost:node-1cb8eda5-d0e7-4fee-aebe-c52ac4414952:Node 1cb8eda5-d0e7-4fee-aebe-c52ac4414952 :: false |
createNodes | 1.662s |
2021-09-21 23:52:33 |
2021-09-21 23:52:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-21 23:52:33 | ------------------------------------ 2021-09-21 23:52:33 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-1cb8eda5-d0e7-4fee-aebe-c52ac4414952", "pubsub#title": "Node 1cb8eda5-d0e7-4fee-aebe-c52ac4414952" } 2021-09-21 23:52:34 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-21 23:52:35 | [Mutex] waiting for: [received:nodes:439e1e1d-1bc2-4fd8-8725-343729e00ced:localhost] 2021-09-21 23:52:35 | [Mutex] waiting for: [received:nodes:439e1e1d-1bc2-4fd8-8725-343729e00ced:localhost] 2021-09-21 23:52:35 | [Mutex] received everything. 2021-09-21 23:52:35 | [Mutex] isItemNotified: received:node:439e1e1d-1bc2-4fd8-8725-343729e00ced:localhost:node-1cb8eda5-d0e7-4fee-aebe-c52ac4414952:Node 1cb8eda5-d0e7-4fee-aebe-c52ac4414952 :: true |
createSubnodes | 1.023s |
2021-09-21 23:52:35 |
2021-09-21 23:52:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-21 23:52:35 | ------------------------------------ 2021-09-21 23:52:35 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-69e6cc1c-bf83-4b77-bc43-50ad4803e622", "pubsub#title": "Node 69e6cc1c-bf83-4b77-bc43-50ad4803e622" } 2021-09-21 23:52:35 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-21 23:52:36 | [Mutex] waiting for: [received:nodes:3ae2c72b-d3f3-447a-8423-55ab25bfc32f:localhost] 2021-09-21 23:52:36 | [Mutex] received everything. 2021-09-21 23:52:36 | [Mutex] isItemNotified: received:node:3ae2c72b-d3f3-447a-8423-55ab25bfc32f:localhost:node-69e6cc1c-bf83-4b77-bc43-50ad4803e622:Node 69e6cc1c-bf83-4b77-bc43-50ad4803e622 :: true |
deleteNodes | 1.025s |
2021-09-21 23:52:40 |
2021-09-21 23:52:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-21 23:52:40 | ------------------------------------ 2021-09-21 23:52:40 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-69e6cc1c-bf83-4b77-bc43-50ad4803e622" } 2021-09-21 23:52:40 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-21 23:52:41 | [Mutex] waiting for: [received:nodes:79127e76-a037-43ff-b585-b5f3bcd28231:localhost] 2021-09-21 23:52:41 | [Mutex] received everything. 2021-09-21 23:52:41 | [Mutex] isItemNotified: received:node:79127e76-a037-43ff-b585-b5f3bcd28231:localhost:node-69e6cc1c-bf83-4b77-bc43-50ad4803e622:Node 69e6cc1c-bf83-4b77-bc43-50ad4803e622 :: false |
deleteSubnodes | 1.038s |
2021-09-21 23:52:39 |
2021-09-21 23:52:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-21 23:52:39 | ------------------------------------ 2021-09-21 23:52:39 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1cb8eda5-d0e7-4fee-aebe-c52ac4414952" } 2021-09-21 23:52:39 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-21 23:52:40 | [Mutex] waiting for: [received:nodes:6fbcab67-58ea-4962-9d76-bb4eb3f9ba53:localhost] 2021-09-21 23:52:40 | [Mutex] received everything. 2021-09-21 23:52:40 | [Mutex] isItemNotified: received:node:6fbcab67-58ea-4962-9d76-bb4eb3f9ba53:localhost:node-1cb8eda5-d0e7-4fee-aebe-c52ac4414952:Node 1cb8eda5-d0e7-4fee-aebe-c52ac4414952 :: false 2021-09-21 23:52:40 | [Mutex] waiting for: [received:nodes:8018ee20-47fc-4bc4-8220-054b9b1d56a0:localhost] 2021-09-21 23:52:40 | [Mutex] received everything. 2021-09-21 23:52:40 | [Mutex] isItemNotified: received:node:8018ee20-47fc-4bc4-8220-054b9b1d56a0:localhost:node-1cb8eda5-d0e7-4fee-aebe-c52ac4414952:Node 1cb8eda5-d0e7-4fee-aebe-c52ac4414952 :: false |
publishItemsToNodes | 0.051s |
2021-09-21 23:52:38 |
2021-09-21 23:52:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-21 23:52:38 | ------------------------------------ 2021-09-21 23:52:38 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-1cb8eda5-d0e7-4fee-aebe-c52ac4414952", "entry": "<test>item-e47c1310-fd42-4d9e-9443-2496f1873431</test>", "item-id": "item-e47c1310-fd42-4d9e-9443-2496f1873431" } 2021-09-21 23:52:38 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e47c1310-fd42-4d9e-9443-2496f1873431" } 2021-09-21 23:52:38 | [Mutex] waiting for: [published:item:notifieditem-e47c1310-fd42-4d9e-9443-2496f1873431:admin@test-domain.com] 2021-09-21 23:52:38 | [Mutex] received everything. 2021-09-21 23:52:38 | [Mutex] isItemNotified: published:item:notifieditem-e47c1310-fd42-4d9e-9443-2496f1873431:admin@test-domain.com :: true |
retractItemsFromNodes | 0.132s |
2021-09-21 23:52:38 |
2021-09-21 23:52:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-21 23:52:38 | ------------------------------------ 2021-09-21 23:52:38 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-1cb8eda5-d0e7-4fee-aebe-c52ac4414952", "item-id": "item-e47c1310-fd42-4d9e-9443-2496f1873431" } 2021-09-21 23:52:38 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e47c1310-fd42-4d9e-9443-2496f1873431" } 2021-09-21 23:52:38 | [Mutex] waiting for: [retracted:item:notifieditem-e47c1310-fd42-4d9e-9443-2496f1873431:admin@test-domain.com] 2021-09-21 23:52:38 | [Mutex] received everything. 2021-09-21 23:52:38 | [Mutex] isItemNotified: retracted:item:notifieditem-e47c1310-fd42-4d9e-9443-2496f1873431:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.087s |
2021-09-21 23:52:38 |
2021-09-21 23:52:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-21 23:52:38 | ------------------------------------ 2021-09-21 23:52:38 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-1cb8eda5-d0e7-4fee-aebe-c52ac4414952", "item-id": "item-e47c1310-fd42-4d9e-9443-2496f1873431" } 2021-09-21 23:52:38 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-1cb8eda5-d0e7-4fee-aebe-c52ac4414952", "item-id": "item-e47c1310-fd42-4d9e-9443-2496f1873431", "item": [ "<item id=\"item-e47c1310-fd42-4d9e-9443-2496f1873431\"><test>item-e47c1310-fd42-4d9e-9443-2496f1873431</test></item>" ] } 2021-09-21 23:52:38 | [Mutex] notify: [retrieved:item:item-e47c1310-fd42-4d9e-9443-2496f1873431:payload-matches:true:localhost] 2021-09-21 23:52:38 | [Mutex] received everything. 2021-09-21 23:52:38 | [Mutex] isItemNotified: retrieved:item:item-e47c1310-fd42-4d9e-9443-2496f1873431:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-09-21 23:52:38 |
2021-09-21 23:52:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-21 23:52:38 | ------------------------------------ 2021-09-21 23:52:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-09-21 23:52:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-1cb8eda5-d0e7-4fee-aebe-c52ac4414952", "test", "node-69e6cc1c-bf83-4b77-bc43-50ad4803e622" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-09-21 23:52:38 |
2021-09-21 23:52:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-21 23:52:38 | ------------------------------------ 2021-09-21 23:52:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-1cb8eda5-d0e7-4fee-aebe-c52ac4414952)" } 2021-09-21 23:52:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2021-09-21 23:52:37 |
2021-09-21 23:52:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-21 23:52:37 | ------------------------------------ 2021-09-21 23:52:37 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-1cb8eda5-d0e7-4fee-aebe-c52ac4414952", "jids": [ "admin@test-domain.com" ] } 2021-09-21 23:52:37 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.022s |
2021-09-21 23:52:38 |
2021-09-21 23:52:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-21 23:52:38 | ------------------------------------ 2021-09-21 23:52:38 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-1cb8eda5-d0e7-4fee-aebe-c52ac4414952", "jids": [ "admin@test-domain.com" ] } 2021-09-21 23:52:38 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |