Test duration : 9.215s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.105s |
2020-10-05 23:09:32 |
2020-10-05 23:09:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-05 23:09:32 | ------------------------------------ 2020-10-05 23:09:32 | [Mutex] waiting for: [configured:node:node-a8736012-05f0-4280-b22c-9261c906cf5c:node-bef84de8-1f18-47dd-85c6-98dcd0f04974] 2020-10-05 23:09:32 | [Mutex] received everything. 2020-10-05 23:09:32 | [Mutex] isItemNotified: configured:node:node-a8736012-05f0-4280-b22c-9261c906cf5c:node-bef84de8-1f18-47dd-85c6-98dcd0f04974 :: true 2020-10-05 23:09:33 | [Mutex] waiting for: [received:nodes:9b2e85ec-873e-4840-b034-2a2adae54714:localhost] 2020-10-05 23:09:33 | [Mutex] waiting for: [received:nodes:9b2e85ec-873e-4840-b034-2a2adae54714:localhost] 2020-10-05 23:09:33 | [Mutex] received everything. 2020-10-05 23:09:33 | [Mutex] isItemNotified: received:node:9b2e85ec-873e-4840-b034-2a2adae54714:localhost:node-a8736012-05f0-4280-b22c-9261c906cf5c:Node a8736012-05f0-4280-b22c-9261c906cf5c :: true 2020-10-05 23:09:33 | [Mutex] waiting for: [received:nodes:19ffccfb-daa7-4668-b952-fe779d75982f:localhost] 2020-10-05 23:09:33 | [Mutex] received everything. 2020-10-05 23:09:33 | [Mutex] isItemNotified: received:node:19ffccfb-daa7-4668-b952-fe779d75982f:localhost:node-a8736012-05f0-4280-b22c-9261c906cf5c:Node a8736012-05f0-4280-b22c-9261c906cf5c :: false |
createNodes | 1.694s |
2020-10-05 23:09:29 |
2020-10-05 23:09:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-05 23:09:29 | ------------------------------------ 2020-10-05 23:09:30 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-a8736012-05f0-4280-b22c-9261c906cf5c", "pubsub#title": "Node a8736012-05f0-4280-b22c-9261c906cf5c" } 2020-10-05 23:09:30 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-05 23:09:31 | [Mutex] waiting for: [received:nodes:472b4494-5391-42ea-a53b-74d73c5968fb:localhost] 2020-10-05 23:09:31 | [Mutex] received everything. 2020-10-05 23:09:31 | [Mutex] isItemNotified: received:node:472b4494-5391-42ea-a53b-74d73c5968fb:localhost:node-a8736012-05f0-4280-b22c-9261c906cf5c:Node a8736012-05f0-4280-b22c-9261c906cf5c :: true |
createSubnodes | 1.029s |
2020-10-05 23:09:31 |
2020-10-05 23:09:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-05 23:09:31 | ------------------------------------ 2020-10-05 23:09:31 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-bef84de8-1f18-47dd-85c6-98dcd0f04974", "pubsub#title": "Node bef84de8-1f18-47dd-85c6-98dcd0f04974" } 2020-10-05 23:09:31 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-05 23:09:32 | [Mutex] waiting for: [received:nodes:2a6c1075-af9f-4756-b47c-72e75ff73aa9:localhost] 2020-10-05 23:09:32 | [Mutex] waiting for: [received:nodes:2a6c1075-af9f-4756-b47c-72e75ff73aa9:localhost] 2020-10-05 23:09:32 | [Mutex] received everything. 2020-10-05 23:09:32 | [Mutex] isItemNotified: received:node:2a6c1075-af9f-4756-b47c-72e75ff73aa9:localhost:node-bef84de8-1f18-47dd-85c6-98dcd0f04974:Node bef84de8-1f18-47dd-85c6-98dcd0f04974 :: true |
deleteNodes | 1.030s |
2020-10-05 23:09:36 |
2020-10-05 23:09:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-05 23:09:36 | ------------------------------------ 2020-10-05 23:09:36 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-bef84de8-1f18-47dd-85c6-98dcd0f04974" } 2020-10-05 23:09:36 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-05 23:09:37 | [Mutex] waiting for: [received:nodes:f842f52b-25bc-4da0-a796-275556ea8216:localhost] 2020-10-05 23:09:37 | [Mutex] received everything. 2020-10-05 23:09:37 | [Mutex] isItemNotified: received:node:f842f52b-25bc-4da0-a796-275556ea8216:localhost:node-bef84de8-1f18-47dd-85c6-98dcd0f04974:Node bef84de8-1f18-47dd-85c6-98dcd0f04974 :: false |
deleteSubnodes | 1.035s |
2020-10-05 23:09:35 |
2020-10-05 23:09:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-05 23:09:35 | ------------------------------------ 2020-10-05 23:09:35 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a8736012-05f0-4280-b22c-9261c906cf5c" } 2020-10-05 23:09:35 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-05 23:09:36 | [Mutex] waiting for: [received:nodes:057a1c69-695b-42c0-b34d-6d9a8606f789:localhost] 2020-10-05 23:09:36 | [Mutex] received everything. 2020-10-05 23:09:36 | [Mutex] isItemNotified: received:node:057a1c69-695b-42c0-b34d-6d9a8606f789:localhost:node-a8736012-05f0-4280-b22c-9261c906cf5c:Node a8736012-05f0-4280-b22c-9261c906cf5c :: false 2020-10-05 23:09:36 | [Mutex] waiting for: [received:nodes:dba4fb60-b4bc-41d2-a367-968da0d2ffd7:localhost] 2020-10-05 23:09:36 | [Mutex] received everything. 2020-10-05 23:09:36 | [Mutex] isItemNotified: received:node:dba4fb60-b4bc-41d2-a367-968da0d2ffd7:localhost:node-a8736012-05f0-4280-b22c-9261c906cf5c:Node a8736012-05f0-4280-b22c-9261c906cf5c :: false |
publishItemsToNodes | 0.048s |
2020-10-05 23:09:34 |
2020-10-05 23:09:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-05 23:09:34 | ------------------------------------ 2020-10-05 23:09:34 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-a8736012-05f0-4280-b22c-9261c906cf5c", "entry": "<test>item-a63fc3f2-57b2-4e38-b516-d3d4870971c9</test>", "item-id": "item-a63fc3f2-57b2-4e38-b516-d3d4870971c9" } 2020-10-05 23:09:34 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a63fc3f2-57b2-4e38-b516-d3d4870971c9" } 2020-10-05 23:09:34 | [Mutex] waiting for: [published:item:notifieditem-a63fc3f2-57b2-4e38-b516-d3d4870971c9:admin@test-domain.com] 2020-10-05 23:09:34 | [Mutex] received everything. 2020-10-05 23:09:34 | [Mutex] isItemNotified: published:item:notifieditem-a63fc3f2-57b2-4e38-b516-d3d4870971c9:admin@test-domain.com :: true |
retractItemsFromNodes | 0.075s |
2020-10-05 23:09:34 |
2020-10-05 23:09:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-05 23:09:34 | ------------------------------------ 2020-10-05 23:09:34 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-a8736012-05f0-4280-b22c-9261c906cf5c", "item-id": "item-a63fc3f2-57b2-4e38-b516-d3d4870971c9" } 2020-10-05 23:09:34 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a63fc3f2-57b2-4e38-b516-d3d4870971c9" } 2020-10-05 23:09:34 | [Mutex] received everything. 2020-10-05 23:09:34 | [Mutex] isItemNotified: retracted:item:notifieditem-a63fc3f2-57b2-4e38-b516-d3d4870971c9:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.056s |
2020-10-05 23:09:34 |
2020-10-05 23:09:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-05 23:09:34 | ------------------------------------ 2020-10-05 23:09:34 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-a8736012-05f0-4280-b22c-9261c906cf5c", "item-id": "item-a63fc3f2-57b2-4e38-b516-d3d4870971c9" } 2020-10-05 23:09:34 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-a8736012-05f0-4280-b22c-9261c906cf5c", "item-id": "item-a63fc3f2-57b2-4e38-b516-d3d4870971c9", "item": [ "<item id=\"item-a63fc3f2-57b2-4e38-b516-d3d4870971c9\"><test>item-a63fc3f2-57b2-4e38-b516-d3d4870971c9</test></item>" ] } 2020-10-05 23:09:34 | [Mutex] notify: [retrieved:item:item-a63fc3f2-57b2-4e38-b516-d3d4870971c9:payload-matches:true:localhost] 2020-10-05 23:09:34 | [Mutex] received everything. 2020-10-05 23:09:34 | [Mutex] isItemNotified: retrieved:item:item-a63fc3f2-57b2-4e38-b516-d3d4870971c9:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-10-05 23:09:34 |
2020-10-05 23:09:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-05 23:09:34 | ------------------------------------ 2020-10-05 23:09:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-05 23:09:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-bef84de8-1f18-47dd-85c6-98dcd0f04974", "test", "node-a8736012-05f0-4280-b22c-9261c906cf5c" ] } |
retrieveUserSubscriptionsWithRegex | 0.055s |
2020-10-05 23:09:34 |
2020-10-05 23:09:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-05 23:09:34 | ------------------------------------ 2020-10-05 23:09:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-a8736012-05f0-4280-b22c-9261c906cf5c)" } 2020-10-05 23:09:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-10-05 23:09:33 |
2020-10-05 23:09:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-05 23:09:33 | ------------------------------------ 2020-10-05 23:09:33 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-a8736012-05f0-4280-b22c-9261c906cf5c", "jids": [ "admin@test-domain.com" ] } 2020-10-05 23:09:33 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.083s |
2020-10-05 23:09:34 |
2020-10-05 23:09:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-05 23:09:34 | ------------------------------------ 2020-10-05 23:09:34 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-a8736012-05f0-4280-b22c-9261c906cf5c", "jids": [ "admin@test-domain.com" ] } 2020-10-05 23:09:34 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |