Test duration : 8.946s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.127s |
2021-10-05 23:10:11 |
2021-10-05 23:10:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 23:10:11 | ------------------------------------ 2021-10-05 23:10:11 | [Mutex] waiting for: [configured:node:node-22da1b05-ce52-4158-b390-fd049317ff77:node-fe910cca-0b97-461a-b60d-9268766ff207] 2021-10-05 23:10:11 | [Mutex] received everything. 2021-10-05 23:10:11 | [Mutex] isItemNotified: configured:node:node-22da1b05-ce52-4158-b390-fd049317ff77:node-fe910cca-0b97-461a-b60d-9268766ff207 :: true 2021-10-05 23:10:12 | [Mutex] waiting for: [received:nodes:831f782f-1d60-4dca-9434-c3264b70c380:localhost] 2021-10-05 23:10:12 | [Mutex] waiting for: [received:nodes:831f782f-1d60-4dca-9434-c3264b70c380:localhost] 2021-10-05 23:10:12 | [Mutex] received everything. 2021-10-05 23:10:12 | [Mutex] isItemNotified: received:node:831f782f-1d60-4dca-9434-c3264b70c380:localhost:node-22da1b05-ce52-4158-b390-fd049317ff77:Node 22da1b05-ce52-4158-b390-fd049317ff77 :: true 2021-10-05 23:10:12 | [Mutex] waiting for: [received:nodes:4a429ccd-c850-430e-a8a5-f194e056a415:localhost] 2021-10-05 23:10:12 | [Mutex] waiting for: [received:nodes:4a429ccd-c850-430e-a8a5-f194e056a415:localhost] 2021-10-05 23:10:12 | [Mutex] waiting for: [received:nodes:4a429ccd-c850-430e-a8a5-f194e056a415:localhost] 2021-10-05 23:10:12 | [Mutex] received everything. 2021-10-05 23:10:12 | [Mutex] isItemNotified: received:node:4a429ccd-c850-430e-a8a5-f194e056a415:localhost:node-22da1b05-ce52-4158-b390-fd049317ff77:Node 22da1b05-ce52-4158-b390-fd049317ff77 :: false |
createNodes | 1.658s |
2021-10-05 23:10:09 |
2021-10-05 23:10:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 23:10:09 | ------------------------------------ 2021-10-05 23:10:09 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-22da1b05-ce52-4158-b390-fd049317ff77", "pubsub#title": "Node 22da1b05-ce52-4158-b390-fd049317ff77" } 2021-10-05 23:10:09 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-05 23:10:10 | [Mutex] waiting for: [received:nodes:92d58b83-968d-4a5a-af1b-55b83216c925:localhost] 2021-10-05 23:10:10 | [Mutex] received everything. 2021-10-05 23:10:10 | [Mutex] isItemNotified: received:node:92d58b83-968d-4a5a-af1b-55b83216c925:localhost:node-22da1b05-ce52-4158-b390-fd049317ff77:Node 22da1b05-ce52-4158-b390-fd049317ff77 :: true |
createSubnodes | 1.022s |
2021-10-05 23:10:10 |
2021-10-05 23:10:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 23:10:10 | ------------------------------------ 2021-10-05 23:10:10 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-fe910cca-0b97-461a-b60d-9268766ff207", "pubsub#title": "Node fe910cca-0b97-461a-b60d-9268766ff207" } 2021-10-05 23:10:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-05 23:10:11 | [Mutex] waiting for: [received:nodes:f8546a5a-ab90-4157-92a3-a4b5ecc55b62:localhost] 2021-10-05 23:10:11 | [Mutex] received everything. 2021-10-05 23:10:11 | [Mutex] isItemNotified: received:node:f8546a5a-ab90-4157-92a3-a4b5ecc55b62:localhost:node-fe910cca-0b97-461a-b60d-9268766ff207:Node fe910cca-0b97-461a-b60d-9268766ff207 :: true |
deleteNodes | 1.021s |
2021-10-05 23:10:16 |
2021-10-05 23:10:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 23:10:16 | ------------------------------------ 2021-10-05 23:10:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-fe910cca-0b97-461a-b60d-9268766ff207" } 2021-10-05 23:10:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-05 23:10:17 | [Mutex] waiting for: [received:nodes:8211168b-692f-44c6-92d3-3bdd5f01abb4:localhost] 2021-10-05 23:10:17 | [Mutex] received everything. 2021-10-05 23:10:17 | [Mutex] isItemNotified: received:node:8211168b-692f-44c6-92d3-3bdd5f01abb4:localhost:node-fe910cca-0b97-461a-b60d-9268766ff207:Node fe910cca-0b97-461a-b60d-9268766ff207 :: false |
deleteSubnodes | 1.026s |
2021-10-05 23:10:15 |
2021-10-05 23:10:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 23:10:15 | ------------------------------------ 2021-10-05 23:10:15 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-22da1b05-ce52-4158-b390-fd049317ff77" } 2021-10-05 23:10:15 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-05 23:10:16 | [Mutex] waiting for: [received:nodes:483a84c0-ac73-45b8-bd1f-a422e8c5f0e2:localhost] 2021-10-05 23:10:16 | [Mutex] waiting for: [received:nodes:483a84c0-ac73-45b8-bd1f-a422e8c5f0e2:localhost] 2021-10-05 23:10:16 | [Mutex] received everything. 2021-10-05 23:10:16 | [Mutex] isItemNotified: received:node:483a84c0-ac73-45b8-bd1f-a422e8c5f0e2:localhost:node-22da1b05-ce52-4158-b390-fd049317ff77:Node 22da1b05-ce52-4158-b390-fd049317ff77 :: false 2021-10-05 23:10:16 | [Mutex] waiting for: [received:nodes:65191fb0-fe5e-40de-9117-3644b38b8bd8:localhost] 2021-10-05 23:10:16 | [Mutex] received everything. 2021-10-05 23:10:16 | [Mutex] isItemNotified: received:node:65191fb0-fe5e-40de-9117-3644b38b8bd8:localhost:node-22da1b05-ce52-4158-b390-fd049317ff77:Node 22da1b05-ce52-4158-b390-fd049317ff77 :: false |
publishItemsToNodes | 0.050s |
2021-10-05 23:10:13 |
2021-10-05 23:10:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 23:10:13 | ------------------------------------ 2021-10-05 23:10:13 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-22da1b05-ce52-4158-b390-fd049317ff77", "entry": "<test>item-40753640-d5a2-46a9-bde6-38e76a83a5fb</test>", "item-id": "item-40753640-d5a2-46a9-bde6-38e76a83a5fb" } 2021-10-05 23:10:14 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-40753640-d5a2-46a9-bde6-38e76a83a5fb" } 2021-10-05 23:10:14 | [Mutex] waiting for: [published:item:notifieditem-40753640-d5a2-46a9-bde6-38e76a83a5fb:admin@test-domain.com] 2021-10-05 23:10:14 | [Mutex] received everything. 2021-10-05 23:10:14 | [Mutex] isItemNotified: published:item:notifieditem-40753640-d5a2-46a9-bde6-38e76a83a5fb:admin@test-domain.com :: true |
retractItemsFromNodes | 0.087s |
2021-10-05 23:10:14 |
2021-10-05 23:10:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 23:10:14 | ------------------------------------ 2021-10-05 23:10:14 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-22da1b05-ce52-4158-b390-fd049317ff77", "item-id": "item-40753640-d5a2-46a9-bde6-38e76a83a5fb" } 2021-10-05 23:10:14 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-40753640-d5a2-46a9-bde6-38e76a83a5fb" } 2021-10-05 23:10:14 | [Mutex] received everything. 2021-10-05 23:10:14 | [Mutex] isItemNotified: retracted:item:notifieditem-40753640-d5a2-46a9-bde6-38e76a83a5fb:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.058s |
2021-10-05 23:10:14 |
2021-10-05 23:10:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 23:10:14 | ------------------------------------ 2021-10-05 23:10:14 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-22da1b05-ce52-4158-b390-fd049317ff77", "item-id": "item-40753640-d5a2-46a9-bde6-38e76a83a5fb" } 2021-10-05 23:10:14 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-22da1b05-ce52-4158-b390-fd049317ff77", "item-id": "item-40753640-d5a2-46a9-bde6-38e76a83a5fb", "item": [ "<item id=\"item-40753640-d5a2-46a9-bde6-38e76a83a5fb\"><test>item-40753640-d5a2-46a9-bde6-38e76a83a5fb</test></item>" ] } 2021-10-05 23:10:14 | [Mutex] notify: [retrieved:item:item-40753640-d5a2-46a9-bde6-38e76a83a5fb:payload-matches:true:localhost] 2021-10-05 23:10:14 | [Mutex] received everything. 2021-10-05 23:10:14 | [Mutex] isItemNotified: retrieved:item:item-40753640-d5a2-46a9-bde6-38e76a83a5fb:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.127s |
2021-10-05 23:10:14 |
2021-10-05 23:10:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 23:10:14 | ------------------------------------ 2021-10-05 23:10:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-10-05 23:10:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-fe910cca-0b97-461a-b60d-9268766ff207", "node-22da1b05-ce52-4158-b390-fd049317ff77" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2021-10-05 23:10:14 |
2021-10-05 23:10:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 23:10:14 | ------------------------------------ 2021-10-05 23:10:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-22da1b05-ce52-4158-b390-fd049317ff77)" } 2021-10-05 23:10:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2021-10-05 23:10:12 |
2021-10-05 23:10:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 23:10:12 | ------------------------------------ 2021-10-05 23:10:12 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-22da1b05-ce52-4158-b390-fd049317ff77", "jids": [ "admin@test-domain.com" ] } 2021-10-05 23:10:12 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2021-10-05 23:10:14 |
2021-10-05 23:10:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 23:10:14 | ------------------------------------ 2021-10-05 23:10:14 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-22da1b05-ce52-4158-b390-fd049317ff77", "jids": [ "admin@test-domain.com" ] } 2021-10-05 23:10:14 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |