Test duration : 9.033s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.108s |
2022-02-13 21:35:21 |
2022-02-13 21:35:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:35:21 | ------------------------------------ 2022-02-13 21:35:21 | [Mutex] waiting for: [configured:node:node-be544432-affc-4072-ab41-17789346d2c4:node-8cf6d86e-37a9-4ad7-988d-f23d9e975bac] 2022-02-13 21:35:21 | [Mutex] received everything. 2022-02-13 21:35:21 | [Mutex] isItemNotified: configured:node:node-be544432-affc-4072-ab41-17789346d2c4:node-8cf6d86e-37a9-4ad7-988d-f23d9e975bac :: true 2022-02-13 21:35:22 | [Mutex] waiting for: [received:nodes:79e473db-3a04-4e1e-90c0-0272cf9f7a68:localhost] 2022-02-13 21:35:22 | [Mutex] received everything. 2022-02-13 21:35:22 | [Mutex] isItemNotified: received:node:79e473db-3a04-4e1e-90c0-0272cf9f7a68:localhost:node-be544432-affc-4072-ab41-17789346d2c4:Node be544432-affc-4072-ab41-17789346d2c4 :: true 2022-02-13 21:35:22 | [Mutex] waiting for: [received:nodes:a714656f-7a58-4bb4-ac85-8e9273238d13:localhost] 2022-02-13 21:35:22 | [Mutex] received everything. 2022-02-13 21:35:22 | [Mutex] isItemNotified: received:node:a714656f-7a58-4bb4-ac85-8e9273238d13:localhost:node-be544432-affc-4072-ab41-17789346d2c4:Node be544432-affc-4072-ab41-17789346d2c4 :: false |
createNodes | 1.715s |
2022-02-13 21:35:18 |
2022-02-13 21:35:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:35:18 | ------------------------------------ 2022-02-13 21:35:19 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-be544432-affc-4072-ab41-17789346d2c4", "pubsub#title": "Node be544432-affc-4072-ab41-17789346d2c4" } 2022-02-13 21:35:19 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-13 21:35:20 | [Mutex] waiting for: [received:nodes:3adcfd7d-781b-4d38-a384-c5c3fbc921b6:localhost] 2022-02-13 21:35:20 | [Mutex] received everything. 2022-02-13 21:35:20 | [Mutex] isItemNotified: received:node:3adcfd7d-781b-4d38-a384-c5c3fbc921b6:localhost:node-be544432-affc-4072-ab41-17789346d2c4:Node be544432-affc-4072-ab41-17789346d2c4 :: true |
createSubnodes | 1.037s |
2022-02-13 21:35:20 |
2022-02-13 21:35:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:35:20 | ------------------------------------ 2022-02-13 21:35:20 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-8cf6d86e-37a9-4ad7-988d-f23d9e975bac", "pubsub#title": "Node 8cf6d86e-37a9-4ad7-988d-f23d9e975bac" } 2022-02-13 21:35:20 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-13 21:35:21 | [Mutex] waiting for: [received:nodes:cd8ac8f8-a1c1-411d-b692-3b1c7ef680d2:localhost] 2022-02-13 21:35:21 | [Mutex] received everything. 2022-02-13 21:35:21 | [Mutex] isItemNotified: received:node:cd8ac8f8-a1c1-411d-b692-3b1c7ef680d2:localhost:node-8cf6d86e-37a9-4ad7-988d-f23d9e975bac:Node 8cf6d86e-37a9-4ad7-988d-f23d9e975bac :: true |
deleteNodes | 1.035s |
2022-02-13 21:35:26 |
2022-02-13 21:35:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:35:26 | ------------------------------------ 2022-02-13 21:35:26 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8cf6d86e-37a9-4ad7-988d-f23d9e975bac" } 2022-02-13 21:35:26 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-13 21:35:27 | [Mutex] waiting for: [received:nodes:4302d8f2-815e-4a39-88ff-42298e397cc1:localhost] 2022-02-13 21:35:27 | [Mutex] waiting for: [received:nodes:4302d8f2-815e-4a39-88ff-42298e397cc1:localhost] 2022-02-13 21:35:27 | [Mutex] waiting for: [received:nodes:4302d8f2-815e-4a39-88ff-42298e397cc1:localhost] 2022-02-13 21:35:27 | [Mutex] received everything. 2022-02-13 21:35:27 | [Mutex] isItemNotified: received:node:4302d8f2-815e-4a39-88ff-42298e397cc1:localhost:node-8cf6d86e-37a9-4ad7-988d-f23d9e975bac:Node 8cf6d86e-37a9-4ad7-988d-f23d9e975bac :: false |
deleteSubnodes | 1.033s |
2022-02-13 21:35:25 |
2022-02-13 21:35:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:35:25 | ------------------------------------ 2022-02-13 21:35:25 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-be544432-affc-4072-ab41-17789346d2c4" } 2022-02-13 21:35:25 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-13 21:35:26 | [Mutex] waiting for: [received:nodes:66f86429-6b4d-4002-a8ab-8d0d7778da1f:localhost] 2022-02-13 21:35:26 | [Mutex] waiting for: [received:nodes:66f86429-6b4d-4002-a8ab-8d0d7778da1f:localhost] 2022-02-13 21:35:26 | [Mutex] waiting for: [received:nodes:66f86429-6b4d-4002-a8ab-8d0d7778da1f:localhost] 2022-02-13 21:35:26 | [Mutex] received everything. 2022-02-13 21:35:26 | [Mutex] isItemNotified: received:node:66f86429-6b4d-4002-a8ab-8d0d7778da1f:localhost:node-be544432-affc-4072-ab41-17789346d2c4:Node be544432-affc-4072-ab41-17789346d2c4 :: false 2022-02-13 21:35:26 | [Mutex] waiting for: [received:nodes:040d4df0-c4c4-4fb9-b37e-9fbf52ac47ce:localhost] 2022-02-13 21:35:26 | [Mutex] received everything. 2022-02-13 21:35:26 | [Mutex] isItemNotified: received:node:040d4df0-c4c4-4fb9-b37e-9fbf52ac47ce:localhost:node-be544432-affc-4072-ab41-17789346d2c4:Node be544432-affc-4072-ab41-17789346d2c4 :: false |
publishItemsToNodes | 0.071s |
2022-02-13 21:35:23 |
2022-02-13 21:35:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:35:23 | ------------------------------------ 2022-02-13 21:35:23 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-be544432-affc-4072-ab41-17789346d2c4", "entry": "<test>item-d56a5054-edf7-4c62-bedc-a07ef53c0254</test>", "item-id": "item-d56a5054-edf7-4c62-bedc-a07ef53c0254" } 2022-02-13 21:35:23 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d56a5054-edf7-4c62-bedc-a07ef53c0254" } 2022-02-13 21:35:23 | [Mutex] waiting for: [published:item:notifieditem-d56a5054-edf7-4c62-bedc-a07ef53c0254:admin@test-domain.com] 2022-02-13 21:35:23 | [Mutex] received everything. 2022-02-13 21:35:23 | [Mutex] isItemNotified: published:item:notifieditem-d56a5054-edf7-4c62-bedc-a07ef53c0254:admin@test-domain.com :: true |
retractItemsFromNodes | 0.099s |
2022-02-13 21:35:23 |
2022-02-13 21:35:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:35:23 | ------------------------------------ 2022-02-13 21:35:23 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-be544432-affc-4072-ab41-17789346d2c4", "item-id": "item-d56a5054-edf7-4c62-bedc-a07ef53c0254" } 2022-02-13 21:35:23 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d56a5054-edf7-4c62-bedc-a07ef53c0254" } 2022-02-13 21:35:23 | [Mutex] waiting for: [retracted:item:notifieditem-d56a5054-edf7-4c62-bedc-a07ef53c0254:admin@test-domain.com] 2022-02-13 21:35:24 | [Mutex] received everything. 2022-02-13 21:35:24 | [Mutex] isItemNotified: retracted:item:notifieditem-d56a5054-edf7-4c62-bedc-a07ef53c0254:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.053s |
2022-02-13 21:35:23 |
2022-02-13 21:35:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:35:23 | ------------------------------------ 2022-02-13 21:35:23 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-be544432-affc-4072-ab41-17789346d2c4", "item-id": "item-d56a5054-edf7-4c62-bedc-a07ef53c0254" } 2022-02-13 21:35:23 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-be544432-affc-4072-ab41-17789346d2c4", "item-id": "item-d56a5054-edf7-4c62-bedc-a07ef53c0254", "item": [ "<item id=\"item-d56a5054-edf7-4c62-bedc-a07ef53c0254\"><test>item-d56a5054-edf7-4c62-bedc-a07ef53c0254</test></item>" ] } 2022-02-13 21:35:23 | [Mutex] notify: [retrieved:item:item-d56a5054-edf7-4c62-bedc-a07ef53c0254:payload-matches:true:localhost] 2022-02-13 21:35:23 | [Mutex] received everything. 2022-02-13 21:35:23 | [Mutex] isItemNotified: retrieved:item:item-d56a5054-edf7-4c62-bedc-a07ef53c0254:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2022-02-13 21:35:23 |
2022-02-13 21:35:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:35:23 | ------------------------------------ 2022-02-13 21:35:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-13 21:35:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-8cf6d86e-37a9-4ad7-988d-f23d9e975bac", "test", "node-be544432-affc-4072-ab41-17789346d2c4" ] } |
retrieveUserSubscriptionsWithRegex | 0.056s |
2022-02-13 21:35:23 |
2022-02-13 21:35:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:35:23 | ------------------------------------ 2022-02-13 21:35:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-be544432-affc-4072-ab41-17789346d2c4)" } 2022-02-13 21:35:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-02-13 21:35:22 |
2022-02-13 21:35:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:35:22 | ------------------------------------ 2022-02-13 21:35:22 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-be544432-affc-4072-ab41-17789346d2c4", "jids": [ "admin@test-domain.com" ] } 2022-02-13 21:35:22 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.052s |
2022-02-13 21:35:24 |
2022-02-13 21:35:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:35:24 | ------------------------------------ 2022-02-13 21:35:24 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-be544432-affc-4072-ab41-17789346d2c4", "jids": [ "admin@test-domain.com" ] } 2022-02-13 21:35:24 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |