Test duration: 9.071s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.093s |
2019-11-26 18:45:14 |
2019-11-26 18:45:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-26 18:45:14 | ------------------------------------ 2019-11-26 18:45:14 | [Mutex] waiting for: [configured:node:node-59d973db-3da9-4173-b160-65f087540658:node-d5de5a19-561e-49f1-8981-8fbbff249b79] 2019-11-26 18:45:14 | [Mutex] received everything. 2019-11-26 18:45:14 | [Mutex] isItemNotified: configured:node:node-59d973db-3da9-4173-b160-65f087540658:node-d5de5a19-561e-49f1-8981-8fbbff249b79 :: true 2019-11-26 18:45:15 | [Mutex] waiting for: [received:nodes:329ca9f3-cc43-4610-9df1-80e055418ab3:localhost] 2019-11-26 18:45:15 | [Mutex] received everything. 2019-11-26 18:45:15 | [Mutex] isItemNotified: received:node:329ca9f3-cc43-4610-9df1-80e055418ab3:localhost:node-59d973db-3da9-4173-b160-65f087540658:Node 59d973db-3da9-4173-b160-65f087540658 :: true 2019-11-26 18:45:15 | [Mutex] waiting for: [received:nodes:6098d90c-0777-4a42-9044-7eab10d59bb2:localhost] 2019-11-26 18:45:15 | [Mutex] received everything. 2019-11-26 18:45:15 | [Mutex] isItemNotified: received:node:6098d90c-0777-4a42-9044-7eab10d59bb2:localhost:node-59d973db-3da9-4173-b160-65f087540658:Node 59d973db-3da9-4173-b160-65f087540658 :: false |
createNodes | 1.817s |
2019-11-26 18:45:11 |
2019-11-26 18:45:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-26 18:45:11 | ------------------------------------ 2019-11-26 18:45:12 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-59d973db-3da9-4173-b160-65f087540658", "pubsub#title": "Node 59d973db-3da9-4173-b160-65f087540658" } 2019-11-26 18:45:12 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-26 18:45:13 | [Mutex] waiting for: [received:nodes:a1644bd5-621d-4560-842c-3f74897250d8:localhost] 2019-11-26 18:45:13 | [Mutex] received everything. 2019-11-26 18:45:13 | [Mutex] isItemNotified: received:node:a1644bd5-621d-4560-842c-3f74897250d8:localhost:node-59d973db-3da9-4173-b160-65f087540658:Node 59d973db-3da9-4173-b160-65f087540658 :: true |
createSubnodes | 1.025s |
2019-11-26 18:45:13 |
2019-11-26 18:45:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-26 18:45:13 | ------------------------------------ 2019-11-26 18:45:13 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-d5de5a19-561e-49f1-8981-8fbbff249b79", "pubsub#title": "Node d5de5a19-561e-49f1-8981-8fbbff249b79" } 2019-11-26 18:45:13 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-26 18:45:14 | [Mutex] waiting for: [received:nodes:9b61c4e8-d86c-4626-9ec4-34c332d8a4e7:localhost] 2019-11-26 18:45:14 | [Mutex] received everything. 2019-11-26 18:45:14 | [Mutex] isItemNotified: received:node:9b61c4e8-d86c-4626-9ec4-34c332d8a4e7:localhost:node-d5de5a19-561e-49f1-8981-8fbbff249b79:Node d5de5a19-561e-49f1-8981-8fbbff249b79 :: true |
deleteNodes | 1.018s |
2019-11-26 18:45:19 |
2019-11-26 18:45:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-26 18:45:19 | ------------------------------------ 2019-11-26 18:45:19 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d5de5a19-561e-49f1-8981-8fbbff249b79" } 2019-11-26 18:45:19 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-26 18:45:20 | [Mutex] waiting for: [received:nodes:284b033b-df2b-40f9-8102-30c1c997e0e6:localhost] 2019-11-26 18:45:20 | [Mutex] received everything. 2019-11-26 18:45:20 | [Mutex] isItemNotified: received:node:284b033b-df2b-40f9-8102-30c1c997e0e6:localhost:node-d5de5a19-561e-49f1-8981-8fbbff249b79:Node d5de5a19-561e-49f1-8981-8fbbff249b79 :: false |
deleteSubnodes | 1.026s |
2019-11-26 18:45:18 |
2019-11-26 18:45:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-26 18:45:18 | ------------------------------------ 2019-11-26 18:45:18 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-59d973db-3da9-4173-b160-65f087540658" } 2019-11-26 18:45:18 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-26 18:45:19 | [Mutex] waiting for: [received:nodes:c172a9dd-4ee5-4df5-915c-5c70f6edafec:localhost] 2019-11-26 18:45:19 | [Mutex] received everything. 2019-11-26 18:45:19 | [Mutex] isItemNotified: received:node:c172a9dd-4ee5-4df5-915c-5c70f6edafec:localhost:node-59d973db-3da9-4173-b160-65f087540658:Node 59d973db-3da9-4173-b160-65f087540658 :: false 2019-11-26 18:45:19 | [Mutex] waiting for: [received:nodes:6caecdfc-f157-4fb5-a9a3-7b0c42123970:localhost] 2019-11-26 18:45:19 | [Mutex] received everything. 2019-11-26 18:45:19 | [Mutex] isItemNotified: received:node:6caecdfc-f157-4fb5-a9a3-7b0c42123970:localhost:node-59d973db-3da9-4173-b160-65f087540658:Node 59d973db-3da9-4173-b160-65f087540658 :: false |
publishItemsToNodes | 0.033s |
2019-11-26 18:45:16 |
2019-11-26 18:45:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-26 18:45:16 | ------------------------------------ 2019-11-26 18:45:16 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-59d973db-3da9-4173-b160-65f087540658", "entry": "<test>item-807b69ba-23fd-40df-9364-5a9c8dd821c0</test>", "item-id": "item-807b69ba-23fd-40df-9364-5a9c8dd821c0" } 2019-11-26 18:45:16 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-807b69ba-23fd-40df-9364-5a9c8dd821c0" } 2019-11-26 18:45:16 | [Mutex] waiting for: [published:item:notifieditem-807b69ba-23fd-40df-9364-5a9c8dd821c0:admin@localhost] 2019-11-26 18:45:16 | [Mutex] received everything. 2019-11-26 18:45:16 | [Mutex] isItemNotified: published:item:notifieditem-807b69ba-23fd-40df-9364-5a9c8dd821c0:admin@localhost :: true |
retractItemsFromNodes | 0.057s |
2019-11-26 18:45:17 |
2019-11-26 18:45:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-26 18:45:17 | ------------------------------------ 2019-11-26 18:45:17 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-59d973db-3da9-4173-b160-65f087540658", "item-id": "item-807b69ba-23fd-40df-9364-5a9c8dd821c0" } 2019-11-26 18:45:17 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-807b69ba-23fd-40df-9364-5a9c8dd821c0" } 2019-11-26 18:45:17 | [Mutex] received everything. 2019-11-26 18:45:17 | [Mutex] isItemNotified: retracted:item:notifieditem-807b69ba-23fd-40df-9364-5a9c8dd821c0:admin@localhost :: true |
retrieveItemsFromNodes | 0.068s |
2019-11-26 18:45:16 |
2019-11-26 18:45:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-26 18:45:16 | ------------------------------------ 2019-11-26 18:45:16 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-59d973db-3da9-4173-b160-65f087540658", "item-id": "item-807b69ba-23fd-40df-9364-5a9c8dd821c0" } 2019-11-26 18:45:17 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-59d973db-3da9-4173-b160-65f087540658", "item-id": "item-807b69ba-23fd-40df-9364-5a9c8dd821c0", "item": [ "<item id=\"item-807b69ba-23fd-40df-9364-5a9c8dd821c0\"><test>item-807b69ba-23fd-40df-9364-5a9c8dd821c0</test></item>" ] } 2019-11-26 18:45:17 | [Mutex] notify: [retrieved:item:item-807b69ba-23fd-40df-9364-5a9c8dd821c0:payload-matches:true:localhost] 2019-11-26 18:45:17 | [Mutex] received everything. 2019-11-26 18:45:17 | [Mutex] isItemNotified: retrieved:item:item-807b69ba-23fd-40df-9364-5a9c8dd821c0:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2019-11-26 18:45:17 |
2019-11-26 18:45:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-26 18:45:17 | ------------------------------------ 2019-11-26 18:45:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2019-11-26 18:45:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-d5de5a19-561e-49f1-8981-8fbbff249b79", "node-59d973db-3da9-4173-b160-65f087540658" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2019-11-26 18:45:17 |
2019-11-26 18:45:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-26 18:45:17 | ------------------------------------ 2019-11-26 18:45:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-59d973db-3da9-4173-b160-65f087540658)" } 2019-11-26 18:45:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2019-11-26 18:45:15 |
2019-11-26 18:45:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-26 18:45:15 | ------------------------------------ 2019-11-26 18:45:15 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-59d973db-3da9-4173-b160-65f087540658", "jids": [ "admin@localhost" ] } 2019-11-26 18:45:15 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.065s |
2019-11-26 18:45:17 |
2019-11-26 18:45:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-26 18:45:17 | ------------------------------------ 2019-11-26 18:45:17 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-59d973db-3da9-4173-b160-65f087540658", "jids": [ "admin@localhost" ] } 2019-11-26 18:45:17 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |