Test duration : 8.721s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.110s |
2022-05-17 22:40:15 |
2022-05-17 22:40:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:40:15 | ------------------------------------ 2022-05-17 22:40:15 | [Mutex] waiting for: [configured:node:node-b6d3ce33-ecfb-4370-802c-1c921e58ed14:node-a7314690-0877-4d8e-8ebe-eabaf86d9575] 2022-05-17 22:40:15 | [Mutex] received everything. 2022-05-17 22:40:15 | [Mutex] isItemNotified: configured:node:node-b6d3ce33-ecfb-4370-802c-1c921e58ed14:node-a7314690-0877-4d8e-8ebe-eabaf86d9575 :: true 2022-05-17 22:40:16 | [Mutex] waiting for: [received:nodes:a94d919d-df9a-487e-8665-8dc76f17ee68:localhost] 2022-05-17 22:40:16 | [Mutex] received everything. 2022-05-17 22:40:16 | [Mutex] isItemNotified: received:node:a94d919d-df9a-487e-8665-8dc76f17ee68:localhost:node-b6d3ce33-ecfb-4370-802c-1c921e58ed14:Node b6d3ce33-ecfb-4370-802c-1c921e58ed14 :: true 2022-05-17 22:40:16 | [Mutex] waiting for: [received:nodes:7a1b0eae-b5ef-45a4-928b-2827ab2cbf89:localhost] 2022-05-17 22:40:16 | [Mutex] waiting for: [received:nodes:7a1b0eae-b5ef-45a4-928b-2827ab2cbf89:localhost] 2022-05-17 22:40:16 | [Mutex] received everything. 2022-05-17 22:40:16 | [Mutex] isItemNotified: received:node:7a1b0eae-b5ef-45a4-928b-2827ab2cbf89:localhost:node-b6d3ce33-ecfb-4370-802c-1c921e58ed14:Node b6d3ce33-ecfb-4370-802c-1c921e58ed14 :: false |
createNodes | 1.630s |
2022-05-17 22:40:12 |
2022-05-17 22:40:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:40:12 | ------------------------------------ 2022-05-17 22:40:13 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-b6d3ce33-ecfb-4370-802c-1c921e58ed14", "pubsub#title": "Node b6d3ce33-ecfb-4370-802c-1c921e58ed14" } 2022-05-17 22:40:13 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-17 22:40:14 | [Mutex] waiting for: [received:nodes:0cd560dc-783a-428d-90ee-a40342e02368:localhost] 2022-05-17 22:40:14 | [Mutex] waiting for: [received:nodes:0cd560dc-783a-428d-90ee-a40342e02368:localhost] 2022-05-17 22:40:14 | [Mutex] received everything. 2022-05-17 22:40:14 | [Mutex] isItemNotified: received:node:0cd560dc-783a-428d-90ee-a40342e02368:localhost:node-b6d3ce33-ecfb-4370-802c-1c921e58ed14:Node b6d3ce33-ecfb-4370-802c-1c921e58ed14 :: true |
createSubnodes | 1.033s |
2022-05-17 22:40:14 |
2022-05-17 22:40:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:40:14 | ------------------------------------ 2022-05-17 22:40:14 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-a7314690-0877-4d8e-8ebe-eabaf86d9575", "pubsub#title": "Node a7314690-0877-4d8e-8ebe-eabaf86d9575" } 2022-05-17 22:40:14 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-17 22:40:15 | [Mutex] waiting for: [received:nodes:2450064f-2a27-4d3f-8500-8683c398404a:localhost] 2022-05-17 22:40:15 | [Mutex] received everything. 2022-05-17 22:40:15 | [Mutex] isItemNotified: received:node:2450064f-2a27-4d3f-8500-8683c398404a:localhost:node-a7314690-0877-4d8e-8ebe-eabaf86d9575:Node a7314690-0877-4d8e-8ebe-eabaf86d9575 :: true |
deleteNodes | 1.029s |
2022-05-17 22:40:19 |
2022-05-17 22:40:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:40:19 | ------------------------------------ 2022-05-17 22:40:19 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a7314690-0877-4d8e-8ebe-eabaf86d9575" } 2022-05-17 22:40:19 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-17 22:40:20 | [Mutex] waiting for: [received:nodes:c95b49c5-612d-47a4-9c34-e928af8b5ad5:localhost] 2022-05-17 22:40:20 | [Mutex] waiting for: [received:nodes:c95b49c5-612d-47a4-9c34-e928af8b5ad5:localhost] 2022-05-17 22:40:20 | [Mutex] received everything. 2022-05-17 22:40:20 | [Mutex] isItemNotified: received:node:c95b49c5-612d-47a4-9c34-e928af8b5ad5:localhost:node-a7314690-0877-4d8e-8ebe-eabaf86d9575:Node a7314690-0877-4d8e-8ebe-eabaf86d9575 :: false |
deleteSubnodes | 1.029s |
2022-05-17 22:40:18 |
2022-05-17 22:40:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:40:18 | ------------------------------------ 2022-05-17 22:40:18 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b6d3ce33-ecfb-4370-802c-1c921e58ed14" } 2022-05-17 22:40:18 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-17 22:40:19 | [Mutex] waiting for: [received:nodes:799782da-b791-4654-8dd2-09ed692947e4:localhost] 2022-05-17 22:40:19 | [Mutex] received everything. 2022-05-17 22:40:19 | [Mutex] isItemNotified: received:node:799782da-b791-4654-8dd2-09ed692947e4:localhost:node-b6d3ce33-ecfb-4370-802c-1c921e58ed14:Node b6d3ce33-ecfb-4370-802c-1c921e58ed14 :: false 2022-05-17 22:40:19 | [Mutex] waiting for: [received:nodes:03a0ed9a-9829-4708-9e72-cc91e639f6d8:localhost] 2022-05-17 22:40:19 | [Mutex] received everything. 2022-05-17 22:40:19 | [Mutex] isItemNotified: received:node:03a0ed9a-9829-4708-9e72-cc91e639f6d8:localhost:node-b6d3ce33-ecfb-4370-802c-1c921e58ed14:Node b6d3ce33-ecfb-4370-802c-1c921e58ed14 :: false |
publishItemsToNodes | 0.056s |
2022-05-17 22:40:17 |
2022-05-17 22:40:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:40:17 | ------------------------------------ 2022-05-17 22:40:17 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-b6d3ce33-ecfb-4370-802c-1c921e58ed14", "entry": "<test>item-1aafa21e-e140-4c3e-a68a-41221df053b2</test>", "item-id": "item-1aafa21e-e140-4c3e-a68a-41221df053b2" } 2022-05-17 22:40:17 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1aafa21e-e140-4c3e-a68a-41221df053b2" } 2022-05-17 22:40:17 | [Mutex] waiting for: [published:item:notifieditem-1aafa21e-e140-4c3e-a68a-41221df053b2:admin@test-domain.com] 2022-05-17 22:40:17 | [Mutex] received everything. 2022-05-17 22:40:17 | [Mutex] isItemNotified: published:item:notifieditem-1aafa21e-e140-4c3e-a68a-41221df053b2:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-05-17 22:40:17 |
2022-05-17 22:40:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:40:17 | ------------------------------------ 2022-05-17 22:40:17 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-b6d3ce33-ecfb-4370-802c-1c921e58ed14", "item-id": "item-1aafa21e-e140-4c3e-a68a-41221df053b2" } 2022-05-17 22:40:17 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1aafa21e-e140-4c3e-a68a-41221df053b2" } 2022-05-17 22:40:17 | [Mutex] received everything. 2022-05-17 22:40:17 | [Mutex] isItemNotified: retracted:item:notifieditem-1aafa21e-e140-4c3e-a68a-41221df053b2:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.066s |
2022-05-17 22:40:17 |
2022-05-17 22:40:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:40:17 | ------------------------------------ 2022-05-17 22:40:17 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-b6d3ce33-ecfb-4370-802c-1c921e58ed14", "item-id": "item-1aafa21e-e140-4c3e-a68a-41221df053b2" } 2022-05-17 22:40:17 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-b6d3ce33-ecfb-4370-802c-1c921e58ed14", "item-id": "item-1aafa21e-e140-4c3e-a68a-41221df053b2", "item": [ "<item id=\"item-1aafa21e-e140-4c3e-a68a-41221df053b2\"><test>item-1aafa21e-e140-4c3e-a68a-41221df053b2</test></item>" ] } 2022-05-17 22:40:17 | [Mutex] notify: [retrieved:item:item-1aafa21e-e140-4c3e-a68a-41221df053b2:payload-matches:true:localhost] 2022-05-17 22:40:17 | [Mutex] received everything. 2022-05-17 22:40:17 | [Mutex] isItemNotified: retrieved:item:item-1aafa21e-e140-4c3e-a68a-41221df053b2:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-05-17 22:40:17 |
2022-05-17 22:40:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:40:17 | ------------------------------------ 2022-05-17 22:40:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-17 22:40:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-a7314690-0877-4d8e-8ebe-eabaf86d9575", "test", "node-b6d3ce33-ecfb-4370-802c-1c921e58ed14" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-05-17 22:40:17 |
2022-05-17 22:40:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:40:17 | ------------------------------------ 2022-05-17 22:40:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-b6d3ce33-ecfb-4370-802c-1c921e58ed14)" } 2022-05-17 22:40:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2022-05-17 22:40:16 |
2022-05-17 22:40:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:40:16 | ------------------------------------ 2022-05-17 22:40:16 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-b6d3ce33-ecfb-4370-802c-1c921e58ed14", "jids": [ "admin@test-domain.com" ] } 2022-05-17 22:40:16 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2022-05-17 22:40:17 |
2022-05-17 22:40:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:40:17 | ------------------------------------ 2022-05-17 22:40:17 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-b6d3ce33-ecfb-4370-802c-1c921e58ed14", "jids": [ "admin@test-domain.com" ] } 2022-05-17 22:40:17 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |