Test duration : 8.836s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.095s |
2021-05-27 23:11:41 |
2021-05-27 23:11:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:11:41 | ------------------------------------ 2021-05-27 23:11:41 | [Mutex] waiting for: [configured:node:node-70b333f7-4545-47f7-a9f1-ec562c00dfbd:node-6d8e30bf-9d84-4e1d-9691-12d7ea91b66f] 2021-05-27 23:11:41 | [Mutex] received everything. 2021-05-27 23:11:41 | [Mutex] isItemNotified: configured:node:node-70b333f7-4545-47f7-a9f1-ec562c00dfbd:node-6d8e30bf-9d84-4e1d-9691-12d7ea91b66f :: true 2021-05-27 23:11:42 | [Mutex] waiting for: [received:nodes:b4434beb-1b6c-4870-9bb5-abfe44a93920:localhost] 2021-05-27 23:11:42 | [Mutex] received everything. 2021-05-27 23:11:42 | [Mutex] isItemNotified: received:node:b4434beb-1b6c-4870-9bb5-abfe44a93920:localhost:node-70b333f7-4545-47f7-a9f1-ec562c00dfbd:Node 70b333f7-4545-47f7-a9f1-ec562c00dfbd :: true 2021-05-27 23:11:42 | [Mutex] waiting for: [received:nodes:f41663dc-3955-4851-959f-71a428518a25:localhost] 2021-05-27 23:11:42 | [Mutex] received everything. 2021-05-27 23:11:42 | [Mutex] isItemNotified: received:node:f41663dc-3955-4851-959f-71a428518a25:localhost:node-70b333f7-4545-47f7-a9f1-ec562c00dfbd:Node 70b333f7-4545-47f7-a9f1-ec562c00dfbd :: false |
createNodes | 1.632s |
2021-05-27 23:11:38 |
2021-05-27 23:11:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:11:38 | ------------------------------------ 2021-05-27 23:11:39 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-70b333f7-4545-47f7-a9f1-ec562c00dfbd", "pubsub#title": "Node 70b333f7-4545-47f7-a9f1-ec562c00dfbd" } 2021-05-27 23:11:39 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-27 23:11:40 | [Mutex] waiting for: [received:nodes:b8a9c63e-de03-49b7-a6d2-56a1ac412031:localhost] 2021-05-27 23:11:40 | [Mutex] received everything. 2021-05-27 23:11:40 | [Mutex] isItemNotified: received:node:b8a9c63e-de03-49b7-a6d2-56a1ac412031:localhost:node-70b333f7-4545-47f7-a9f1-ec562c00dfbd:Node 70b333f7-4545-47f7-a9f1-ec562c00dfbd :: true |
createSubnodes | 1.023s |
2021-05-27 23:11:40 |
2021-05-27 23:11:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:11:40 | ------------------------------------ 2021-05-27 23:11:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-6d8e30bf-9d84-4e1d-9691-12d7ea91b66f", "pubsub#title": "Node 6d8e30bf-9d84-4e1d-9691-12d7ea91b66f" } 2021-05-27 23:11:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-27 23:11:41 | [Mutex] waiting for: [received:nodes:aa026516-98d1-495a-95d6-694f4eb2acde:localhost] 2021-05-27 23:11:41 | [Mutex] waiting for: [received:nodes:aa026516-98d1-495a-95d6-694f4eb2acde:localhost] 2021-05-27 23:11:41 | [Mutex] received everything. 2021-05-27 23:11:41 | [Mutex] isItemNotified: received:node:aa026516-98d1-495a-95d6-694f4eb2acde:localhost:node-6d8e30bf-9d84-4e1d-9691-12d7ea91b66f:Node 6d8e30bf-9d84-4e1d-9691-12d7ea91b66f :: true |
deleteNodes | 1.020s |
2021-05-27 23:11:45 |
2021-05-27 23:11:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:11:45 | ------------------------------------ 2021-05-27 23:11:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6d8e30bf-9d84-4e1d-9691-12d7ea91b66f" } 2021-05-27 23:11:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-27 23:11:46 | [Mutex] waiting for: [received:nodes:c1c00757-dd1b-402b-ac14-dce2cc52271d:localhost] 2021-05-27 23:11:46 | [Mutex] received everything. 2021-05-27 23:11:46 | [Mutex] isItemNotified: received:node:c1c00757-dd1b-402b-ac14-dce2cc52271d:localhost:node-6d8e30bf-9d84-4e1d-9691-12d7ea91b66f:Node 6d8e30bf-9d84-4e1d-9691-12d7ea91b66f :: false |
deleteSubnodes | 1.024s |
2021-05-27 23:11:44 |
2021-05-27 23:11:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:11:44 | ------------------------------------ 2021-05-27 23:11:44 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-70b333f7-4545-47f7-a9f1-ec562c00dfbd" } 2021-05-27 23:11:44 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-27 23:11:45 | [Mutex] waiting for: [received:nodes:032d5576-8cac-4885-9524-fc217089ec49:localhost] 2021-05-27 23:11:45 | [Mutex] waiting for: [received:nodes:032d5576-8cac-4885-9524-fc217089ec49:localhost] 2021-05-27 23:11:45 | [Mutex] received everything. 2021-05-27 23:11:45 | [Mutex] isItemNotified: received:node:032d5576-8cac-4885-9524-fc217089ec49:localhost:node-70b333f7-4545-47f7-a9f1-ec562c00dfbd:Node 70b333f7-4545-47f7-a9f1-ec562c00dfbd :: false 2021-05-27 23:11:45 | [Mutex] waiting for: [received:nodes:4b78626a-d981-4e40-8f95-15480f816c15:localhost] 2021-05-27 23:11:45 | [Mutex] received everything. 2021-05-27 23:11:45 | [Mutex] isItemNotified: received:node:4b78626a-d981-4e40-8f95-15480f816c15:localhost:node-70b333f7-4545-47f7-a9f1-ec562c00dfbd:Node 70b333f7-4545-47f7-a9f1-ec562c00dfbd :: false |
publishItemsToNodes | 0.102s |
2021-05-27 23:11:43 |
2021-05-27 23:11:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:11:43 | ------------------------------------ 2021-05-27 23:11:43 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-70b333f7-4545-47f7-a9f1-ec562c00dfbd", "entry": "<test>item-e5cd2c2e-db21-494c-9fd4-2076c2e8f6f0</test>", "item-id": "item-e5cd2c2e-db21-494c-9fd4-2076c2e8f6f0" } 2021-05-27 23:11:43 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e5cd2c2e-db21-494c-9fd4-2076c2e8f6f0" } 2021-05-27 23:11:43 | [Mutex] waiting for: [published:item:notifieditem-e5cd2c2e-db21-494c-9fd4-2076c2e8f6f0:admin@test-domain.com] 2021-05-27 23:11:43 | [Mutex] received everything. 2021-05-27 23:11:43 | [Mutex] isItemNotified: published:item:notifieditem-e5cd2c2e-db21-494c-9fd4-2076c2e8f6f0:admin@test-domain.com :: true |
retractItemsFromNodes | 0.085s |
2021-05-27 23:11:43 |
2021-05-27 23:11:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:11:43 | ------------------------------------ 2021-05-27 23:11:43 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-70b333f7-4545-47f7-a9f1-ec562c00dfbd", "item-id": "item-e5cd2c2e-db21-494c-9fd4-2076c2e8f6f0" } 2021-05-27 23:11:43 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e5cd2c2e-db21-494c-9fd4-2076c2e8f6f0" } 2021-05-27 23:11:43 | [Mutex] waiting for: [retracted:item:notifieditem-e5cd2c2e-db21-494c-9fd4-2076c2e8f6f0:admin@test-domain.com] 2021-05-27 23:11:43 | [Mutex] received everything. 2021-05-27 23:11:43 | [Mutex] isItemNotified: retracted:item:notifieditem-e5cd2c2e-db21-494c-9fd4-2076c2e8f6f0:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.035s |
2021-05-27 23:11:43 |
2021-05-27 23:11:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:11:43 | ------------------------------------ 2021-05-27 23:11:43 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-70b333f7-4545-47f7-a9f1-ec562c00dfbd", "item-id": "item-e5cd2c2e-db21-494c-9fd4-2076c2e8f6f0" } 2021-05-27 23:11:43 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-70b333f7-4545-47f7-a9f1-ec562c00dfbd", "item-id": "item-e5cd2c2e-db21-494c-9fd4-2076c2e8f6f0", "item": [ "<item id=\"item-e5cd2c2e-db21-494c-9fd4-2076c2e8f6f0\"><test>item-e5cd2c2e-db21-494c-9fd4-2076c2e8f6f0</test></item>" ] } 2021-05-27 23:11:43 | [Mutex] notify: [retrieved:item:item-e5cd2c2e-db21-494c-9fd4-2076c2e8f6f0:payload-matches:true:localhost] 2021-05-27 23:11:43 | [Mutex] received everything. 2021-05-27 23:11:43 | [Mutex] isItemNotified: retrieved:item:item-e5cd2c2e-db21-494c-9fd4-2076c2e8f6f0:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.057s |
2021-05-27 23:11:43 |
2021-05-27 23:11:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:11:43 | ------------------------------------ 2021-05-27 23:11:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-05-27 23:11:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-70b333f7-4545-47f7-a9f1-ec562c00dfbd", "node-6d8e30bf-9d84-4e1d-9691-12d7ea91b66f" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-05-27 23:11:43 |
2021-05-27 23:11:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:11:43 | ------------------------------------ 2021-05-27 23:11:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-70b333f7-4545-47f7-a9f1-ec562c00dfbd)" } 2021-05-27 23:11:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2021-05-27 23:11:42 |
2021-05-27 23:11:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:11:42 | ------------------------------------ 2021-05-27 23:11:42 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-70b333f7-4545-47f7-a9f1-ec562c00dfbd", "jids": [ "admin@test-domain.com" ] } 2021-05-27 23:11:42 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.053s |
2021-05-27 23:11:43 |
2021-05-27 23:11:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:11:43 | ------------------------------------ 2021-05-27 23:11:43 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-70b333f7-4545-47f7-a9f1-ec562c00dfbd", "jids": [ "admin@test-domain.com" ] } 2021-05-27 23:11:43 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |