Test duration : 9.116s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.145s |
2020-11-19 21:48:51 |
2020-11-19 21:48:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:48:51 | ------------------------------------ 2020-11-19 21:48:51 | [Mutex] waiting for: [configured:node:node-3a8622b3-a13f-4556-b252-a467967a6908:node-9df62757-6bde-433a-9b18-8f539a78c5ae] 2020-11-19 21:48:51 | [Mutex] received everything. 2020-11-19 21:48:51 | [Mutex] isItemNotified: configured:node:node-3a8622b3-a13f-4556-b252-a467967a6908:node-9df62757-6bde-433a-9b18-8f539a78c5ae :: true 2020-11-19 21:48:52 | [Mutex] waiting for: [received:nodes:fa8362fa-e3b3-4756-8dd3-ce29bbc5c7f5:localhost] 2020-11-19 21:48:52 | [Mutex] received everything. 2020-11-19 21:48:52 | [Mutex] isItemNotified: received:node:fa8362fa-e3b3-4756-8dd3-ce29bbc5c7f5:localhost:node-3a8622b3-a13f-4556-b252-a467967a6908:Node 3a8622b3-a13f-4556-b252-a467967a6908 :: true 2020-11-19 21:48:52 | [Mutex] waiting for: [received:nodes:ddf3c452-1c02-4123-a96d-8520e234200d:localhost] 2020-11-19 21:48:52 | [Mutex] waiting for: [received:nodes:ddf3c452-1c02-4123-a96d-8520e234200d:localhost] 2020-11-19 21:48:52 | [Mutex] received everything. 2020-11-19 21:48:52 | [Mutex] isItemNotified: received:node:ddf3c452-1c02-4123-a96d-8520e234200d:localhost:node-3a8622b3-a13f-4556-b252-a467967a6908:Node 3a8622b3-a13f-4556-b252-a467967a6908 :: false |
createNodes | 1.665s |
2020-11-19 21:48:49 |
2020-11-19 21:48:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:48:49 | ------------------------------------ 2020-11-19 21:48:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-3a8622b3-a13f-4556-b252-a467967a6908", "pubsub#title": "Node 3a8622b3-a13f-4556-b252-a467967a6908" } 2020-11-19 21:48:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-19 21:48:50 | [Mutex] waiting for: [received:nodes:ad0d256e-76e7-406a-9b6a-b85d178530ac:localhost] 2020-11-19 21:48:50 | [Mutex] received everything. 2020-11-19 21:48:50 | [Mutex] isItemNotified: received:node:ad0d256e-76e7-406a-9b6a-b85d178530ac:localhost:node-3a8622b3-a13f-4556-b252-a467967a6908:Node 3a8622b3-a13f-4556-b252-a467967a6908 :: true |
createSubnodes | 1.027s |
2020-11-19 21:48:50 |
2020-11-19 21:48:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:48:50 | ------------------------------------ 2020-11-19 21:48:50 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-9df62757-6bde-433a-9b18-8f539a78c5ae", "pubsub#title": "Node 9df62757-6bde-433a-9b18-8f539a78c5ae" } 2020-11-19 21:48:50 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-19 21:48:51 | [Mutex] waiting for: [received:nodes:0aa47d07-47e3-4580-91b2-64171be6ef2b:localhost] 2020-11-19 21:48:51 | [Mutex] received everything. 2020-11-19 21:48:51 | [Mutex] isItemNotified: received:node:0aa47d07-47e3-4580-91b2-64171be6ef2b:localhost:node-9df62757-6bde-433a-9b18-8f539a78c5ae:Node 9df62757-6bde-433a-9b18-8f539a78c5ae :: true |
deleteNodes | 1.026s |
2020-11-19 21:48:56 |
2020-11-19 21:48:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:48:56 | ------------------------------------ 2020-11-19 21:48:56 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9df62757-6bde-433a-9b18-8f539a78c5ae" } 2020-11-19 21:48:56 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-19 21:48:57 | [Mutex] waiting for: [received:nodes:10c059f3-4805-4ff8-bdc6-1af50a1d53d5:localhost] 2020-11-19 21:48:57 | [Mutex] waiting for: [received:nodes:10c059f3-4805-4ff8-bdc6-1af50a1d53d5:localhost] 2020-11-19 21:48:57 | [Mutex] received everything. 2020-11-19 21:48:57 | [Mutex] isItemNotified: received:node:10c059f3-4805-4ff8-bdc6-1af50a1d53d5:localhost:node-9df62757-6bde-433a-9b18-8f539a78c5ae:Node 9df62757-6bde-433a-9b18-8f539a78c5ae :: false |
deleteSubnodes | 1.032s |
2020-11-19 21:48:55 |
2020-11-19 21:48:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:48:55 | ------------------------------------ 2020-11-19 21:48:55 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3a8622b3-a13f-4556-b252-a467967a6908" } 2020-11-19 21:48:55 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-19 21:48:56 | [Mutex] waiting for: [received:nodes:1aa9cb18-0c29-4c55-819e-b482de1b48ab:localhost] 2020-11-19 21:48:56 | [Mutex] received everything. 2020-11-19 21:48:56 | [Mutex] isItemNotified: received:node:1aa9cb18-0c29-4c55-819e-b482de1b48ab:localhost:node-3a8622b3-a13f-4556-b252-a467967a6908:Node 3a8622b3-a13f-4556-b252-a467967a6908 :: false 2020-11-19 21:48:56 | [Mutex] waiting for: [received:nodes:2c8101e3-18a1-4daa-842e-76e41fabe682:localhost] 2020-11-19 21:48:56 | [Mutex] received everything. 2020-11-19 21:48:56 | [Mutex] isItemNotified: received:node:2c8101e3-18a1-4daa-842e-76e41fabe682:localhost:node-3a8622b3-a13f-4556-b252-a467967a6908:Node 3a8622b3-a13f-4556-b252-a467967a6908 :: false |
publishItemsToNodes | 0.050s |
2020-11-19 21:48:53 |
2020-11-19 21:48:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:48:53 | ------------------------------------ 2020-11-19 21:48:53 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-3a8622b3-a13f-4556-b252-a467967a6908", "entry": "<test>item-f202d743-65d3-4335-a350-786e6fa845e8</test>", "item-id": "item-f202d743-65d3-4335-a350-786e6fa845e8" } 2020-11-19 21:48:53 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f202d743-65d3-4335-a350-786e6fa845e8" } 2020-11-19 21:48:53 | [Mutex] waiting for: [published:item:notifieditem-f202d743-65d3-4335-a350-786e6fa845e8:admin@test-domain.com] 2020-11-19 21:48:53 | [Mutex] received everything. 2020-11-19 21:48:53 | [Mutex] isItemNotified: published:item:notifieditem-f202d743-65d3-4335-a350-786e6fa845e8:admin@test-domain.com :: true |
retractItemsFromNodes | 0.083s |
2020-11-19 21:48:54 |
2020-11-19 21:48:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:48:54 | ------------------------------------ 2020-11-19 21:48:54 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-3a8622b3-a13f-4556-b252-a467967a6908", "item-id": "item-f202d743-65d3-4335-a350-786e6fa845e8" } 2020-11-19 21:48:54 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f202d743-65d3-4335-a350-786e6fa845e8" } 2020-11-19 21:48:54 | [Mutex] received everything. 2020-11-19 21:48:54 | [Mutex] isItemNotified: retracted:item:notifieditem-f202d743-65d3-4335-a350-786e6fa845e8:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.037s |
2020-11-19 21:48:53 |
2020-11-19 21:48:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:48:53 | ------------------------------------ 2020-11-19 21:48:53 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-3a8622b3-a13f-4556-b252-a467967a6908", "item-id": "item-f202d743-65d3-4335-a350-786e6fa845e8" } 2020-11-19 21:48:53 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-3a8622b3-a13f-4556-b252-a467967a6908", "item-id": "item-f202d743-65d3-4335-a350-786e6fa845e8", "item": [ "<item id=\"item-f202d743-65d3-4335-a350-786e6fa845e8\"><test>item-f202d743-65d3-4335-a350-786e6fa845e8</test></item>" ] } 2020-11-19 21:48:53 | [Mutex] notify: [retrieved:item:item-f202d743-65d3-4335-a350-786e6fa845e8:payload-matches:true:localhost] 2020-11-19 21:48:53 | [Mutex] received everything. 2020-11-19 21:48:53 | [Mutex] isItemNotified: retrieved:item:item-f202d743-65d3-4335-a350-786e6fa845e8:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.090s |
2020-11-19 21:48:53 |
2020-11-19 21:48:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:48:53 | ------------------------------------ 2020-11-19 21:48:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-11-19 21:48:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-9df62757-6bde-433a-9b18-8f539a78c5ae", "node-3a8622b3-a13f-4556-b252-a467967a6908" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-11-19 21:48:54 |
2020-11-19 21:48:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:48:54 | ------------------------------------ 2020-11-19 21:48:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-3a8622b3-a13f-4556-b252-a467967a6908)" } 2020-11-19 21:48:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2020-11-19 21:48:52 |
2020-11-19 21:48:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:48:52 | ------------------------------------ 2020-11-19 21:48:52 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-3a8622b3-a13f-4556-b252-a467967a6908", "jids": [ "admin@test-domain.com" ] } 2020-11-19 21:48:52 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.083s |
2020-11-19 21:48:54 |
2020-11-19 21:48:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:48:54 | ------------------------------------ 2020-11-19 21:48:54 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-3a8622b3-a13f-4556-b252-a467967a6908", "jids": [ "admin@test-domain.com" ] } 2020-11-19 21:48:54 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |