Test duration : 8.777s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.094s |
2022-05-19 22:50:37 |
2022-05-19 22:50:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-19 22:50:37 | ------------------------------------ 2022-05-19 22:50:37 | [Mutex] waiting for: [configured:node:node-6d3ce170-51d5-41d5-ba4a-13b137318516:node-d4351e81-b9b0-433c-a6e0-96653c9d9013] 2022-05-19 22:50:37 | [Mutex] received everything. 2022-05-19 22:50:37 | [Mutex] isItemNotified: configured:node:node-6d3ce170-51d5-41d5-ba4a-13b137318516:node-d4351e81-b9b0-433c-a6e0-96653c9d9013 :: true 2022-05-19 22:50:38 | [Mutex] waiting for: [received:nodes:4af7af3d-dbe3-4744-a854-058d0a9e7534:localhost] 2022-05-19 22:50:38 | [Mutex] received everything. 2022-05-19 22:50:38 | [Mutex] isItemNotified: received:node:4af7af3d-dbe3-4744-a854-058d0a9e7534:localhost:node-6d3ce170-51d5-41d5-ba4a-13b137318516:Node 6d3ce170-51d5-41d5-ba4a-13b137318516 :: true 2022-05-19 22:50:38 | [Mutex] waiting for: [received:nodes:610a7bb7-9db7-4e8d-8adf-d41acb092ca4:localhost] 2022-05-19 22:50:38 | [Mutex] waiting for: [received:nodes:610a7bb7-9db7-4e8d-8adf-d41acb092ca4:localhost] 2022-05-19 22:50:38 | [Mutex] received everything. 2022-05-19 22:50:38 | [Mutex] isItemNotified: received:node:610a7bb7-9db7-4e8d-8adf-d41acb092ca4:localhost:node-6d3ce170-51d5-41d5-ba4a-13b137318516:Node 6d3ce170-51d5-41d5-ba4a-13b137318516 :: false |
createNodes | 1.676s |
2022-05-19 22:50:35 |
2022-05-19 22:50:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-19 22:50:35 | ------------------------------------ 2022-05-19 22:50:35 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-6d3ce170-51d5-41d5-ba4a-13b137318516", "pubsub#title": "Node 6d3ce170-51d5-41d5-ba4a-13b137318516" } 2022-05-19 22:50:35 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-19 22:50:36 | [Mutex] waiting for: [received:nodes:0cde4d96-1794-4fd8-bef8-54fb547b4614:localhost] 2022-05-19 22:50:36 | [Mutex] waiting for: [received:nodes:0cde4d96-1794-4fd8-bef8-54fb547b4614:localhost] 2022-05-19 22:50:36 | [Mutex] received everything. 2022-05-19 22:50:36 | [Mutex] isItemNotified: received:node:0cde4d96-1794-4fd8-bef8-54fb547b4614:localhost:node-6d3ce170-51d5-41d5-ba4a-13b137318516:Node 6d3ce170-51d5-41d5-ba4a-13b137318516 :: true |
createSubnodes | 1.022s |
2022-05-19 22:50:36 |
2022-05-19 22:50:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-19 22:50:36 | ------------------------------------ 2022-05-19 22:50:36 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-d4351e81-b9b0-433c-a6e0-96653c9d9013", "pubsub#title": "Node d4351e81-b9b0-433c-a6e0-96653c9d9013" } 2022-05-19 22:50:36 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-19 22:50:37 | [Mutex] waiting for: [received:nodes:5e37a02f-8632-4517-a69e-af3ffe13c0dd:localhost] 2022-05-19 22:50:37 | [Mutex] received everything. 2022-05-19 22:50:37 | [Mutex] isItemNotified: received:node:5e37a02f-8632-4517-a69e-af3ffe13c0dd:localhost:node-d4351e81-b9b0-433c-a6e0-96653c9d9013:Node d4351e81-b9b0-433c-a6e0-96653c9d9013 :: true |
deleteNodes | 1.017s |
2022-05-19 22:50:42 |
2022-05-19 22:50:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-19 22:50:42 | ------------------------------------ 2022-05-19 22:50:42 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d4351e81-b9b0-433c-a6e0-96653c9d9013" } 2022-05-19 22:50:42 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-19 22:50:43 | [Mutex] waiting for: [received:nodes:d5f6a360-f164-466b-810c-2d54b5e9c661:localhost] 2022-05-19 22:50:43 | [Mutex] waiting for: [received:nodes:d5f6a360-f164-466b-810c-2d54b5e9c661:localhost] 2022-05-19 22:50:43 | [Mutex] received everything. 2022-05-19 22:50:43 | [Mutex] isItemNotified: received:node:d5f6a360-f164-466b-810c-2d54b5e9c661:localhost:node-d4351e81-b9b0-433c-a6e0-96653c9d9013:Node d4351e81-b9b0-433c-a6e0-96653c9d9013 :: false |
deleteSubnodes | 1.028s |
2022-05-19 22:50:41 |
2022-05-19 22:50:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-19 22:50:41 | ------------------------------------ 2022-05-19 22:50:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6d3ce170-51d5-41d5-ba4a-13b137318516" } 2022-05-19 22:50:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-19 22:50:42 | [Mutex] waiting for: [received:nodes:01ec6809-3c67-4104-82b6-4d53dd8c27f3:localhost] 2022-05-19 22:50:42 | [Mutex] received everything. 2022-05-19 22:50:42 | [Mutex] isItemNotified: received:node:01ec6809-3c67-4104-82b6-4d53dd8c27f3:localhost:node-6d3ce170-51d5-41d5-ba4a-13b137318516:Node 6d3ce170-51d5-41d5-ba4a-13b137318516 :: false 2022-05-19 22:50:42 | [Mutex] waiting for: [received:nodes:19730fe6-f4fe-421b-95d0-dbd7bc2c42de:localhost] 2022-05-19 22:50:42 | [Mutex] received everything. 2022-05-19 22:50:42 | [Mutex] isItemNotified: received:node:19730fe6-f4fe-421b-95d0-dbd7bc2c42de:localhost:node-6d3ce170-51d5-41d5-ba4a-13b137318516:Node 6d3ce170-51d5-41d5-ba4a-13b137318516 :: false |
publishItemsToNodes | 0.041s |
2022-05-19 22:50:39 |
2022-05-19 22:50:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-19 22:50:39 | ------------------------------------ 2022-05-19 22:50:39 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-6d3ce170-51d5-41d5-ba4a-13b137318516", "entry": "<test>item-4062a460-fb91-413d-b1f9-ca19acc8dfff</test>", "item-id": "item-4062a460-fb91-413d-b1f9-ca19acc8dfff" } 2022-05-19 22:50:39 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4062a460-fb91-413d-b1f9-ca19acc8dfff" } 2022-05-19 22:50:39 | [Mutex] waiting for: [published:item:notifieditem-4062a460-fb91-413d-b1f9-ca19acc8dfff:admin@test-domain.com] 2022-05-19 22:50:39 | [Mutex] received everything. 2022-05-19 22:50:39 | [Mutex] isItemNotified: published:item:notifieditem-4062a460-fb91-413d-b1f9-ca19acc8dfff:admin@test-domain.com :: true |
retractItemsFromNodes | 0.062s |
2022-05-19 22:50:40 |
2022-05-19 22:50:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-19 22:50:40 | ------------------------------------ 2022-05-19 22:50:40 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-6d3ce170-51d5-41d5-ba4a-13b137318516", "item-id": "item-4062a460-fb91-413d-b1f9-ca19acc8dfff" } 2022-05-19 22:50:40 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4062a460-fb91-413d-b1f9-ca19acc8dfff" } 2022-05-19 22:50:40 | [Mutex] received everything. 2022-05-19 22:50:40 | [Mutex] isItemNotified: retracted:item:notifieditem-4062a460-fb91-413d-b1f9-ca19acc8dfff:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.054s |
2022-05-19 22:50:39 |
2022-05-19 22:50:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-19 22:50:39 | ------------------------------------ 2022-05-19 22:50:39 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-6d3ce170-51d5-41d5-ba4a-13b137318516", "item-id": "item-4062a460-fb91-413d-b1f9-ca19acc8dfff" } 2022-05-19 22:50:39 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-6d3ce170-51d5-41d5-ba4a-13b137318516", "item-id": "item-4062a460-fb91-413d-b1f9-ca19acc8dfff", "item": [ "<item id=\"item-4062a460-fb91-413d-b1f9-ca19acc8dfff\"><test>item-4062a460-fb91-413d-b1f9-ca19acc8dfff</test></item>" ] } 2022-05-19 22:50:39 | [Mutex] notify: [retrieved:item:item-4062a460-fb91-413d-b1f9-ca19acc8dfff:payload-matches:true:localhost] 2022-05-19 22:50:39 | [Mutex] received everything. 2022-05-19 22:50:39 | [Mutex] isItemNotified: retrieved:item:item-4062a460-fb91-413d-b1f9-ca19acc8dfff:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-05-19 22:50:39 |
2022-05-19 22:50:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-19 22:50:39 | ------------------------------------ 2022-05-19 22:50:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-19 22:50:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-6d3ce170-51d5-41d5-ba4a-13b137318516", "node-d4351e81-b9b0-433c-a6e0-96653c9d9013" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-05-19 22:50:40 |
2022-05-19 22:50:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-19 22:50:40 | ------------------------------------ 2022-05-19 22:50:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-6d3ce170-51d5-41d5-ba4a-13b137318516)" } 2022-05-19 22:50:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-05-19 22:50:38 |
2022-05-19 22:50:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-19 22:50:38 | ------------------------------------ 2022-05-19 22:50:38 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-6d3ce170-51d5-41d5-ba4a-13b137318516", "jids": [ "admin@test-domain.com" ] } 2022-05-19 22:50:38 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.116s |
2022-05-19 22:50:40 |
2022-05-19 22:50:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-19 22:50:40 | ------------------------------------ 2022-05-19 22:50:40 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-6d3ce170-51d5-41d5-ba4a-13b137318516", "jids": [ "admin@test-domain.com" ] } 2022-05-19 22:50:40 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |