Test duration : 8.888s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.034s |
2022-02-14 21:33:18 |
2022-02-14 21:33:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 21:33:18 | ------------------------------------ 2022-02-14 21:33:18 | [Mutex] waiting for: [configured:node:node-b96c150d-d55d-4237-a0a6-945e7fe816b1:node-7764b5e8-574f-487b-9a0b-a1a82f2a1a8a] 2022-02-14 21:33:18 | [Mutex] received everything. 2022-02-14 21:33:18 | [Mutex] isItemNotified: configured:node:node-b96c150d-d55d-4237-a0a6-945e7fe816b1:node-7764b5e8-574f-487b-9a0b-a1a82f2a1a8a :: true 2022-02-14 21:33:19 | [Mutex] waiting for: [received:nodes:19aad4a8-abb7-44c2-a2cd-97c863e519ae:localhost] 2022-02-14 21:33:19 | [Mutex] received everything. 2022-02-14 21:33:19 | [Mutex] isItemNotified: received:node:19aad4a8-abb7-44c2-a2cd-97c863e519ae:localhost:node-b96c150d-d55d-4237-a0a6-945e7fe816b1:Node b96c150d-d55d-4237-a0a6-945e7fe816b1 :: true 2022-02-14 21:33:19 | [Mutex] waiting for: [received:nodes:edb91f4b-5e47-4bf8-b736-7811b2c7ef33:localhost] 2022-02-14 21:33:19 | [Mutex] received everything. 2022-02-14 21:33:19 | [Mutex] isItemNotified: received:node:edb91f4b-5e47-4bf8-b736-7811b2c7ef33:localhost:node-b96c150d-d55d-4237-a0a6-945e7fe816b1:Node b96c150d-d55d-4237-a0a6-945e7fe816b1 :: false |
createNodes | 1.669s |
2022-02-14 21:33:15 |
2022-02-14 21:33:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 21:33:15 | ------------------------------------ 2022-02-14 21:33:15 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-b96c150d-d55d-4237-a0a6-945e7fe816b1", "pubsub#title": "Node b96c150d-d55d-4237-a0a6-945e7fe816b1" } 2022-02-14 21:33:15 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-14 21:33:16 | [Mutex] waiting for: [received:nodes:d47fa7dd-3a75-408e-9c79-fb4c35794915:localhost] 2022-02-14 21:33:16 | [Mutex] waiting for: [received:nodes:d47fa7dd-3a75-408e-9c79-fb4c35794915:localhost] 2022-02-14 21:33:16 | [Mutex] received everything. 2022-02-14 21:33:16 | [Mutex] isItemNotified: received:node:d47fa7dd-3a75-408e-9c79-fb4c35794915:localhost:node-b96c150d-d55d-4237-a0a6-945e7fe816b1:Node b96c150d-d55d-4237-a0a6-945e7fe816b1 :: true |
createSubnodes | 1.024s |
2022-02-14 21:33:16 |
2022-02-14 21:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 21:33:16 | ------------------------------------ 2022-02-14 21:33: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-7764b5e8-574f-487b-9a0b-a1a82f2a1a8a", "pubsub#title": "Node 7764b5e8-574f-487b-9a0b-a1a82f2a1a8a" } 2022-02-14 21:33:17 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-14 21:33:18 | [Mutex] waiting for: [received:nodes:defadc45-fd67-4133-8319-d43213de5a71:localhost] 2022-02-14 21:33:18 | [Mutex] received everything. 2022-02-14 21:33:18 | [Mutex] isItemNotified: received:node:defadc45-fd67-4133-8319-d43213de5a71:localhost:node-7764b5e8-574f-487b-9a0b-a1a82f2a1a8a:Node 7764b5e8-574f-487b-9a0b-a1a82f2a1a8a :: true |
deleteNodes | 1.022s |
2022-02-14 21:33:22 |
2022-02-14 21:33:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 21:33:22 | ------------------------------------ 2022-02-14 21:33:22 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7764b5e8-574f-487b-9a0b-a1a82f2a1a8a" } 2022-02-14 21:33:22 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-14 21:33:23 | [Mutex] waiting for: [received:nodes:23a161be-359b-444e-9148-e8a11fa73bb5:localhost] 2022-02-14 21:33:23 | [Mutex] received everything. 2022-02-14 21:33:23 | [Mutex] isItemNotified: received:node:23a161be-359b-444e-9148-e8a11fa73bb5:localhost:node-7764b5e8-574f-487b-9a0b-a1a82f2a1a8a:Node 7764b5e8-574f-487b-9a0b-a1a82f2a1a8a :: false |
deleteSubnodes | 1.036s |
2022-02-14 21:33:21 |
2022-02-14 21:33:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 21:33:21 | ------------------------------------ 2022-02-14 21:33:21 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b96c150d-d55d-4237-a0a6-945e7fe816b1" } 2022-02-14 21:33:21 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-14 21:33:22 | [Mutex] waiting for: [received:nodes:aa480b33-32d4-4a14-b92f-235cb1dea32e:localhost] 2022-02-14 21:33:22 | [Mutex] waiting for: [received:nodes:aa480b33-32d4-4a14-b92f-235cb1dea32e:localhost] 2022-02-14 21:33:22 | [Mutex] received everything. 2022-02-14 21:33:22 | [Mutex] isItemNotified: received:node:aa480b33-32d4-4a14-b92f-235cb1dea32e:localhost:node-b96c150d-d55d-4237-a0a6-945e7fe816b1:Node b96c150d-d55d-4237-a0a6-945e7fe816b1 :: false 2022-02-14 21:33:22 | [Mutex] waiting for: [received:nodes:9f9f86f7-6ae1-4192-bd1a-215bc331db6b:localhost] 2022-02-14 21:33:22 | [Mutex] received everything. 2022-02-14 21:33:22 | [Mutex] isItemNotified: received:node:9f9f86f7-6ae1-4192-bd1a-215bc331db6b:localhost:node-b96c150d-d55d-4237-a0a6-945e7fe816b1:Node b96c150d-d55d-4237-a0a6-945e7fe816b1 :: false |
publishItemsToNodes | 0.039s |
2022-02-14 21:33:20 |
2022-02-14 21:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 21:33:20 | ------------------------------------ 2022-02-14 21:33:20 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-b96c150d-d55d-4237-a0a6-945e7fe816b1", "entry": "<test>item-3089861a-efa7-4252-9e2a-62687949416f</test>", "item-id": "item-3089861a-efa7-4252-9e2a-62687949416f" } 2022-02-14 21:33:20 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3089861a-efa7-4252-9e2a-62687949416f" } 2022-02-14 21:33:20 | [Mutex] waiting for: [published:item:notifieditem-3089861a-efa7-4252-9e2a-62687949416f:admin@test-domain.com] 2022-02-14 21:33:20 | [Mutex] received everything. 2022-02-14 21:33:20 | [Mutex] isItemNotified: published:item:notifieditem-3089861a-efa7-4252-9e2a-62687949416f:admin@test-domain.com :: true |
retractItemsFromNodes | 0.088s |
2022-02-14 21:33:20 |
2022-02-14 21:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 21:33:20 | ------------------------------------ 2022-02-14 21:33:20 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-b96c150d-d55d-4237-a0a6-945e7fe816b1", "item-id": "item-3089861a-efa7-4252-9e2a-62687949416f" } 2022-02-14 21:33:20 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3089861a-efa7-4252-9e2a-62687949416f" } 2022-02-14 21:33:20 | [Mutex] received everything. 2022-02-14 21:33:20 | [Mutex] isItemNotified: retracted:item:notifieditem-3089861a-efa7-4252-9e2a-62687949416f:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.131s |
2022-02-14 21:33:20 |
2022-02-14 21:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 21:33:20 | ------------------------------------ 2022-02-14 21:33:20 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-b96c150d-d55d-4237-a0a6-945e7fe816b1", "item-id": "item-3089861a-efa7-4252-9e2a-62687949416f" } 2022-02-14 21:33:20 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-b96c150d-d55d-4237-a0a6-945e7fe816b1", "item-id": "item-3089861a-efa7-4252-9e2a-62687949416f", "item": [ "<item id=\"item-3089861a-efa7-4252-9e2a-62687949416f\"><test>item-3089861a-efa7-4252-9e2a-62687949416f</test></item>" ] } 2022-02-14 21:33:20 | [Mutex] notify: [retrieved:item:item-3089861a-efa7-4252-9e2a-62687949416f:payload-matches:true:localhost] 2022-02-14 21:33:20 | [Mutex] received everything. 2022-02-14 21:33:20 | [Mutex] isItemNotified: retrieved:item:item-3089861a-efa7-4252-9e2a-62687949416f:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-02-14 21:33:20 |
2022-02-14 21:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 21:33:20 | ------------------------------------ 2022-02-14 21:33:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-14 21:33:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-b96c150d-d55d-4237-a0a6-945e7fe816b1", "test", "node-7764b5e8-574f-487b-9a0b-a1a82f2a1a8a" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-02-14 21:33:20 |
2022-02-14 21:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 21:33:20 | ------------------------------------ 2022-02-14 21:33:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-b96c150d-d55d-4237-a0a6-945e7fe816b1)" } 2022-02-14 21:33:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-02-14 21:33:19 |
2022-02-14 21:33:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 21:33:19 | ------------------------------------ 2022-02-14 21:33:19 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-b96c150d-d55d-4237-a0a6-945e7fe816b1", "jids": [ "admin@test-domain.com" ] } 2022-02-14 21:33:19 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2022-02-14 21:33:20 |
2022-02-14 21:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 21:33:20 | ------------------------------------ 2022-02-14 21:33:20 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-b96c150d-d55d-4237-a0a6-945e7fe816b1", "jids": [ "admin@test-domain.com" ] } 2022-02-14 21:33:20 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |