Test duration : 8.938s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.157s |
2020-09-21 22:47:42 |
2020-09-21 22:47:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:47:42 | ------------------------------------ 2020-09-21 22:47:42 | [Mutex] waiting for: [configured:node:node-2e97dc35-3ea3-4bf5-849d-c2df734b6c46:node-943dab4c-2014-4eba-b81f-fd0f4c468db1] 2020-09-21 22:47:42 | [Mutex] received everything. 2020-09-21 22:47:42 | [Mutex] isItemNotified: configured:node:node-2e97dc35-3ea3-4bf5-849d-c2df734b6c46:node-943dab4c-2014-4eba-b81f-fd0f4c468db1 :: true 2020-09-21 22:47:43 | [Mutex] waiting for: [received:nodes:adad22c9-225e-45af-bdc4-b464cd1836cc:localhost] 2020-09-21 22:47:43 | [Mutex] received everything. 2020-09-21 22:47:43 | [Mutex] isItemNotified: received:node:adad22c9-225e-45af-bdc4-b464cd1836cc:localhost:node-2e97dc35-3ea3-4bf5-849d-c2df734b6c46:Node 2e97dc35-3ea3-4bf5-849d-c2df734b6c46 :: true 2020-09-21 22:47:43 | [Mutex] waiting for: [received:nodes:5d2d5c5d-1073-4b3b-b473-9c2c03c90a42:localhost] 2020-09-21 22:47:43 | [Mutex] received everything. 2020-09-21 22:47:43 | [Mutex] isItemNotified: received:node:5d2d5c5d-1073-4b3b-b473-9c2c03c90a42:localhost:node-2e97dc35-3ea3-4bf5-849d-c2df734b6c46:Node 2e97dc35-3ea3-4bf5-849d-c2df734b6c46 :: false |
createNodes | 1.682s |
2020-09-21 22:47:39 |
2020-09-21 22:47:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:47:39 | ------------------------------------ 2020-09-21 22:47:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-2e97dc35-3ea3-4bf5-849d-c2df734b6c46", "pubsub#title": "Node 2e97dc35-3ea3-4bf5-849d-c2df734b6c46" } 2020-09-21 22:47:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-21 22:47:41 | [Mutex] waiting for: [received:nodes:61e8ef9c-52b5-4ec1-8214-33dce5f9e617:localhost] 2020-09-21 22:47:41 | [Mutex] received everything. 2020-09-21 22:47:41 | [Mutex] isItemNotified: received:node:61e8ef9c-52b5-4ec1-8214-33dce5f9e617:localhost:node-2e97dc35-3ea3-4bf5-849d-c2df734b6c46:Node 2e97dc35-3ea3-4bf5-849d-c2df734b6c46 :: true |
createSubnodes | 1.026s |
2020-09-21 22:47:41 |
2020-09-21 22:47:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:47:41 | ------------------------------------ 2020-09-21 22:47:41 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-943dab4c-2014-4eba-b81f-fd0f4c468db1", "pubsub#title": "Node 943dab4c-2014-4eba-b81f-fd0f4c468db1" } 2020-09-21 22:47:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-21 22:47:42 | [Mutex] waiting for: [received:nodes:4daeb827-be1e-4079-bbd7-27d892fb4666:localhost] 2020-09-21 22:47:42 | [Mutex] received everything. 2020-09-21 22:47:42 | [Mutex] isItemNotified: received:node:4daeb827-be1e-4079-bbd7-27d892fb4666:localhost:node-943dab4c-2014-4eba-b81f-fd0f4c468db1:Node 943dab4c-2014-4eba-b81f-fd0f4c468db1 :: true |
deleteNodes | 1.023s |
2020-09-21 22:47:47 |
2020-09-21 22:47:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:47:47 | ------------------------------------ 2020-09-21 22:47:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-943dab4c-2014-4eba-b81f-fd0f4c468db1" } 2020-09-21 22:47:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-21 22:47:48 | [Mutex] waiting for: [received:nodes:aea1170c-80fd-40ac-a7b3-2678cdefba72:localhost] 2020-09-21 22:47:48 | [Mutex] received everything. 2020-09-21 22:47:48 | [Mutex] isItemNotified: received:node:aea1170c-80fd-40ac-a7b3-2678cdefba72:localhost:node-943dab4c-2014-4eba-b81f-fd0f4c468db1:Node 943dab4c-2014-4eba-b81f-fd0f4c468db1 :: false |
deleteSubnodes | 1.025s |
2020-09-21 22:47:45 |
2020-09-21 22:47:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:47:45 | ------------------------------------ 2020-09-21 22:47:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2e97dc35-3ea3-4bf5-849d-c2df734b6c46" } 2020-09-21 22:47:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-21 22:47:46 | [Mutex] waiting for: [received:nodes:b760fcfa-4b2d-4867-9a31-64fcab67d11e:localhost] 2020-09-21 22:47:46 | [Mutex] waiting for: [received:nodes:b760fcfa-4b2d-4867-9a31-64fcab67d11e:localhost] 2020-09-21 22:47:47 | [Mutex] received everything. 2020-09-21 22:47:47 | [Mutex] isItemNotified: received:node:b760fcfa-4b2d-4867-9a31-64fcab67d11e:localhost:node-2e97dc35-3ea3-4bf5-849d-c2df734b6c46:Node 2e97dc35-3ea3-4bf5-849d-c2df734b6c46 :: false 2020-09-21 22:47:47 | [Mutex] waiting for: [received:nodes:b398ef09-dee8-49dc-bd71-1698c57cb549:localhost] 2020-09-21 22:47:47 | [Mutex] received everything. 2020-09-21 22:47:47 | [Mutex] isItemNotified: received:node:b398ef09-dee8-49dc-bd71-1698c57cb549:localhost:node-2e97dc35-3ea3-4bf5-849d-c2df734b6c46:Node 2e97dc35-3ea3-4bf5-849d-c2df734b6c46 :: false |
publishItemsToNodes | 0.051s |
2020-09-21 22:47:44 |
2020-09-21 22:47:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:47:44 | ------------------------------------ 2020-09-21 22:47:44 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-2e97dc35-3ea3-4bf5-849d-c2df734b6c46", "entry": "<test>item-7f5def35-5852-4a55-b258-a7a764a55d23</test>", "item-id": "item-7f5def35-5852-4a55-b258-a7a764a55d23" } 2020-09-21 22:47:44 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7f5def35-5852-4a55-b258-a7a764a55d23" } 2020-09-21 22:47:44 | [Mutex] waiting for: [published:item:notifieditem-7f5def35-5852-4a55-b258-a7a764a55d23:admin@test-domain.com] 2020-09-21 22:47:44 | [Mutex] received everything. 2020-09-21 22:47:44 | [Mutex] isItemNotified: published:item:notifieditem-7f5def35-5852-4a55-b258-a7a764a55d23:admin@test-domain.com :: true |
retractItemsFromNodes | 0.068s |
2020-09-21 22:47:44 |
2020-09-21 22:47:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:47:44 | ------------------------------------ 2020-09-21 22:47:44 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-2e97dc35-3ea3-4bf5-849d-c2df734b6c46", "item-id": "item-7f5def35-5852-4a55-b258-a7a764a55d23" } 2020-09-21 22:47:44 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7f5def35-5852-4a55-b258-a7a764a55d23" } 2020-09-21 22:47:44 | [Mutex] received everything. 2020-09-21 22:47:44 | [Mutex] isItemNotified: retracted:item:notifieditem-7f5def35-5852-4a55-b258-a7a764a55d23:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.020s |
2020-09-21 22:47:44 |
2020-09-21 22:47:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:47:44 | ------------------------------------ 2020-09-21 22:47:44 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-2e97dc35-3ea3-4bf5-849d-c2df734b6c46", "item-id": "item-7f5def35-5852-4a55-b258-a7a764a55d23" } 2020-09-21 22:47:44 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-2e97dc35-3ea3-4bf5-849d-c2df734b6c46", "item-id": "item-7f5def35-5852-4a55-b258-a7a764a55d23", "item": [ "<item id=\"item-7f5def35-5852-4a55-b258-a7a764a55d23\"><test>item-7f5def35-5852-4a55-b258-a7a764a55d23</test></item>" ] } 2020-09-21 22:47:44 | [Mutex] notify: [retrieved:item:item-7f5def35-5852-4a55-b258-a7a764a55d23:payload-matches:true:localhost] 2020-09-21 22:47:44 | [Mutex] received everything. 2020-09-21 22:47:44 | [Mutex] isItemNotified: retrieved:item:item-7f5def35-5852-4a55-b258-a7a764a55d23:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2020-09-21 22:47:44 |
2020-09-21 22:47:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:47:44 | ------------------------------------ 2020-09-21 22:47:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-21 22:47:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-943dab4c-2014-4eba-b81f-fd0f4c468db1", "test", "node-2e97dc35-3ea3-4bf5-849d-c2df734b6c46" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-09-21 22:47:44 |
2020-09-21 22:47:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:47:44 | ------------------------------------ 2020-09-21 22:47:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-2e97dc35-3ea3-4bf5-849d-c2df734b6c46)" } 2020-09-21 22:47:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2020-09-21 22:47:43 |
2020-09-21 22:47:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:47:43 | ------------------------------------ 2020-09-21 22:47:43 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-2e97dc35-3ea3-4bf5-849d-c2df734b6c46", "jids": [ "admin@test-domain.com" ] } 2020-09-21 22:47:43 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.052s |
2020-09-21 22:47:44 |
2020-09-21 22:47:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:47:44 | ------------------------------------ 2020-09-21 22:47:44 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-2e97dc35-3ea3-4bf5-849d-c2df734b6c46", "jids": [ "admin@test-domain.com" ] } 2020-09-21 22:47:44 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |