Test duration : 8.646s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.088s |
2022-08-11 22:34:24 |
2022-08-11 22:34:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 22:34:24 | ------------------------------------ 2022-08-11 22:34:24 | [Mutex] waiting for: [configured:node:node-9ac73594-2caa-41f8-b99d-09b8e0b6629a:node-b426afdb-4efe-44df-9ead-b0e2ff9d1a1e] 2022-08-11 22:34:24 | [Mutex] received everything. 2022-08-11 22:34:24 | [Mutex] isItemNotified: configured:node:node-9ac73594-2caa-41f8-b99d-09b8e0b6629a:node-b426afdb-4efe-44df-9ead-b0e2ff9d1a1e :: true 2022-08-11 22:34:25 | [Mutex] waiting for: [received:nodes:232e5e05-e24c-41c4-9bda-da63405b00c8:localhost] 2022-08-11 22:34:25 | [Mutex] received everything. 2022-08-11 22:34:25 | [Mutex] isItemNotified: received:node:232e5e05-e24c-41c4-9bda-da63405b00c8:localhost:node-9ac73594-2caa-41f8-b99d-09b8e0b6629a:Node 9ac73594-2caa-41f8-b99d-09b8e0b6629a :: true 2022-08-11 22:34:25 | [Mutex] waiting for: [received:nodes:28047fc9-cca2-44c0-9184-55775f239a1d:localhost] 2022-08-11 22:34:25 | [Mutex] waiting for: [received:nodes:28047fc9-cca2-44c0-9184-55775f239a1d:localhost] 2022-08-11 22:34:25 | [Mutex] received everything. 2022-08-11 22:34:25 | [Mutex] isItemNotified: received:node:28047fc9-cca2-44c0-9184-55775f239a1d:localhost:node-9ac73594-2caa-41f8-b99d-09b8e0b6629a:Node 9ac73594-2caa-41f8-b99d-09b8e0b6629a :: false |
createNodes | 1.575s |
2022-08-11 22:34:21 |
2022-08-11 22:34:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 22:34:21 | ------------------------------------ 2022-08-11 22:34:22 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-9ac73594-2caa-41f8-b99d-09b8e0b6629a", "pubsub#title": "Node 9ac73594-2caa-41f8-b99d-09b8e0b6629a" } 2022-08-11 22:34:22 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-11 22:34:23 | [Mutex] waiting for: [received:nodes:d32e0795-e943-41bf-8d55-c07fcb183ee1:localhost] 2022-08-11 22:34:23 | [Mutex] waiting for: [received:nodes:d32e0795-e943-41bf-8d55-c07fcb183ee1:localhost] 2022-08-11 22:34:23 | [Mutex] waiting for: [received:nodes:d32e0795-e943-41bf-8d55-c07fcb183ee1:localhost] 2022-08-11 22:34:23 | [Mutex] received everything. 2022-08-11 22:34:23 | [Mutex] isItemNotified: received:node:d32e0795-e943-41bf-8d55-c07fcb183ee1:localhost:node-9ac73594-2caa-41f8-b99d-09b8e0b6629a:Node 9ac73594-2caa-41f8-b99d-09b8e0b6629a :: true |
createSubnodes | 1.022s |
2022-08-11 22:34:23 |
2022-08-11 22:34:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 22:34:23 | ------------------------------------ 2022-08-11 22:34:23 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-b426afdb-4efe-44df-9ead-b0e2ff9d1a1e", "pubsub#title": "Node b426afdb-4efe-44df-9ead-b0e2ff9d1a1e" } 2022-08-11 22:34:23 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-11 22:34:24 | [Mutex] waiting for: [received:nodes:46911b72-1d2c-432c-9f9c-0145a30e94b6:localhost] 2022-08-11 22:34:24 | [Mutex] waiting for: [received:nodes:46911b72-1d2c-432c-9f9c-0145a30e94b6:localhost] 2022-08-11 22:34:24 | [Mutex] received everything. 2022-08-11 22:34:24 | [Mutex] isItemNotified: received:node:46911b72-1d2c-432c-9f9c-0145a30e94b6:localhost:node-b426afdb-4efe-44df-9ead-b0e2ff9d1a1e:Node b426afdb-4efe-44df-9ead-b0e2ff9d1a1e :: true |
deleteNodes | 1.020s |
2022-08-11 22:34:29 |
2022-08-11 22:34:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 22:34:29 | ------------------------------------ 2022-08-11 22:34:29 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b426afdb-4efe-44df-9ead-b0e2ff9d1a1e" } 2022-08-11 22:34:29 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-11 22:34:30 | [Mutex] waiting for: [received:nodes:29790d14-b836-444b-b060-abd2dee80ecc:localhost] 2022-08-11 22:34:30 | [Mutex] received everything. 2022-08-11 22:34:30 | [Mutex] isItemNotified: received:node:29790d14-b836-444b-b060-abd2dee80ecc:localhost:node-b426afdb-4efe-44df-9ead-b0e2ff9d1a1e:Node b426afdb-4efe-44df-9ead-b0e2ff9d1a1e :: false |
deleteSubnodes | 1.038s |
2022-08-11 22:34:28 |
2022-08-11 22:34:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 22:34:28 | ------------------------------------ 2022-08-11 22:34:28 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9ac73594-2caa-41f8-b99d-09b8e0b6629a" } 2022-08-11 22:34:28 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-11 22:34:29 | [Mutex] waiting for: [received:nodes:053ebb23-22fe-40ba-9459-bcfbbf4b1741:localhost] 2022-08-11 22:34:29 | [Mutex] received everything. 2022-08-11 22:34:29 | [Mutex] isItemNotified: received:node:053ebb23-22fe-40ba-9459-bcfbbf4b1741:localhost:node-9ac73594-2caa-41f8-b99d-09b8e0b6629a:Node 9ac73594-2caa-41f8-b99d-09b8e0b6629a :: false 2022-08-11 22:34:29 | [Mutex] waiting for: [received:nodes:723a1878-d533-41e7-b509-472b8d4dd2ca:localhost] 2022-08-11 22:34:29 | [Mutex] received everything. 2022-08-11 22:34:29 | [Mutex] isItemNotified: received:node:723a1878-d533-41e7-b509-472b8d4dd2ca:localhost:node-9ac73594-2caa-41f8-b99d-09b8e0b6629a:Node 9ac73594-2caa-41f8-b99d-09b8e0b6629a :: false |
publishItemsToNodes | 0.042s |
2022-08-11 22:34:26 |
2022-08-11 22:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 22:34:26 | ------------------------------------ 2022-08-11 22:34:26 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-9ac73594-2caa-41f8-b99d-09b8e0b6629a", "entry": "<test>item-c80c2805-1746-43a1-a8f0-d6bc09c1ae2f</test>", "item-id": "item-c80c2805-1746-43a1-a8f0-d6bc09c1ae2f" } 2022-08-11 22:34:26 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c80c2805-1746-43a1-a8f0-d6bc09c1ae2f" } 2022-08-11 22:34:26 | [Mutex] waiting for: [published:item:notifieditem-c80c2805-1746-43a1-a8f0-d6bc09c1ae2f:admin@test-domain.com] 2022-08-11 22:34:26 | [Mutex] received everything. 2022-08-11 22:34:26 | [Mutex] isItemNotified: published:item:notifieditem-c80c2805-1746-43a1-a8f0-d6bc09c1ae2f:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-08-11 22:34:26 |
2022-08-11 22:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 22:34:26 | ------------------------------------ 2022-08-11 22:34:26 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-9ac73594-2caa-41f8-b99d-09b8e0b6629a", "item-id": "item-c80c2805-1746-43a1-a8f0-d6bc09c1ae2f" } 2022-08-11 22:34:26 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c80c2805-1746-43a1-a8f0-d6bc09c1ae2f" } 2022-08-11 22:34:26 | [Mutex] received everything. 2022-08-11 22:34:26 | [Mutex] isItemNotified: retracted:item:notifieditem-c80c2805-1746-43a1-a8f0-d6bc09c1ae2f:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.061s |
2022-08-11 22:34:26 |
2022-08-11 22:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 22:34:26 | ------------------------------------ 2022-08-11 22:34:26 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-9ac73594-2caa-41f8-b99d-09b8e0b6629a", "item-id": "item-c80c2805-1746-43a1-a8f0-d6bc09c1ae2f" } 2022-08-11 22:34:26 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-9ac73594-2caa-41f8-b99d-09b8e0b6629a", "item-id": "item-c80c2805-1746-43a1-a8f0-d6bc09c1ae2f", "item": [ "<item id=\"item-c80c2805-1746-43a1-a8f0-d6bc09c1ae2f\"><test>item-c80c2805-1746-43a1-a8f0-d6bc09c1ae2f</test></item>" ] } 2022-08-11 22:34:26 | [Mutex] notify: [retrieved:item:item-c80c2805-1746-43a1-a8f0-d6bc09c1ae2f:payload-matches:true:localhost] 2022-08-11 22:34:26 | [Mutex] received everything. 2022-08-11 22:34:26 | [Mutex] isItemNotified: retrieved:item:item-c80c2805-1746-43a1-a8f0-d6bc09c1ae2f:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-08-11 22:34:26 |
2022-08-11 22:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 22:34:26 | ------------------------------------ 2022-08-11 22:34:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-11 22:34:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-b426afdb-4efe-44df-9ead-b0e2ff9d1a1e", "test", "node-9ac73594-2caa-41f8-b99d-09b8e0b6629a" ] } |
retrieveUserSubscriptionsWithRegex | 0.050s |
2022-08-11 22:34:26 |
2022-08-11 22:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 22:34:26 | ------------------------------------ 2022-08-11 22:34:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-9ac73594-2caa-41f8-b99d-09b8e0b6629a)" } 2022-08-11 22:34:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-08-11 22:34:25 |
2022-08-11 22:34:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 22:34:25 | ------------------------------------ 2022-08-11 22:34:25 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-9ac73594-2caa-41f8-b99d-09b8e0b6629a", "jids": [ "admin@test-domain.com" ] } 2022-08-11 22:34:25 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.056s |
2022-08-11 22:34:26 |
2022-08-11 22:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 22:34:26 | ------------------------------------ 2022-08-11 22:34:26 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-9ac73594-2caa-41f8-b99d-09b8e0b6629a", "jids": [ "admin@test-domain.com" ] } 2022-08-11 22:34:27 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |