Test duration : 8.646s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.110s |
2022-07-05 23:08:07 |
2022-07-05 23:08:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:08:07 | ------------------------------------ 2022-07-05 23:08:07 | [Mutex] waiting for: [configured:node:node-ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1:node-f166f001-0127-4fcb-8729-c6cde6ebe6e1] 2022-07-05 23:08:07 | [Mutex] received everything. 2022-07-05 23:08:07 | [Mutex] isItemNotified: configured:node:node-ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1:node-f166f001-0127-4fcb-8729-c6cde6ebe6e1 :: true 2022-07-05 23:08:08 | [Mutex] waiting for: [received:nodes:2b064f9d-c33c-4db9-9ef9-f4fe995582c1:localhost] 2022-07-05 23:08:08 | [Mutex] received everything. 2022-07-05 23:08:08 | [Mutex] isItemNotified: received:node:2b064f9d-c33c-4db9-9ef9-f4fe995582c1:localhost:node-ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1:Node ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1 :: true 2022-07-05 23:08:08 | [Mutex] waiting for: [received:nodes:b61331f2-81ed-449e-9680-2d538b09d55b:localhost] 2022-07-05 23:08:08 | [Mutex] received everything. 2022-07-05 23:08:08 | [Mutex] isItemNotified: received:node:b61331f2-81ed-449e-9680-2d538b09d55b:localhost:node-ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1:Node ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1 :: false |
createNodes | 1.612s |
2022-07-05 23:08:04 |
2022-07-05 23:08:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:08:04 | ------------------------------------ 2022-07-05 23:08:05 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1", "pubsub#title": "Node ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1" } 2022-07-05 23:08:05 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-05 23:08:06 | [Mutex] waiting for: [received:nodes:f5d65766-3975-445b-aeee-f335339497e1:localhost] 2022-07-05 23:08:06 | [Mutex] waiting for: [received:nodes:f5d65766-3975-445b-aeee-f335339497e1:localhost] 2022-07-05 23:08:06 | [Mutex] received everything. 2022-07-05 23:08:06 | [Mutex] isItemNotified: received:node:f5d65766-3975-445b-aeee-f335339497e1:localhost:node-ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1:Node ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1 :: true |
createSubnodes | 1.021s |
2022-07-05 23:08:06 |
2022-07-05 23:08:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:08:06 | ------------------------------------ 2022-07-05 23:08:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-f166f001-0127-4fcb-8729-c6cde6ebe6e1", "pubsub#title": "Node f166f001-0127-4fcb-8729-c6cde6ebe6e1" } 2022-07-05 23:08:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-05 23:08:07 | [Mutex] waiting for: [received:nodes:f509b57a-eccc-4532-9032-ffc6a09dc9fb:localhost] 2022-07-05 23:08:07 | [Mutex] waiting for: [received:nodes:f509b57a-eccc-4532-9032-ffc6a09dc9fb:localhost] 2022-07-05 23:08:07 | [Mutex] received everything. 2022-07-05 23:08:07 | [Mutex] isItemNotified: received:node:f509b57a-eccc-4532-9032-ffc6a09dc9fb:localhost:node-f166f001-0127-4fcb-8729-c6cde6ebe6e1:Node f166f001-0127-4fcb-8729-c6cde6ebe6e1 :: true |
deleteNodes | 1.022s |
2022-07-05 23:08:11 |
2022-07-05 23:08:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:08:11 | ------------------------------------ 2022-07-05 23:08:11 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f166f001-0127-4fcb-8729-c6cde6ebe6e1" } 2022-07-05 23:08:11 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-05 23:08:12 | [Mutex] waiting for: [received:nodes:90e835fa-46a9-4556-bf9d-0abb9873ce76:localhost] 2022-07-05 23:08:12 | [Mutex] received everything. 2022-07-05 23:08:12 | [Mutex] isItemNotified: received:node:90e835fa-46a9-4556-bf9d-0abb9873ce76:localhost:node-f166f001-0127-4fcb-8729-c6cde6ebe6e1:Node f166f001-0127-4fcb-8729-c6cde6ebe6e1 :: false |
deleteSubnodes | 1.027s |
2022-07-05 23:08:10 |
2022-07-05 23:08:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:08:10 | ------------------------------------ 2022-07-05 23:08:10 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1" } 2022-07-05 23:08:10 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-05 23:08:11 | [Mutex] waiting for: [received:nodes:7eadea29-b3b2-4d58-b8c5-d589e091ac18:localhost] 2022-07-05 23:08:11 | [Mutex] received everything. 2022-07-05 23:08:11 | [Mutex] isItemNotified: received:node:7eadea29-b3b2-4d58-b8c5-d589e091ac18:localhost:node-ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1:Node ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1 :: false 2022-07-05 23:08:11 | [Mutex] waiting for: [received:nodes:fdf7348e-f6cc-433a-972c-df9b664337e3:localhost] 2022-07-05 23:08:11 | [Mutex] received everything. 2022-07-05 23:08:11 | [Mutex] isItemNotified: received:node:fdf7348e-f6cc-433a-972c-df9b664337e3:localhost:node-ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1:Node ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1 :: false |
publishItemsToNodes | 0.053s |
2022-07-05 23:08:09 |
2022-07-05 23:08:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:08:09 | ------------------------------------ 2022-07-05 23:08:09 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1", "entry": "<test>item-9bd852de-2089-4861-8767-741b9a672bbe</test>", "item-id": "item-9bd852de-2089-4861-8767-741b9a672bbe" } 2022-07-05 23:08:09 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9bd852de-2089-4861-8767-741b9a672bbe" } 2022-07-05 23:08:09 | [Mutex] waiting for: [published:item:notifieditem-9bd852de-2089-4861-8767-741b9a672bbe:admin@test-domain.com] 2022-07-05 23:08:09 | [Mutex] received everything. 2022-07-05 23:08:09 | [Mutex] isItemNotified: published:item:notifieditem-9bd852de-2089-4861-8767-741b9a672bbe:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-07-05 23:08:09 |
2022-07-05 23:08:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:08:09 | ------------------------------------ 2022-07-05 23:08:09 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1", "item-id": "item-9bd852de-2089-4861-8767-741b9a672bbe" } 2022-07-05 23:08:09 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9bd852de-2089-4861-8767-741b9a672bbe" } 2022-07-05 23:08:09 | [Mutex] received everything. 2022-07-05 23:08:09 | [Mutex] isItemNotified: retracted:item:notifieditem-9bd852de-2089-4861-8767-741b9a672bbe:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.017s |
2022-07-05 23:08:09 |
2022-07-05 23:08:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:08:09 | ------------------------------------ 2022-07-05 23:08:09 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1", "item-id": "item-9bd852de-2089-4861-8767-741b9a672bbe" } 2022-07-05 23:08:09 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1", "item-id": "item-9bd852de-2089-4861-8767-741b9a672bbe", "item": [ "<item id=\"item-9bd852de-2089-4861-8767-741b9a672bbe\"><test>item-9bd852de-2089-4861-8767-741b9a672bbe</test></item>" ] } 2022-07-05 23:08:09 | [Mutex] notify: [retrieved:item:item-9bd852de-2089-4861-8767-741b9a672bbe:payload-matches:true:localhost] 2022-07-05 23:08:09 | [Mutex] received everything. 2022-07-05 23:08:09 | [Mutex] isItemNotified: retrieved:item:item-9bd852de-2089-4861-8767-741b9a672bbe:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.077s |
2022-07-05 23:08:09 |
2022-07-05 23:08:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:08:09 | ------------------------------------ 2022-07-05 23:08:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-05 23:08:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-f166f001-0127-4fcb-8729-c6cde6ebe6e1", "test", "node-ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-07-05 23:08:09 |
2022-07-05 23:08:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:08:09 | ------------------------------------ 2022-07-05 23:08:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1)" } 2022-07-05 23:08:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2022-07-05 23:08:08 |
2022-07-05 23:08:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:08:08 | ------------------------------------ 2022-07-05 23:08:08 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1", "jids": [ "admin@test-domain.com" ] } 2022-07-05 23:08:08 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-07-05 23:08:09 |
2022-07-05 23:08:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-05 23:08:09 | ------------------------------------ 2022-07-05 23:08:09 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ea0ca7b5-98b4-48d0-96ae-e4bbae764eb1", "jids": [ "admin@test-domain.com" ] } 2022-07-05 23:08:09 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |