Test duration : 9.060s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2020-09-01 23:58:18 |
2020-09-01 23:58:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 23:58:18 | ------------------------------------ 2020-09-01 23:58:18 | [Mutex] waiting for: [configured:node:node-f19a73ec-5def-4da7-b803-e79bf2ef3a84:node-3b96e7ed-3bce-4f14-97d0-6d20dc6cbb2e] 2020-09-01 23:58:18 | [Mutex] received everything. 2020-09-01 23:58:18 | [Mutex] isItemNotified: configured:node:node-f19a73ec-5def-4da7-b803-e79bf2ef3a84:node-3b96e7ed-3bce-4f14-97d0-6d20dc6cbb2e :: true 2020-09-01 23:58:19 | [Mutex] waiting for: [received:nodes:3d77b2d4-18de-4b5f-8b10-688140200f9e:localhost] 2020-09-01 23:58:19 | [Mutex] waiting for: [received:nodes:3d77b2d4-18de-4b5f-8b10-688140200f9e:localhost] 2020-09-01 23:58:19 | [Mutex] received everything. 2020-09-01 23:58:19 | [Mutex] isItemNotified: received:node:3d77b2d4-18de-4b5f-8b10-688140200f9e:localhost:node-f19a73ec-5def-4da7-b803-e79bf2ef3a84:Node f19a73ec-5def-4da7-b803-e79bf2ef3a84 :: true 2020-09-01 23:58:19 | [Mutex] waiting for: [received:nodes:d7d93a46-b608-4d9e-a043-5ab7adcce7af:localhost] 2020-09-01 23:58:19 | [Mutex] received everything. 2020-09-01 23:58:19 | [Mutex] isItemNotified: received:node:d7d93a46-b608-4d9e-a043-5ab7adcce7af:localhost:node-f19a73ec-5def-4da7-b803-e79bf2ef3a84:Node f19a73ec-5def-4da7-b803-e79bf2ef3a84 :: false |
createNodes | 1.623s |
2020-09-01 23:58:15 |
2020-09-01 23:58:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 23:58:15 | ------------------------------------ 2020-09-01 23:58:16 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-f19a73ec-5def-4da7-b803-e79bf2ef3a84", "pubsub#title": "Node f19a73ec-5def-4da7-b803-e79bf2ef3a84" } 2020-09-01 23:58:16 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-01 23:58:17 | [Mutex] waiting for: [received:nodes:ee4028be-0851-4ad0-b860-05b3313ead0c:localhost] 2020-09-01 23:58:17 | [Mutex] received everything. 2020-09-01 23:58:17 | [Mutex] isItemNotified: received:node:ee4028be-0851-4ad0-b860-05b3313ead0c:localhost:node-f19a73ec-5def-4da7-b803-e79bf2ef3a84:Node f19a73ec-5def-4da7-b803-e79bf2ef3a84 :: true |
createSubnodes | 1.026s |
2020-09-01 23:58:17 |
2020-09-01 23:58:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 23:58:17 | ------------------------------------ 2020-09-01 23:58:17 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-3b96e7ed-3bce-4f14-97d0-6d20dc6cbb2e", "pubsub#title": "Node 3b96e7ed-3bce-4f14-97d0-6d20dc6cbb2e" } 2020-09-01 23:58:17 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-01 23:58:18 | [Mutex] waiting for: [received:nodes:01439a9e-c6e1-446d-b58a-877b2f36f0f7:localhost] 2020-09-01 23:58:18 | [Mutex] received everything. 2020-09-01 23:58:18 | [Mutex] isItemNotified: received:node:01439a9e-c6e1-446d-b58a-877b2f36f0f7:localhost:node-3b96e7ed-3bce-4f14-97d0-6d20dc6cbb2e:Node 3b96e7ed-3bce-4f14-97d0-6d20dc6cbb2e :: true |
deleteNodes | 1.020s |
2020-09-01 23:58:22 |
2020-09-01 23:58:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 23:58:22 | ------------------------------------ 2020-09-01 23:58:22 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3b96e7ed-3bce-4f14-97d0-6d20dc6cbb2e" } 2020-09-01 23:58:22 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-01 23:58:23 | [Mutex] waiting for: [received:nodes:aa91dcd6-e280-460e-912c-56b93bbf6c88:localhost] 2020-09-01 23:58:23 | [Mutex] received everything. 2020-09-01 23:58:23 | [Mutex] isItemNotified: received:node:aa91dcd6-e280-460e-912c-56b93bbf6c88:localhost:node-3b96e7ed-3bce-4f14-97d0-6d20dc6cbb2e:Node 3b96e7ed-3bce-4f14-97d0-6d20dc6cbb2e :: false |
deleteSubnodes | 1.048s |
2020-09-01 23:58:21 |
2020-09-01 23:58:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 23:58:21 | ------------------------------------ 2020-09-01 23:58:21 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f19a73ec-5def-4da7-b803-e79bf2ef3a84" } 2020-09-01 23:58:21 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-01 23:58:22 | [Mutex] waiting for: [received:nodes:f6184f32-69e3-4c66-825b-a636d3805928:localhost] 2020-09-01 23:58:22 | [Mutex] received everything. 2020-09-01 23:58:22 | [Mutex] isItemNotified: received:node:f6184f32-69e3-4c66-825b-a636d3805928:localhost:node-f19a73ec-5def-4da7-b803-e79bf2ef3a84:Node f19a73ec-5def-4da7-b803-e79bf2ef3a84 :: false 2020-09-01 23:58:22 | [Mutex] waiting for: [received:nodes:e30b38c7-2377-4c01-9c77-312c969e0a63:localhost] 2020-09-01 23:58:22 | [Mutex] received everything. 2020-09-01 23:58:22 | [Mutex] isItemNotified: received:node:e30b38c7-2377-4c01-9c77-312c969e0a63:localhost:node-f19a73ec-5def-4da7-b803-e79bf2ef3a84:Node f19a73ec-5def-4da7-b803-e79bf2ef3a84 :: false |
publishItemsToNodes | 0.058s |
2020-09-01 23:58:20 |
2020-09-01 23:58:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 23:58:20 | ------------------------------------ 2020-09-01 23:58:20 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-f19a73ec-5def-4da7-b803-e79bf2ef3a84", "entry": "<test>item-8f3b2314-20dd-484a-ba1c-d57f12c5c66f</test>", "item-id": "item-8f3b2314-20dd-484a-ba1c-d57f12c5c66f" } 2020-09-01 23:58:20 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8f3b2314-20dd-484a-ba1c-d57f12c5c66f" } 2020-09-01 23:58:20 | [Mutex] waiting for: [published:item:notifieditem-8f3b2314-20dd-484a-ba1c-d57f12c5c66f:admin@test-domain.com] 2020-09-01 23:58:20 | [Mutex] received everything. 2020-09-01 23:58:20 | [Mutex] isItemNotified: published:item:notifieditem-8f3b2314-20dd-484a-ba1c-d57f12c5c66f:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2020-09-01 23:58:20 |
2020-09-01 23:58:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 23:58:20 | ------------------------------------ 2020-09-01 23:58:20 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-f19a73ec-5def-4da7-b803-e79bf2ef3a84", "item-id": "item-8f3b2314-20dd-484a-ba1c-d57f12c5c66f" } 2020-09-01 23:58:20 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8f3b2314-20dd-484a-ba1c-d57f12c5c66f" } 2020-09-01 23:58:20 | [Mutex] received everything. 2020-09-01 23:58:20 | [Mutex] isItemNotified: retracted:item:notifieditem-8f3b2314-20dd-484a-ba1c-d57f12c5c66f:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.089s |
2020-09-01 23:58:20 |
2020-09-01 23:58:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 23:58:20 | ------------------------------------ 2020-09-01 23:58:20 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-f19a73ec-5def-4da7-b803-e79bf2ef3a84", "item-id": "item-8f3b2314-20dd-484a-ba1c-d57f12c5c66f" } 2020-09-01 23:58:20 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-f19a73ec-5def-4da7-b803-e79bf2ef3a84", "item-id": "item-8f3b2314-20dd-484a-ba1c-d57f12c5c66f", "item": [ "<item id=\"item-8f3b2314-20dd-484a-ba1c-d57f12c5c66f\"><test>item-8f3b2314-20dd-484a-ba1c-d57f12c5c66f</test></item>" ] } 2020-09-01 23:58:20 | [Mutex] notify: [retrieved:item:item-8f3b2314-20dd-484a-ba1c-d57f12c5c66f:payload-matches:true:localhost] 2020-09-01 23:58:20 | [Mutex] received everything. 2020-09-01 23:58:20 | [Mutex] isItemNotified: retrieved:item:item-8f3b2314-20dd-484a-ba1c-d57f12c5c66f:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-09-01 23:58:20 |
2020-09-01 23:58:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 23:58:20 | ------------------------------------ 2020-09-01 23:58:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-01 23:58:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-f19a73ec-5def-4da7-b803-e79bf2ef3a84", "node-3b96e7ed-3bce-4f14-97d0-6d20dc6cbb2e" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-09-01 23:58:20 |
2020-09-01 23:58:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 23:58:20 | ------------------------------------ 2020-09-01 23:58:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-f19a73ec-5def-4da7-b803-e79bf2ef3a84)" } 2020-09-01 23:58:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-09-01 23:58:19 |
2020-09-01 23:58:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 23:58:19 | ------------------------------------ 2020-09-01 23:58:19 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-f19a73ec-5def-4da7-b803-e79bf2ef3a84", "jids": [ "admin@test-domain.com" ] } 2020-09-01 23:58:19 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2020-09-01 23:58:20 |
2020-09-01 23:58:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 23:58:20 | ------------------------------------ 2020-09-01 23:58:20 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-f19a73ec-5def-4da7-b803-e79bf2ef3a84", "jids": [ "admin@test-domain.com" ] } 2020-09-01 23:58:20 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |