Test duration : 8.581s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.099s |
2023-02-27 21:58:17 |
2023-02-27 21:58:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:58:17 | ------------------------------------ 2023-02-27 21:58:17 | [Mutex] waiting for: [configured:node:node-dd8d650c-b04c-4871-b783-2d046864816a:node-653c5c43-d62c-42d5-9a47-37663763adcb] 2023-02-27 21:58:17 | [Mutex] received everything. 2023-02-27 21:58:17 | [Mutex] isItemNotified: configured:node:node-dd8d650c-b04c-4871-b783-2d046864816a:node-653c5c43-d62c-42d5-9a47-37663763adcb :: true 2023-02-27 21:58:18 | [Mutex] waiting for: [received:nodes:1d665128-18a0-4ab4-8bc9-f3435f1da628:localhost] 2023-02-27 21:58:18 | [Mutex] received everything. 2023-02-27 21:58:18 | [Mutex] isItemNotified: received:node:1d665128-18a0-4ab4-8bc9-f3435f1da628:localhost:node-dd8d650c-b04c-4871-b783-2d046864816a:Node dd8d650c-b04c-4871-b783-2d046864816a :: true 2023-02-27 21:58:18 | [Mutex] waiting for: [received:nodes:c97755c2-b59d-451d-8f12-7d5f3c7dc200:localhost] 2023-02-27 21:58:18 | [Mutex] waiting for: [received:nodes:c97755c2-b59d-451d-8f12-7d5f3c7dc200:localhost] 2023-02-27 21:58:18 | [Mutex] waiting for: [received:nodes:c97755c2-b59d-451d-8f12-7d5f3c7dc200:localhost] 2023-02-27 21:58:18 | [Mutex] received everything. 2023-02-27 21:58:18 | [Mutex] isItemNotified: received:node:c97755c2-b59d-451d-8f12-7d5f3c7dc200:localhost:node-dd8d650c-b04c-4871-b783-2d046864816a:Node dd8d650c-b04c-4871-b783-2d046864816a :: false |
createNodes | 1.589s |
2023-02-27 21:58:14 |
2023-02-27 21:58:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:58:14 | ------------------------------------ 2023-02-27 21:58:14 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-dd8d650c-b04c-4871-b783-2d046864816a", "pubsub#title": "Node dd8d650c-b04c-4871-b783-2d046864816a" } 2023-02-27 21:58:15 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-02-27 21:58:16 | [Mutex] waiting for: [received:nodes:a3bcd0be-c8c7-496d-ad0a-8db4b665150b:localhost] 2023-02-27 21:58:16 | [Mutex] waiting for: [received:nodes:a3bcd0be-c8c7-496d-ad0a-8db4b665150b:localhost] 2023-02-27 21:58:16 | [Mutex] waiting for: [received:nodes:a3bcd0be-c8c7-496d-ad0a-8db4b665150b:localhost] 2023-02-27 21:58:16 | [Mutex] waiting for: [received:nodes:a3bcd0be-c8c7-496d-ad0a-8db4b665150b:localhost] 2023-02-27 21:58:16 | [Mutex] received everything. 2023-02-27 21:58:16 | [Mutex] isItemNotified: received:node:a3bcd0be-c8c7-496d-ad0a-8db4b665150b:localhost:node-dd8d650c-b04c-4871-b783-2d046864816a:Node dd8d650c-b04c-4871-b783-2d046864816a :: true |
createSubnodes | 1.026s |
2023-02-27 21:58:16 |
2023-02-27 21:58:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:58:16 | ------------------------------------ 2023-02-27 21:58:16 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-653c5c43-d62c-42d5-9a47-37663763adcb", "pubsub#title": "Node 653c5c43-d62c-42d5-9a47-37663763adcb" } 2023-02-27 21:58:16 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-02-27 21:58:17 | [Mutex] waiting for: [received:nodes:001b5930-f982-4031-aff8-b4a56931b9f1:localhost] 2023-02-27 21:58:17 | [Mutex] waiting for: [received:nodes:001b5930-f982-4031-aff8-b4a56931b9f1:localhost] 2023-02-27 21:58:17 | [Mutex] waiting for: [received:nodes:001b5930-f982-4031-aff8-b4a56931b9f1:localhost] 2023-02-27 21:58:17 | [Mutex] waiting for: [received:nodes:001b5930-f982-4031-aff8-b4a56931b9f1:localhost] 2023-02-27 21:58:17 | [Mutex] waiting for: [received:nodes:001b5930-f982-4031-aff8-b4a56931b9f1:localhost] 2023-02-27 21:58:17 | [Mutex] received everything. 2023-02-27 21:58:17 | [Mutex] isItemNotified: received:node:001b5930-f982-4031-aff8-b4a56931b9f1:localhost:node-653c5c43-d62c-42d5-9a47-37663763adcb:Node 653c5c43-d62c-42d5-9a47-37663763adcb :: true |
deleteNodes | 1.019s |
2023-02-27 21:58:21 |
2023-02-27 21:58:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:58:21 | ------------------------------------ 2023-02-27 21:58:21 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-653c5c43-d62c-42d5-9a47-37663763adcb" } 2023-02-27 21:58:21 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-02-27 21:58:22 | [Mutex] waiting for: [received:nodes:fa4d4a04-f74e-4119-b7bb-703afe6111c9:localhost] 2023-02-27 21:58:22 | [Mutex] waiting for: [received:nodes:fa4d4a04-f74e-4119-b7bb-703afe6111c9:localhost] 2023-02-27 21:58:22 | [Mutex] waiting for: [received:nodes:fa4d4a04-f74e-4119-b7bb-703afe6111c9:localhost] 2023-02-27 21:58:22 | [Mutex] received everything. 2023-02-27 21:58:22 | [Mutex] isItemNotified: received:node:fa4d4a04-f74e-4119-b7bb-703afe6111c9:localhost:node-653c5c43-d62c-42d5-9a47-37663763adcb:Node 653c5c43-d62c-42d5-9a47-37663763adcb :: false |
deleteSubnodes | 1.027s |
2023-02-27 21:58:20 |
2023-02-27 21:58:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:58:20 | ------------------------------------ 2023-02-27 21:58:20 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-dd8d650c-b04c-4871-b783-2d046864816a" } 2023-02-27 21:58:20 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-02-27 21:58:21 | [Mutex] waiting for: [received:nodes:89cb832e-9b97-4603-8ca0-69d7b16535d6:localhost] 2023-02-27 21:58:21 | [Mutex] waiting for: [received:nodes:89cb832e-9b97-4603-8ca0-69d7b16535d6:localhost] 2023-02-27 21:58:21 | [Mutex] waiting for: [received:nodes:89cb832e-9b97-4603-8ca0-69d7b16535d6:localhost] 2023-02-27 21:58:21 | [Mutex] received everything. 2023-02-27 21:58:21 | [Mutex] isItemNotified: received:node:89cb832e-9b97-4603-8ca0-69d7b16535d6:localhost:node-dd8d650c-b04c-4871-b783-2d046864816a:Node dd8d650c-b04c-4871-b783-2d046864816a :: false 2023-02-27 21:58:21 | [Mutex] waiting for: [received:nodes:9511d2b2-bf3a-4a03-8358-9767539b74a9:localhost] 2023-02-27 21:58:21 | [Mutex] received everything. 2023-02-27 21:58:21 | [Mutex] isItemNotified: received:node:9511d2b2-bf3a-4a03-8358-9767539b74a9:localhost:node-dd8d650c-b04c-4871-b783-2d046864816a:Node dd8d650c-b04c-4871-b783-2d046864816a :: false |
publishItemsToNodes | 0.048s |
2023-02-27 21:58:19 |
2023-02-27 21:58:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:58:19 | ------------------------------------ 2023-02-27 21:58:19 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-dd8d650c-b04c-4871-b783-2d046864816a", "entry": "<test>item-84a88462-a69e-48c8-98da-a6fe1c832744</test>", "item-id": "item-84a88462-a69e-48c8-98da-a6fe1c832744" } 2023-02-27 21:58:19 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-84a88462-a69e-48c8-98da-a6fe1c832744" } 2023-02-27 21:58:19 | [Mutex] waiting for: [published:item:notifieditem-84a88462-a69e-48c8-98da-a6fe1c832744:admin@test-domain.com] 2023-02-27 21:58:19 | [Mutex] received everything. 2023-02-27 21:58:19 | [Mutex] isItemNotified: published:item:notifieditem-84a88462-a69e-48c8-98da-a6fe1c832744:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2023-02-27 21:58:19 |
2023-02-27 21:58:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:58:19 | ------------------------------------ 2023-02-27 21:58:19 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-dd8d650c-b04c-4871-b783-2d046864816a", "item-id": "item-84a88462-a69e-48c8-98da-a6fe1c832744" } 2023-02-27 21:58:19 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-84a88462-a69e-48c8-98da-a6fe1c832744" } 2023-02-27 21:58:19 | [Mutex] received everything. 2023-02-27 21:58:19 | [Mutex] isItemNotified: retracted:item:notifieditem-84a88462-a69e-48c8-98da-a6fe1c832744:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.022s |
2023-02-27 21:58:19 |
2023-02-27 21:58:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:58:19 | ------------------------------------ 2023-02-27 21:58:19 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-dd8d650c-b04c-4871-b783-2d046864816a", "item-id": "item-84a88462-a69e-48c8-98da-a6fe1c832744" } 2023-02-27 21:58:19 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-dd8d650c-b04c-4871-b783-2d046864816a", "item-id": "item-84a88462-a69e-48c8-98da-a6fe1c832744", "item": [ "<item id=\"item-84a88462-a69e-48c8-98da-a6fe1c832744\"><test>item-84a88462-a69e-48c8-98da-a6fe1c832744</test></item>" ] } 2023-02-27 21:58:19 | [Mutex] notify: [retrieved:item:item-84a88462-a69e-48c8-98da-a6fe1c832744:payload-matches:true:localhost] 2023-02-27 21:58:19 | [Mutex] received everything. 2023-02-27 21:58:19 | [Mutex] isItemNotified: retrieved:item:item-84a88462-a69e-48c8-98da-a6fe1c832744:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2023-02-27 21:58:19 |
2023-02-27 21:58:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:58:19 | ------------------------------------ 2023-02-27 21:58:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-02-27 21:58:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-653c5c43-d62c-42d5-9a47-37663763adcb", "node-dd8d650c-b04c-4871-b783-2d046864816a" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-02-27 21:58:19 |
2023-02-27 21:58:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:58:19 | ------------------------------------ 2023-02-27 21:58:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-dd8d650c-b04c-4871-b783-2d046864816a)" } 2023-02-27 21:58:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2023-02-27 21:58:18 |
2023-02-27 21:58:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:58:18 | ------------------------------------ 2023-02-27 21:58:18 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-dd8d650c-b04c-4871-b783-2d046864816a", "jids": [ "admin@test-domain.com" ] } 2023-02-27 21:58:18 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2023-02-27 21:58:19 |
2023-02-27 21:58:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:58:19 | ------------------------------------ 2023-02-27 21:58:19 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-dd8d650c-b04c-4871-b783-2d046864816a", "jids": [ "admin@test-domain.com" ] } 2023-02-27 21:58:19 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |