Test duration : 8.952s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.100s |
2021-10-12 22:29:28 |
2021-10-12 22:29:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:29:28 | ------------------------------------ 2021-10-12 22:29:28 | [Mutex] waiting for: [configured:node:node-dad84772-f164-45f5-8281-e2b496e0ed26:node-9193fcd5-91b5-46ee-92bb-16a1be287b6b] 2021-10-12 22:29:28 | [Mutex] received everything. 2021-10-12 22:29:28 | [Mutex] isItemNotified: configured:node:node-dad84772-f164-45f5-8281-e2b496e0ed26:node-9193fcd5-91b5-46ee-92bb-16a1be287b6b :: true 2021-10-12 22:29:29 | [Mutex] waiting for: [received:nodes:b8dd4140-2672-47b3-a2ec-5ed008147b46:localhost] 2021-10-12 22:29:29 | [Mutex] received everything. 2021-10-12 22:29:29 | [Mutex] isItemNotified: received:node:b8dd4140-2672-47b3-a2ec-5ed008147b46:localhost:node-dad84772-f164-45f5-8281-e2b496e0ed26:Node dad84772-f164-45f5-8281-e2b496e0ed26 :: true 2021-10-12 22:29:29 | [Mutex] waiting for: [received:nodes:d59e1218-ad8f-4c47-a164-1366905ea045:localhost] 2021-10-12 22:29:29 | [Mutex] waiting for: [received:nodes:d59e1218-ad8f-4c47-a164-1366905ea045:localhost] 2021-10-12 22:29:29 | [Mutex] received everything. 2021-10-12 22:29:29 | [Mutex] isItemNotified: received:node:d59e1218-ad8f-4c47-a164-1366905ea045:localhost:node-dad84772-f164-45f5-8281-e2b496e0ed26:Node dad84772-f164-45f5-8281-e2b496e0ed26 :: false |
createNodes | 1.537s |
2021-10-12 22:29:25 |
2021-10-12 22:29:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:29:25 | ------------------------------------ 2021-10-12 22:29:26 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-dad84772-f164-45f5-8281-e2b496e0ed26", "pubsub#title": "Node dad84772-f164-45f5-8281-e2b496e0ed26" } 2021-10-12 22:29:26 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-12 22:29:27 | [Mutex] waiting for: [received:nodes:c14985b1-0f46-4b6f-99f3-46cbf02ead07:localhost] 2021-10-12 22:29:27 | [Mutex] waiting for: [received:nodes:c14985b1-0f46-4b6f-99f3-46cbf02ead07:localhost] 2021-10-12 22:29:27 | [Mutex] received everything. 2021-10-12 22:29:27 | [Mutex] isItemNotified: received:node:c14985b1-0f46-4b6f-99f3-46cbf02ead07:localhost:node-dad84772-f164-45f5-8281-e2b496e0ed26:Node dad84772-f164-45f5-8281-e2b496e0ed26 :: true |
createSubnodes | 1.024s |
2021-10-12 22:29:27 |
2021-10-12 22:29:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:29:27 | ------------------------------------ 2021-10-12 22:29:27 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-9193fcd5-91b5-46ee-92bb-16a1be287b6b", "pubsub#title": "Node 9193fcd5-91b5-46ee-92bb-16a1be287b6b" } 2021-10-12 22:29:27 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-12 22:29:28 | [Mutex] waiting for: [received:nodes:cef6d1a3-ffc1-4ec3-86cd-08ad4f0a0c65:localhost] 2021-10-12 22:29:28 | [Mutex] received everything. 2021-10-12 22:29:28 | [Mutex] isItemNotified: received:node:cef6d1a3-ffc1-4ec3-86cd-08ad4f0a0c65:localhost:node-9193fcd5-91b5-46ee-92bb-16a1be287b6b:Node 9193fcd5-91b5-46ee-92bb-16a1be287b6b :: true |
deleteNodes | 1.020s |
2021-10-12 22:29:32 |
2021-10-12 22:29:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:29:32 | ------------------------------------ 2021-10-12 22:29:32 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9193fcd5-91b5-46ee-92bb-16a1be287b6b" } 2021-10-12 22:29:32 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-12 22:29:33 | [Mutex] waiting for: [received:nodes:b02b99d2-e01c-4d8b-afb0-8da5c5196e13:localhost] 2021-10-12 22:29:33 | [Mutex] received everything. 2021-10-12 22:29:33 | [Mutex] isItemNotified: received:node:b02b99d2-e01c-4d8b-afb0-8da5c5196e13:localhost:node-9193fcd5-91b5-46ee-92bb-16a1be287b6b:Node 9193fcd5-91b5-46ee-92bb-16a1be287b6b :: false |
deleteSubnodes | 1.028s |
2021-10-12 22:29:31 |
2021-10-12 22:29:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:29:31 | ------------------------------------ 2021-10-12 22:29:31 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-dad84772-f164-45f5-8281-e2b496e0ed26" } 2021-10-12 22:29:31 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-12 22:29:32 | [Mutex] waiting for: [received:nodes:fd3b83e7-aa10-4660-a507-7515ea2eab1e:localhost] 2021-10-12 22:29:32 | [Mutex] waiting for: [received:nodes:fd3b83e7-aa10-4660-a507-7515ea2eab1e:localhost] 2021-10-12 22:29:32 | [Mutex] received everything. 2021-10-12 22:29:32 | [Mutex] isItemNotified: received:node:fd3b83e7-aa10-4660-a507-7515ea2eab1e:localhost:node-dad84772-f164-45f5-8281-e2b496e0ed26:Node dad84772-f164-45f5-8281-e2b496e0ed26 :: false 2021-10-12 22:29:32 | [Mutex] waiting for: [received:nodes:e0c3c597-ea83-46e4-a86d-97364ead915a:localhost] 2021-10-12 22:29:32 | [Mutex] received everything. 2021-10-12 22:29:32 | [Mutex] isItemNotified: received:node:e0c3c597-ea83-46e4-a86d-97364ead915a:localhost:node-dad84772-f164-45f5-8281-e2b496e0ed26:Node dad84772-f164-45f5-8281-e2b496e0ed26 :: false |
publishItemsToNodes | 0.037s |
2021-10-12 22:29:30 |
2021-10-12 22:29:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:29:30 | ------------------------------------ 2021-10-12 22:29:30 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-dad84772-f164-45f5-8281-e2b496e0ed26", "entry": "<test>item-4d084699-9b03-49fc-a3f6-65b0a4933ed5</test>", "item-id": "item-4d084699-9b03-49fc-a3f6-65b0a4933ed5" } 2021-10-12 22:29:30 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4d084699-9b03-49fc-a3f6-65b0a4933ed5" } 2021-10-12 22:29:30 | [Mutex] waiting for: [published:item:notifieditem-4d084699-9b03-49fc-a3f6-65b0a4933ed5:admin@test-domain.com] 2021-10-12 22:29:30 | [Mutex] received everything. 2021-10-12 22:29:30 | [Mutex] isItemNotified: published:item:notifieditem-4d084699-9b03-49fc-a3f6-65b0a4933ed5:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2021-10-12 22:29:30 |
2021-10-12 22:29:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:29:30 | ------------------------------------ 2021-10-12 22:29:30 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-dad84772-f164-45f5-8281-e2b496e0ed26", "item-id": "item-4d084699-9b03-49fc-a3f6-65b0a4933ed5" } 2021-10-12 22:29:30 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4d084699-9b03-49fc-a3f6-65b0a4933ed5" } 2021-10-12 22:29:30 | [Mutex] received everything. 2021-10-12 22:29:30 | [Mutex] isItemNotified: retracted:item:notifieditem-4d084699-9b03-49fc-a3f6-65b0a4933ed5:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.095s |
2021-10-12 22:29:30 |
2021-10-12 22:29:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:29:30 | ------------------------------------ 2021-10-12 22:29:30 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-dad84772-f164-45f5-8281-e2b496e0ed26", "item-id": "item-4d084699-9b03-49fc-a3f6-65b0a4933ed5" } 2021-10-12 22:29:30 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-dad84772-f164-45f5-8281-e2b496e0ed26", "item-id": "item-4d084699-9b03-49fc-a3f6-65b0a4933ed5", "item": [ "<item id=\"item-4d084699-9b03-49fc-a3f6-65b0a4933ed5\"><test>item-4d084699-9b03-49fc-a3f6-65b0a4933ed5</test></item>" ] } 2021-10-12 22:29:30 | [Mutex] notify: [retrieved:item:item-4d084699-9b03-49fc-a3f6-65b0a4933ed5:payload-matches:true:localhost] 2021-10-12 22:29:30 | [Mutex] received everything. 2021-10-12 22:29:30 | [Mutex] isItemNotified: retrieved:item:item-4d084699-9b03-49fc-a3f6-65b0a4933ed5:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.052s |
2021-10-12 22:29:30 |
2021-10-12 22:29:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:29:30 | ------------------------------------ 2021-10-12 22:29:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-10-12 22:29:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-9193fcd5-91b5-46ee-92bb-16a1be287b6b", "node-dad84772-f164-45f5-8281-e2b496e0ed26" ] } |
retrieveUserSubscriptionsWithRegex | 0.050s |
2021-10-12 22:29:30 |
2021-10-12 22:29:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:29:30 | ------------------------------------ 2021-10-12 22:29:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-dad84772-f164-45f5-8281-e2b496e0ed26)" } 2021-10-12 22:29:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2021-10-12 22:29:29 |
2021-10-12 22:29:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:29:29 | ------------------------------------ 2021-10-12 22:29:29 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-dad84772-f164-45f5-8281-e2b496e0ed26", "jids": [ "admin@test-domain.com" ] } 2021-10-12 22:29:29 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.191s |
2021-10-12 22:29:30 |
2021-10-12 22:29:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:29:30 | ------------------------------------ 2021-10-12 22:29:30 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-dad84772-f164-45f5-8281-e2b496e0ed26", "jids": [ "admin@test-domain.com" ] } 2021-10-12 22:29:30 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |