Test duration : 9.037s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.095s |
2021-05-27 10:00:27 |
2021-05-27 10:00:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:00:27 | ------------------------------------ 2021-05-27 10:00:27 | [Mutex] waiting for: [configured:node:node-702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b:node-b1cf6c18-e82a-40d7-9460-1d0b306386a0] 2021-05-27 10:00:27 | [Mutex] received everything. 2021-05-27 10:00:27 | [Mutex] isItemNotified: configured:node:node-702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b:node-b1cf6c18-e82a-40d7-9460-1d0b306386a0 :: true 2021-05-27 10:00:28 | [Mutex] waiting for: [received:nodes:e90d56e1-c924-4309-b64a-2b93b7f541d7:localhost] 2021-05-27 10:00:28 | [Mutex] received everything. 2021-05-27 10:00:28 | [Mutex] isItemNotified: received:node:e90d56e1-c924-4309-b64a-2b93b7f541d7:localhost:node-702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b:Node 702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b :: true 2021-05-27 10:00:28 | [Mutex] waiting for: [received:nodes:0a0735fc-acb7-4bf8-b568-8bab98f88d48:localhost] 2021-05-27 10:00:28 | [Mutex] received everything. 2021-05-27 10:00:28 | [Mutex] isItemNotified: received:node:0a0735fc-acb7-4bf8-b568-8bab98f88d48:localhost:node-702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b:Node 702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b :: false |
createNodes | 1.667s |
2021-05-27 10:00:24 |
2021-05-27 10:00:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:00:24 | ------------------------------------ 2021-05-27 10:00:25 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b", "pubsub#title": "Node 702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b" } 2021-05-27 10:00:25 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-27 10:00:26 | [Mutex] waiting for: [received:nodes:cfe42d26-42f1-42ef-9c03-0fccebee4e6c:localhost] 2021-05-27 10:00:26 | [Mutex] received everything. 2021-05-27 10:00:26 | [Mutex] isItemNotified: received:node:cfe42d26-42f1-42ef-9c03-0fccebee4e6c:localhost:node-702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b:Node 702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b :: true |
createSubnodes | 1.026s |
2021-05-27 10:00:26 |
2021-05-27 10:00:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:00:26 | ------------------------------------ 2021-05-27 10:00:26 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-b1cf6c18-e82a-40d7-9460-1d0b306386a0", "pubsub#title": "Node b1cf6c18-e82a-40d7-9460-1d0b306386a0" } 2021-05-27 10:00:26 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-27 10:00:27 | [Mutex] waiting for: [received:nodes:ac5e3120-c506-4b13-a2f5-a2bc01e63319:localhost] 2021-05-27 10:00:27 | [Mutex] received everything. 2021-05-27 10:00:27 | [Mutex] isItemNotified: received:node:ac5e3120-c506-4b13-a2f5-a2bc01e63319:localhost:node-b1cf6c18-e82a-40d7-9460-1d0b306386a0:Node b1cf6c18-e82a-40d7-9460-1d0b306386a0 :: true |
deleteNodes | 1.021s |
2021-05-27 10:00:31 |
2021-05-27 10:00:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:00:31 | ------------------------------------ 2021-05-27 10:00:31 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b1cf6c18-e82a-40d7-9460-1d0b306386a0" } 2021-05-27 10:00:31 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-27 10:00:32 | [Mutex] waiting for: [received:nodes:e15ec3d1-1b04-482c-beda-b0decf753d0f:localhost] 2021-05-27 10:00:32 | [Mutex] received everything. 2021-05-27 10:00:32 | [Mutex] isItemNotified: received:node:e15ec3d1-1b04-482c-beda-b0decf753d0f:localhost:node-b1cf6c18-e82a-40d7-9460-1d0b306386a0:Node b1cf6c18-e82a-40d7-9460-1d0b306386a0 :: false |
deleteSubnodes | 1.026s |
2021-05-27 10:00:30 |
2021-05-27 10:00:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:00:30 | ------------------------------------ 2021-05-27 10:00:30 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b" } 2021-05-27 10:00:30 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-27 10:00:31 | [Mutex] waiting for: [received:nodes:830e098b-ed62-4103-ab73-413244972ca9:localhost] 2021-05-27 10:00:31 | [Mutex] received everything. 2021-05-27 10:00:31 | [Mutex] isItemNotified: received:node:830e098b-ed62-4103-ab73-413244972ca9:localhost:node-702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b:Node 702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b :: false 2021-05-27 10:00:31 | [Mutex] waiting for: [received:nodes:db5d553b-1dc5-46c9-be3d-70c7227d2fbe:localhost] 2021-05-27 10:00:31 | [Mutex] received everything. 2021-05-27 10:00:31 | [Mutex] isItemNotified: received:node:db5d553b-1dc5-46c9-be3d-70c7227d2fbe:localhost:node-702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b:Node 702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b :: false |
publishItemsToNodes | 0.073s |
2021-05-27 10:00:29 |
2021-05-27 10:00:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:00:29 | ------------------------------------ 2021-05-27 10:00:29 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b", "entry": "<test>item-0beca157-eb27-4204-b8b4-47ae02965cb8</test>", "item-id": "item-0beca157-eb27-4204-b8b4-47ae02965cb8" } 2021-05-27 10:00:29 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0beca157-eb27-4204-b8b4-47ae02965cb8" } 2021-05-27 10:00:29 | [Mutex] waiting for: [published:item:notifieditem-0beca157-eb27-4204-b8b4-47ae02965cb8:admin@test-domain.com] 2021-05-27 10:00:29 | [Mutex] received everything. 2021-05-27 10:00:29 | [Mutex] isItemNotified: published:item:notifieditem-0beca157-eb27-4204-b8b4-47ae02965cb8:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2021-05-27 10:00:29 |
2021-05-27 10:00:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:00:29 | ------------------------------------ 2021-05-27 10:00:29 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b", "item-id": "item-0beca157-eb27-4204-b8b4-47ae02965cb8" } 2021-05-27 10:00:29 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0beca157-eb27-4204-b8b4-47ae02965cb8" } 2021-05-27 10:00:29 | [Mutex] received everything. 2021-05-27 10:00:29 | [Mutex] isItemNotified: retracted:item:notifieditem-0beca157-eb27-4204-b8b4-47ae02965cb8:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.082s |
2021-05-27 10:00:29 |
2021-05-27 10:00:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:00:29 | ------------------------------------ 2021-05-27 10:00:29 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b", "item-id": "item-0beca157-eb27-4204-b8b4-47ae02965cb8" } 2021-05-27 10:00:29 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b", "item-id": "item-0beca157-eb27-4204-b8b4-47ae02965cb8", "item": [ "<item id=\"item-0beca157-eb27-4204-b8b4-47ae02965cb8\"><test>item-0beca157-eb27-4204-b8b4-47ae02965cb8</test></item>" ] } 2021-05-27 10:00:29 | [Mutex] notify: [retrieved:item:item-0beca157-eb27-4204-b8b4-47ae02965cb8:payload-matches:true:localhost] 2021-05-27 10:00:29 | [Mutex] received everything. 2021-05-27 10:00:29 | [Mutex] isItemNotified: retrieved:item:item-0beca157-eb27-4204-b8b4-47ae02965cb8:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2021-05-27 10:00:29 |
2021-05-27 10:00:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:00:29 | ------------------------------------ 2021-05-27 10:00:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-05-27 10:00:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-b1cf6c18-e82a-40d7-9460-1d0b306386a0", "node-702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2021-05-27 10:00:29 |
2021-05-27 10:00:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:00:29 | ------------------------------------ 2021-05-27 10:00:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b)" } 2021-05-27 10:00:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2021-05-27 10:00:28 |
2021-05-27 10:00:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:00:28 | ------------------------------------ 2021-05-27 10:00:28 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b", "jids": [ "admin@test-domain.com" ] } 2021-05-27 10:00:28 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.099s |
2021-05-27 10:00:29 |
2021-05-27 10:00:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:00:29 | ------------------------------------ 2021-05-27 10:00:29 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-702dfb94-1b8c-47a9-a8f5-256b5b9f0e0b", "jids": [ "admin@test-domain.com" ] } 2021-05-27 10:00:29 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |