Test duration: 8.840s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.101s |
2020-05-26 00:59:11 |
2020-05-26 00:59:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 00:59:11 | ------------------------------------ 2020-05-26 00:59:11 | [Mutex] waiting for: [configured:node:node-32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e:node-a3df3813-810e-40df-918c-b1af1d5a4e9f] 2020-05-26 00:59:11 | [Mutex] received everything. 2020-05-26 00:59:11 | [Mutex] isItemNotified: configured:node:node-32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e:node-a3df3813-810e-40df-918c-b1af1d5a4e9f :: true 2020-05-26 00:59:12 | [Mutex] waiting for: [received:nodes:e59054b7-e0b3-499f-aed8-040bd0321da8:localhost] 2020-05-26 00:59:12 | [Mutex] received everything. 2020-05-26 00:59:12 | [Mutex] isItemNotified: received:node:e59054b7-e0b3-499f-aed8-040bd0321da8:localhost:node-32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e:Node 32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e :: true 2020-05-26 00:59:12 | [Mutex] waiting for: [received:nodes:b6504a1e-69c7-4684-9af5-f2a9266d657e:localhost] 2020-05-26 00:59:12 | [Mutex] received everything. 2020-05-26 00:59:12 | [Mutex] isItemNotified: received:node:b6504a1e-69c7-4684-9af5-f2a9266d657e:localhost:node-32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e:Node 32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e :: false |
createNodes | 1.599s |
2020-05-26 00:59:09 |
2020-05-26 00:59:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 00:59:09 | ------------------------------------ 2020-05-26 00:59:09 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e", "pubsub#title": "Node 32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e" } 2020-05-26 00:59:09 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-05-26 00:59:10 | [Mutex] waiting for: [received:nodes:4bc67563-c2e1-406f-a94d-0cd70f64f573:localhost] 2020-05-26 00:59:10 | [Mutex] received everything. 2020-05-26 00:59:10 | [Mutex] isItemNotified: received:node:4bc67563-c2e1-406f-a94d-0cd70f64f573:localhost:node-32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e:Node 32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e :: true |
createSubnodes | 1.030s |
2020-05-26 00:59:10 |
2020-05-26 00:59:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 00:59:10 | ------------------------------------ 2020-05-26 00:59:10 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-a3df3813-810e-40df-918c-b1af1d5a4e9f", "pubsub#title": "Node a3df3813-810e-40df-918c-b1af1d5a4e9f" } 2020-05-26 00:59:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-05-26 00:59:11 | [Mutex] waiting for: [received:nodes:2e5ee613-24b1-43c7-b58a-94d3e996de00:localhost] 2020-05-26 00:59:11 | [Mutex] received everything. 2020-05-26 00:59:11 | [Mutex] isItemNotified: received:node:2e5ee613-24b1-43c7-b58a-94d3e996de00:localhost:node-a3df3813-810e-40df-918c-b1af1d5a4e9f:Node a3df3813-810e-40df-918c-b1af1d5a4e9f :: true |
deleteNodes | 1.019s |
2020-05-26 00:59:16 |
2020-05-26 00:59:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 00:59:16 | ------------------------------------ 2020-05-26 00:59:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a3df3813-810e-40df-918c-b1af1d5a4e9f" } 2020-05-26 00:59:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-05-26 00:59:17 | [Mutex] waiting for: [received:nodes:0138e0c5-ed77-4432-9bc3-68e5053202eb:localhost] 2020-05-26 00:59:17 | [Mutex] received everything. 2020-05-26 00:59:17 | [Mutex] isItemNotified: received:node:0138e0c5-ed77-4432-9bc3-68e5053202eb:localhost:node-a3df3813-810e-40df-918c-b1af1d5a4e9f:Node a3df3813-810e-40df-918c-b1af1d5a4e9f :: false |
deleteSubnodes | 1.022s |
2020-05-26 00:59:15 |
2020-05-26 00:59:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 00:59:15 | ------------------------------------ 2020-05-26 00:59:15 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e" } 2020-05-26 00:59:15 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-05-26 00:59:16 | [Mutex] waiting for: [received:nodes:db3a8018-8050-49d4-9ec1-a23bbaebb249:localhost] 2020-05-26 00:59:16 | [Mutex] received everything. 2020-05-26 00:59:16 | [Mutex] isItemNotified: received:node:db3a8018-8050-49d4-9ec1-a23bbaebb249:localhost:node-32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e:Node 32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e :: false 2020-05-26 00:59:16 | [Mutex] waiting for: [received:nodes:b42a13cd-0c32-4b9b-bbdb-641c33f8abc7:localhost] 2020-05-26 00:59:16 | [Mutex] received everything. 2020-05-26 00:59:16 | [Mutex] isItemNotified: received:node:b42a13cd-0c32-4b9b-bbdb-641c33f8abc7:localhost:node-32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e:Node 32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e :: false |
publishItemsToNodes | 0.038s |
2020-05-26 00:59:13 |
2020-05-26 00:59:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 00:59:13 | ------------------------------------ 2020-05-26 00:59:13 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e", "entry": "<test>item-788d702d-fe08-4731-a25d-41b3b14c3383</test>", "item-id": "item-788d702d-fe08-4731-a25d-41b3b14c3383" } 2020-05-26 00:59:13 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-788d702d-fe08-4731-a25d-41b3b14c3383" } 2020-05-26 00:59:13 | [Mutex] waiting for: [published:item:notifieditem-788d702d-fe08-4731-a25d-41b3b14c3383:admin@localhost] 2020-05-26 00:59:13 | [Mutex] received everything. 2020-05-26 00:59:13 | [Mutex] isItemNotified: published:item:notifieditem-788d702d-fe08-4731-a25d-41b3b14c3383:admin@localhost :: true |
retractItemsFromNodes | 0.056s |
2020-05-26 00:59:14 |
2020-05-26 00:59:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 00:59:14 | ------------------------------------ 2020-05-26 00:59:14 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e", "item-id": "item-788d702d-fe08-4731-a25d-41b3b14c3383" } 2020-05-26 00:59:14 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-788d702d-fe08-4731-a25d-41b3b14c3383" } 2020-05-26 00:59:14 | [Mutex] received everything. 2020-05-26 00:59:14 | [Mutex] isItemNotified: retracted:item:notifieditem-788d702d-fe08-4731-a25d-41b3b14c3383:admin@localhost :: true |
retrieveItemsFromNodes | 0.057s |
2020-05-26 00:59:13 |
2020-05-26 00:59:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 00:59:13 | ------------------------------------ 2020-05-26 00:59:13 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e", "item-id": "item-788d702d-fe08-4731-a25d-41b3b14c3383" } 2020-05-26 00:59:13 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e", "item-id": "item-788d702d-fe08-4731-a25d-41b3b14c3383", "item": [ "<item id=\"item-788d702d-fe08-4731-a25d-41b3b14c3383\"><test>item-788d702d-fe08-4731-a25d-41b3b14c3383</test></item>" ] } 2020-05-26 00:59:13 | [Mutex] notify: [retrieved:item:item-788d702d-fe08-4731-a25d-41b3b14c3383:payload-matches:true:localhost] 2020-05-26 00:59:13 | [Mutex] received everything. 2020-05-26 00:59:13 | [Mutex] isItemNotified: retrieved:item:item-788d702d-fe08-4731-a25d-41b3b14c3383:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2020-05-26 00:59:13 |
2020-05-26 00:59:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 00:59:13 | ------------------------------------ 2020-05-26 00:59:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2020-05-26 00:59:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e", "node-a3df3813-810e-40df-918c-b1af1d5a4e9f" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2020-05-26 00:59:14 |
2020-05-26 00:59:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 00:59:14 | ------------------------------------ 2020-05-26 00:59:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e)" } 2020-05-26 00:59:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2020-05-26 00:59:12 |
2020-05-26 00:59:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 00:59:12 | ------------------------------------ 2020-05-26 00:59:12 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e", "jids": [ "admin@localhost" ] } 2020-05-26 00:59:12 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.080s |
2020-05-26 00:59:14 |
2020-05-26 00:59:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 00:59:14 | ------------------------------------ 2020-05-26 00:59:14 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-32dc55b3-25fc-4d03-a1fe-bffb35c3dc6e", "jids": [ "admin@localhost" ] } 2020-05-26 00:59:14 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |