Test duration: 9.052s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.092s |
2019-11-27 21:06:25 |
2019-11-27 21:06:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:06:25 | ------------------------------------ 2019-11-27 21:06:25 | [Mutex] waiting for: [configured:node:node-64add86a-6d8b-4c2b-95f9-33a82bde33b1:node-58b5e5f3-03bb-47e0-aa27-75ddf925ffaa] 2019-11-27 21:06:25 | [Mutex] received everything. 2019-11-27 21:06:25 | [Mutex] isItemNotified: configured:node:node-64add86a-6d8b-4c2b-95f9-33a82bde33b1:node-58b5e5f3-03bb-47e0-aa27-75ddf925ffaa :: true 2019-11-27 21:06:26 | [Mutex] waiting for: [received:nodes:5ccfdced-1021-4c01-b22c-fa0b1eb497a0:localhost] 2019-11-27 21:06:26 | [Mutex] received everything. 2019-11-27 21:06:26 | [Mutex] isItemNotified: received:node:5ccfdced-1021-4c01-b22c-fa0b1eb497a0:localhost:node-64add86a-6d8b-4c2b-95f9-33a82bde33b1:Node 64add86a-6d8b-4c2b-95f9-33a82bde33b1 :: true 2019-11-27 21:06:26 | [Mutex] waiting for: [received:nodes:32bc6846-d7a3-4507-8b6b-055fbdd4db7a:localhost] 2019-11-27 21:06:26 | [Mutex] received everything. 2019-11-27 21:06:26 | [Mutex] isItemNotified: received:node:32bc6846-d7a3-4507-8b6b-055fbdd4db7a:localhost:node-64add86a-6d8b-4c2b-95f9-33a82bde33b1:Node 64add86a-6d8b-4c2b-95f9-33a82bde33b1 :: false |
createNodes | 1.776s |
2019-11-27 21:06:22 |
2019-11-27 21:06:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:06:22 | ------------------------------------ 2019-11-27 21:06:23 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-64add86a-6d8b-4c2b-95f9-33a82bde33b1", "pubsub#title": "Node 64add86a-6d8b-4c2b-95f9-33a82bde33b1" } 2019-11-27 21:06:23 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-27 21:06:24 | [Mutex] waiting for: [received:nodes:f8925238-ea78-4ffe-b79a-8f412f66d017:localhost] 2019-11-27 21:06:24 | [Mutex] waiting for: [received:nodes:f8925238-ea78-4ffe-b79a-8f412f66d017:localhost] 2019-11-27 21:06:24 | [Mutex] received everything. 2019-11-27 21:06:24 | [Mutex] isItemNotified: received:node:f8925238-ea78-4ffe-b79a-8f412f66d017:localhost:node-64add86a-6d8b-4c2b-95f9-33a82bde33b1:Node 64add86a-6d8b-4c2b-95f9-33a82bde33b1 :: true |
createSubnodes | 1.032s |
2019-11-27 21:06:24 |
2019-11-27 21:06:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:06:24 | ------------------------------------ 2019-11-27 21:06:24 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-58b5e5f3-03bb-47e0-aa27-75ddf925ffaa", "pubsub#title": "Node 58b5e5f3-03bb-47e0-aa27-75ddf925ffaa" } 2019-11-27 21:06:24 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-27 21:06:25 | [Mutex] waiting for: [received:nodes:2329d476-96e6-4a8e-a48b-7f5bef215889:localhost] 2019-11-27 21:06:25 | [Mutex] received everything. 2019-11-27 21:06:25 | [Mutex] isItemNotified: received:node:2329d476-96e6-4a8e-a48b-7f5bef215889:localhost:node-58b5e5f3-03bb-47e0-aa27-75ddf925ffaa:Node 58b5e5f3-03bb-47e0-aa27-75ddf925ffaa :: true |
deleteNodes | 1.024s |
2019-11-27 21:06:29 |
2019-11-27 21:06:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:06:29 | ------------------------------------ 2019-11-27 21:06:29 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-58b5e5f3-03bb-47e0-aa27-75ddf925ffaa" } 2019-11-27 21:06:29 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-27 21:06:30 | [Mutex] waiting for: [received:nodes:a956f3c4-1d74-426e-b2d6-28a17a592749:localhost] 2019-11-27 21:06:30 | [Mutex] received everything. 2019-11-27 21:06:30 | [Mutex] isItemNotified: received:node:a956f3c4-1d74-426e-b2d6-28a17a592749:localhost:node-58b5e5f3-03bb-47e0-aa27-75ddf925ffaa:Node 58b5e5f3-03bb-47e0-aa27-75ddf925ffaa :: false |
deleteSubnodes | 1.029s |
2019-11-27 21:06:28 |
2019-11-27 21:06:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:06:28 | ------------------------------------ 2019-11-27 21:06:28 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-64add86a-6d8b-4c2b-95f9-33a82bde33b1" } 2019-11-27 21:06:28 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-27 21:06:29 | [Mutex] waiting for: [received:nodes:6704f6ac-8d85-43d5-a746-0ba9c2380d63:localhost] 2019-11-27 21:06:29 | [Mutex] received everything. 2019-11-27 21:06:29 | [Mutex] isItemNotified: received:node:6704f6ac-8d85-43d5-a746-0ba9c2380d63:localhost:node-64add86a-6d8b-4c2b-95f9-33a82bde33b1:Node 64add86a-6d8b-4c2b-95f9-33a82bde33b1 :: false 2019-11-27 21:06:29 | [Mutex] waiting for: [received:nodes:7cc6ad7d-359a-47c0-9bb4-40b20762386e:localhost] 2019-11-27 21:06:29 | [Mutex] received everything. 2019-11-27 21:06:29 | [Mutex] isItemNotified: received:node:7cc6ad7d-359a-47c0-9bb4-40b20762386e:localhost:node-64add86a-6d8b-4c2b-95f9-33a82bde33b1:Node 64add86a-6d8b-4c2b-95f9-33a82bde33b1 :: false |
publishItemsToNodes | 0.054s |
2019-11-27 21:06:27 |
2019-11-27 21:06:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:06:27 | ------------------------------------ 2019-11-27 21:06:27 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-64add86a-6d8b-4c2b-95f9-33a82bde33b1", "entry": "<test>item-86a51838-9e6a-47d4-b0ab-63dd0e0dd3c2</test>", "item-id": "item-86a51838-9e6a-47d4-b0ab-63dd0e0dd3c2" } 2019-11-27 21:06:27 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-86a51838-9e6a-47d4-b0ab-63dd0e0dd3c2" } 2019-11-27 21:06:27 | [Mutex] waiting for: [published:item:notifieditem-86a51838-9e6a-47d4-b0ab-63dd0e0dd3c2:admin@localhost] 2019-11-27 21:06:27 | [Mutex] received everything. 2019-11-27 21:06:27 | [Mutex] isItemNotified: published:item:notifieditem-86a51838-9e6a-47d4-b0ab-63dd0e0dd3c2:admin@localhost :: true |
retractItemsFromNodes | 0.050s |
2019-11-27 21:06:27 |
2019-11-27 21:06:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:06:27 | ------------------------------------ 2019-11-27 21:06:27 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-64add86a-6d8b-4c2b-95f9-33a82bde33b1", "item-id": "item-86a51838-9e6a-47d4-b0ab-63dd0e0dd3c2" } 2019-11-27 21:06:27 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-86a51838-9e6a-47d4-b0ab-63dd0e0dd3c2" } 2019-11-27 21:06:27 | [Mutex] received everything. 2019-11-27 21:06:27 | [Mutex] isItemNotified: retracted:item:notifieditem-86a51838-9e6a-47d4-b0ab-63dd0e0dd3c2:admin@localhost :: true |
retrieveItemsFromNodes | 0.017s |
2019-11-27 21:06:27 |
2019-11-27 21:06:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:06:27 | ------------------------------------ 2019-11-27 21:06:27 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-64add86a-6d8b-4c2b-95f9-33a82bde33b1", "item-id": "item-86a51838-9e6a-47d4-b0ab-63dd0e0dd3c2" } 2019-11-27 21:06:27 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-64add86a-6d8b-4c2b-95f9-33a82bde33b1", "item-id": "item-86a51838-9e6a-47d4-b0ab-63dd0e0dd3c2", "item": [ "<item id=\"item-86a51838-9e6a-47d4-b0ab-63dd0e0dd3c2\"><test>item-86a51838-9e6a-47d4-b0ab-63dd0e0dd3c2</test></item>" ] } 2019-11-27 21:06:27 | [Mutex] notify: [retrieved:item:item-86a51838-9e6a-47d4-b0ab-63dd0e0dd3c2:payload-matches:true:localhost] 2019-11-27 21:06:27 | [Mutex] received everything. 2019-11-27 21:06:27 | [Mutex] isItemNotified: retrieved:item:item-86a51838-9e6a-47d4-b0ab-63dd0e0dd3c2:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2019-11-27 21:06:27 |
2019-11-27 21:06:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:06:27 | ------------------------------------ 2019-11-27 21:06:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2019-11-27 21:06:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-58b5e5f3-03bb-47e0-aa27-75ddf925ffaa", "node-64add86a-6d8b-4c2b-95f9-33a82bde33b1" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2019-11-27 21:06:27 |
2019-11-27 21:06:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:06:27 | ------------------------------------ 2019-11-27 21:06:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-64add86a-6d8b-4c2b-95f9-33a82bde33b1)" } 2019-11-27 21:06:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2019-11-27 21:06:26 |
2019-11-27 21:06:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:06:26 | ------------------------------------ 2019-11-27 21:06:26 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-64add86a-6d8b-4c2b-95f9-33a82bde33b1", "jids": [ "admin@localhost" ] } 2019-11-27 21:06:26 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.111s |
2019-11-27 21:06:27 |
2019-11-27 21:06:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:06:27 | ------------------------------------ 2019-11-27 21:06:27 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-64add86a-6d8b-4c2b-95f9-33a82bde33b1", "jids": [ "admin@localhost" ] } 2019-11-27 21:06:27 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |