Test duration : 9.092s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.155s |
2020-09-06 22:44:44 |
2020-09-06 22:44:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 22:44:44 | ------------------------------------ 2020-09-06 22:44:44 | [Mutex] waiting for: [configured:node:node-eb16fb44-a585-4ec7-8708-152774385aaa:node-2c737fa9-9c27-4165-8788-6125a2fb8045] 2020-09-06 22:44:44 | [Mutex] received everything. 2020-09-06 22:44:44 | [Mutex] isItemNotified: configured:node:node-eb16fb44-a585-4ec7-8708-152774385aaa:node-2c737fa9-9c27-4165-8788-6125a2fb8045 :: true 2020-09-06 22:44:45 | [Mutex] waiting for: [received:nodes:e1d2b1ff-ed25-40c8-9193-a969cfbff616:localhost] 2020-09-06 22:44:45 | [Mutex] received everything. 2020-09-06 22:44:45 | [Mutex] isItemNotified: received:node:e1d2b1ff-ed25-40c8-9193-a969cfbff616:localhost:node-eb16fb44-a585-4ec7-8708-152774385aaa:Node eb16fb44-a585-4ec7-8708-152774385aaa :: true 2020-09-06 22:44:45 | [Mutex] waiting for: [received:nodes:e556480d-87cc-40cd-a731-0749802e807b:localhost] 2020-09-06 22:44:45 | [Mutex] received everything. 2020-09-06 22:44:45 | [Mutex] isItemNotified: received:node:e556480d-87cc-40cd-a731-0749802e807b:localhost:node-eb16fb44-a585-4ec7-8708-152774385aaa:Node eb16fb44-a585-4ec7-8708-152774385aaa :: false |
createNodes | 1.689s |
2020-09-06 22:44:41 |
2020-09-06 22:44:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 22:44:41 | ------------------------------------ 2020-09-06 22:44: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-eb16fb44-a585-4ec7-8708-152774385aaa", "pubsub#title": "Node eb16fb44-a585-4ec7-8708-152774385aaa" } 2020-09-06 22:44:42 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-06 22:44:43 | [Mutex] waiting for: [received:nodes:6ded1624-b48f-45c0-bcb3-208755ff86ad:localhost] 2020-09-06 22:44:43 | [Mutex] received everything. 2020-09-06 22:44:43 | [Mutex] isItemNotified: received:node:6ded1624-b48f-45c0-bcb3-208755ff86ad:localhost:node-eb16fb44-a585-4ec7-8708-152774385aaa:Node eb16fb44-a585-4ec7-8708-152774385aaa :: true |
createSubnodes | 1.034s |
2020-09-06 22:44:43 |
2020-09-06 22:44:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 22:44:43 | ------------------------------------ 2020-09-06 22:44:43 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-2c737fa9-9c27-4165-8788-6125a2fb8045", "pubsub#title": "Node 2c737fa9-9c27-4165-8788-6125a2fb8045" } 2020-09-06 22:44:43 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-06 22:44:44 | [Mutex] waiting for: [received:nodes:a3fbf6dc-d841-4cc4-9142-4b92abd70ddb:localhost] 2020-09-06 22:44:44 | [Mutex] received everything. 2020-09-06 22:44:44 | [Mutex] isItemNotified: received:node:a3fbf6dc-d841-4cc4-9142-4b92abd70ddb:localhost:node-2c737fa9-9c27-4165-8788-6125a2fb8045:Node 2c737fa9-9c27-4165-8788-6125a2fb8045 :: true |
deleteNodes | 1.019s |
2020-09-06 22:44:48 |
2020-09-06 22:44:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 22:44:48 | ------------------------------------ 2020-09-06 22:44:48 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2c737fa9-9c27-4165-8788-6125a2fb8045" } 2020-09-06 22:44:48 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-06 22:44:49 | [Mutex] waiting for: [received:nodes:939e73ed-1c8b-440c-b8cc-959fc3de0f8a:localhost] 2020-09-06 22:44:49 | [Mutex] received everything. 2020-09-06 22:44:49 | [Mutex] isItemNotified: received:node:939e73ed-1c8b-440c-b8cc-959fc3de0f8a:localhost:node-2c737fa9-9c27-4165-8788-6125a2fb8045:Node 2c737fa9-9c27-4165-8788-6125a2fb8045 :: false |
deleteSubnodes | 1.029s |
2020-09-06 22:44:47 |
2020-09-06 22:44:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 22:44:47 | ------------------------------------ 2020-09-06 22:44:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-eb16fb44-a585-4ec7-8708-152774385aaa" } 2020-09-06 22:44:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-06 22:44:48 | [Mutex] waiting for: [received:nodes:ef564d32-ab82-46f1-a3f4-2fe98f46bf20:localhost] 2020-09-06 22:44:48 | [Mutex] received everything. 2020-09-06 22:44:48 | [Mutex] isItemNotified: received:node:ef564d32-ab82-46f1-a3f4-2fe98f46bf20:localhost:node-eb16fb44-a585-4ec7-8708-152774385aaa:Node eb16fb44-a585-4ec7-8708-152774385aaa :: false 2020-09-06 22:44:48 | [Mutex] waiting for: [received:nodes:d84dddc0-5b87-4527-a8c5-dfbdf3af8f27:localhost] 2020-09-06 22:44:48 | [Mutex] received everything. 2020-09-06 22:44:48 | [Mutex] isItemNotified: received:node:d84dddc0-5b87-4527-a8c5-dfbdf3af8f27:localhost:node-eb16fb44-a585-4ec7-8708-152774385aaa:Node eb16fb44-a585-4ec7-8708-152774385aaa :: false |
publishItemsToNodes | 0.055s |
2020-09-06 22:44:46 |
2020-09-06 22:44:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 22:44:46 | ------------------------------------ 2020-09-06 22:44:46 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-eb16fb44-a585-4ec7-8708-152774385aaa", "entry": "<test>item-18ca7f39-6235-4784-bcd3-6a39395ea700</test>", "item-id": "item-18ca7f39-6235-4784-bcd3-6a39395ea700" } 2020-09-06 22:44:46 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-18ca7f39-6235-4784-bcd3-6a39395ea700" } 2020-09-06 22:44:46 | [Mutex] waiting for: [published:item:notifieditem-18ca7f39-6235-4784-bcd3-6a39395ea700:admin@test-domain.com] 2020-09-06 22:44:46 | [Mutex] received everything. 2020-09-06 22:44:46 | [Mutex] isItemNotified: published:item:notifieditem-18ca7f39-6235-4784-bcd3-6a39395ea700:admin@test-domain.com :: true |
retractItemsFromNodes | 0.067s |
2020-09-06 22:44:46 |
2020-09-06 22:44:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 22:44:46 | ------------------------------------ 2020-09-06 22:44:46 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-eb16fb44-a585-4ec7-8708-152774385aaa", "item-id": "item-18ca7f39-6235-4784-bcd3-6a39395ea700" } 2020-09-06 22:44:46 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-18ca7f39-6235-4784-bcd3-6a39395ea700" } 2020-09-06 22:44:46 | [Mutex] received everything. 2020-09-06 22:44:46 | [Mutex] isItemNotified: retracted:item:notifieditem-18ca7f39-6235-4784-bcd3-6a39395ea700:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.035s |
2020-09-06 22:44:46 |
2020-09-06 22:44:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 22:44:46 | ------------------------------------ 2020-09-06 22:44:46 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-eb16fb44-a585-4ec7-8708-152774385aaa", "item-id": "item-18ca7f39-6235-4784-bcd3-6a39395ea700" } 2020-09-06 22:44:46 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-eb16fb44-a585-4ec7-8708-152774385aaa", "item-id": "item-18ca7f39-6235-4784-bcd3-6a39395ea700", "item": [ "<item id=\"item-18ca7f39-6235-4784-bcd3-6a39395ea700\"><test>item-18ca7f39-6235-4784-bcd3-6a39395ea700</test></item>" ] } 2020-09-06 22:44:46 | [Mutex] notify: [retrieved:item:item-18ca7f39-6235-4784-bcd3-6a39395ea700:payload-matches:true:localhost] 2020-09-06 22:44:46 | [Mutex] received everything. 2020-09-06 22:44:46 | [Mutex] isItemNotified: retrieved:item:item-18ca7f39-6235-4784-bcd3-6a39395ea700:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.057s |
2020-09-06 22:44:46 |
2020-09-06 22:44:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 22:44:46 | ------------------------------------ 2020-09-06 22:44:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-06 22:44:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-2c737fa9-9c27-4165-8788-6125a2fb8045", "node-eb16fb44-a585-4ec7-8708-152774385aaa" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-09-06 22:44:46 |
2020-09-06 22:44:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 22:44:46 | ------------------------------------ 2020-09-06 22:44:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-eb16fb44-a585-4ec7-8708-152774385aaa)" } 2020-09-06 22:44:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2020-09-06 22:44:45 |
2020-09-06 22:44:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 22:44:45 | ------------------------------------ 2020-09-06 22:44:45 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-eb16fb44-a585-4ec7-8708-152774385aaa", "jids": [ "admin@test-domain.com" ] } 2020-09-06 22:44:45 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2020-09-06 22:44:46 |
2020-09-06 22:44:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 22:44:46 | ------------------------------------ 2020-09-06 22:44:46 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-eb16fb44-a585-4ec7-8708-152774385aaa", "jids": [ "admin@test-domain.com" ] } 2020-09-06 22:44:46 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |