Test duration : 8.736s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.103s |
2023-11-05 21:46:59 |
2023-11-05 21:46:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 21:46:59 | ------------------------------------ 2023-11-05 21:46:59 | [Mutex] waiting for: [configured:node:node-21d5b65c-a44b-485f-89c6-fa6bca4824f1:node-d9d6af47-bbe7-4854-af86-e5fe149d3e90] 2023-11-05 21:46:59 | [Mutex] received everything. 2023-11-05 21:46:59 | [Mutex] isItemNotified: configured:node:node-21d5b65c-a44b-485f-89c6-fa6bca4824f1:node-d9d6af47-bbe7-4854-af86-e5fe149d3e90 :: true 2023-11-05 21:47:00 | [Mutex] waiting for: [received:nodes:1920423f-e759-41c2-8bde-ef5386ffd610:localhost] 2023-11-05 21:47:00 | [Mutex] received everything. 2023-11-05 21:47:00 | [Mutex] isItemNotified: received:node:1920423f-e759-41c2-8bde-ef5386ffd610:localhost:node-21d5b65c-a44b-485f-89c6-fa6bca4824f1:Node 21d5b65c-a44b-485f-89c6-fa6bca4824f1 :: true 2023-11-05 21:47:00 | [Mutex] waiting for: [received:nodes:b8655ad8-4425-4ee1-acc8-13445e969fa5:localhost] 2023-11-05 21:47:00 | [Mutex] waiting for: [received:nodes:b8655ad8-4425-4ee1-acc8-13445e969fa5:localhost] 2023-11-05 21:47:00 | [Mutex] waiting for: [received:nodes:b8655ad8-4425-4ee1-acc8-13445e969fa5:localhost] 2023-11-05 21:47:00 | [Mutex] received everything. 2023-11-05 21:47:00 | [Mutex] isItemNotified: received:node:b8655ad8-4425-4ee1-acc8-13445e969fa5:localhost:node-21d5b65c-a44b-485f-89c6-fa6bca4824f1:Node 21d5b65c-a44b-485f-89c6-fa6bca4824f1 :: false |
createNodes | 1.699s |
2023-11-05 21:46:56 |
2023-11-05 21:46:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 21:46:56 | ------------------------------------ 2023-11-05 21:46:57 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-21d5b65c-a44b-485f-89c6-fa6bca4824f1", "pubsub#title": "Node 21d5b65c-a44b-485f-89c6-fa6bca4824f1" } 2023-11-05 21:46:57 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-11-05 21:46:58 | [Mutex] waiting for: [received:nodes:c4180840-4471-4eb6-be79-734f1e11514c:localhost] 2023-11-05 21:46:58 | [Mutex] waiting for: [received:nodes:c4180840-4471-4eb6-be79-734f1e11514c:localhost] 2023-11-05 21:46:58 | [Mutex] waiting for: [received:nodes:c4180840-4471-4eb6-be79-734f1e11514c:localhost] 2023-11-05 21:46:58 | [Mutex] waiting for: [received:nodes:c4180840-4471-4eb6-be79-734f1e11514c:localhost] 2023-11-05 21:46:58 | [Mutex] received everything. 2023-11-05 21:46:58 | [Mutex] isItemNotified: received:node:c4180840-4471-4eb6-be79-734f1e11514c:localhost:node-21d5b65c-a44b-485f-89c6-fa6bca4824f1:Node 21d5b65c-a44b-485f-89c6-fa6bca4824f1 :: true |
createSubnodes | 1.039s |
2023-11-05 21:46:58 |
2023-11-05 21:46:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 21:46:58 | ------------------------------------ 2023-11-05 21:46:58 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-d9d6af47-bbe7-4854-af86-e5fe149d3e90", "pubsub#title": "Node d9d6af47-bbe7-4854-af86-e5fe149d3e90" } 2023-11-05 21:46:58 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-11-05 21:46:59 | [Mutex] waiting for: [received:nodes:08328a4a-84ae-4197-8ac2-94c8470d395a:localhost] 2023-11-05 21:46:59 | [Mutex] waiting for: [received:nodes:08328a4a-84ae-4197-8ac2-94c8470d395a:localhost] 2023-11-05 21:46:59 | [Mutex] waiting for: [received:nodes:08328a4a-84ae-4197-8ac2-94c8470d395a:localhost] 2023-11-05 21:46:59 | [Mutex] waiting for: [received:nodes:08328a4a-84ae-4197-8ac2-94c8470d395a:localhost] 2023-11-05 21:46:59 | [Mutex] waiting for: [received:nodes:08328a4a-84ae-4197-8ac2-94c8470d395a:localhost] 2023-11-05 21:46:59 | [Mutex] received everything. 2023-11-05 21:46:59 | [Mutex] isItemNotified: received:node:08328a4a-84ae-4197-8ac2-94c8470d395a:localhost:node-d9d6af47-bbe7-4854-af86-e5fe149d3e90:Node d9d6af47-bbe7-4854-af86-e5fe149d3e90 :: true |
deleteNodes | 1.023s |
2023-11-05 21:47:03 |
2023-11-05 21:47:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 21:47:03 | ------------------------------------ 2023-11-05 21:47:03 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d9d6af47-bbe7-4854-af86-e5fe149d3e90" } 2023-11-05 21:47:03 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-11-05 21:47:04 | [Mutex] waiting for: [received:nodes:bedc732f-dc86-4fd0-8f3c-1cd887682d61:localhost] 2023-11-05 21:47:04 | [Mutex] waiting for: [received:nodes:bedc732f-dc86-4fd0-8f3c-1cd887682d61:localhost] 2023-11-05 21:47:04 | [Mutex] waiting for: [received:nodes:bedc732f-dc86-4fd0-8f3c-1cd887682d61:localhost] 2023-11-05 21:47:04 | [Mutex] received everything. 2023-11-05 21:47:04 | [Mutex] isItemNotified: received:node:bedc732f-dc86-4fd0-8f3c-1cd887682d61:localhost:node-d9d6af47-bbe7-4854-af86-e5fe149d3e90:Node d9d6af47-bbe7-4854-af86-e5fe149d3e90 :: false |
deleteSubnodes | 1.025s |
2023-11-05 21:47:02 |
2023-11-05 21:47:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 21:47:02 | ------------------------------------ 2023-11-05 21:47:02 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-21d5b65c-a44b-485f-89c6-fa6bca4824f1" } 2023-11-05 21:47:02 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-11-05 21:47:03 | [Mutex] waiting for: [received:nodes:d24c34c1-4f36-4add-97ae-6040d8c7a5bd:localhost] 2023-11-05 21:47:03 | [Mutex] received everything. 2023-11-05 21:47:03 | [Mutex] isItemNotified: received:node:d24c34c1-4f36-4add-97ae-6040d8c7a5bd:localhost:node-21d5b65c-a44b-485f-89c6-fa6bca4824f1:Node 21d5b65c-a44b-485f-89c6-fa6bca4824f1 :: false 2023-11-05 21:47:03 | [Mutex] waiting for: [received:nodes:353b3887-74a0-4c66-b012-0af4e705699b:localhost] 2023-11-05 21:47:03 | [Mutex] received everything. 2023-11-05 21:47:03 | [Mutex] isItemNotified: received:node:353b3887-74a0-4c66-b012-0af4e705699b:localhost:node-21d5b65c-a44b-485f-89c6-fa6bca4824f1:Node 21d5b65c-a44b-485f-89c6-fa6bca4824f1 :: false |
publishItemsToNodes | 0.032s |
2023-11-05 21:47:01 |
2023-11-05 21:47:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 21:47:01 | ------------------------------------ 2023-11-05 21:47:01 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-21d5b65c-a44b-485f-89c6-fa6bca4824f1", "entry": "<test>item-e52fa969-454d-4fe9-8ae9-caf9f7a93d32</test>", "item-id": "item-e52fa969-454d-4fe9-8ae9-caf9f7a93d32" } 2023-11-05 21:47:01 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e52fa969-454d-4fe9-8ae9-caf9f7a93d32" } 2023-11-05 21:47:01 | [Mutex] waiting for: [published:item:notifieditem-e52fa969-454d-4fe9-8ae9-caf9f7a93d32:admin@test-domain.com] 2023-11-05 21:47:01 | [Mutex] received everything. 2023-11-05 21:47:01 | [Mutex] isItemNotified: published:item:notifieditem-e52fa969-454d-4fe9-8ae9-caf9f7a93d32:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2023-11-05 21:47:01 |
2023-11-05 21:47:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 21:47:01 | ------------------------------------ 2023-11-05 21:47:01 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-21d5b65c-a44b-485f-89c6-fa6bca4824f1", "item-id": "item-e52fa969-454d-4fe9-8ae9-caf9f7a93d32" } 2023-11-05 21:47:01 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e52fa969-454d-4fe9-8ae9-caf9f7a93d32" } 2023-11-05 21:47:01 | [Mutex] received everything. 2023-11-05 21:47:01 | [Mutex] isItemNotified: retracted:item:notifieditem-e52fa969-454d-4fe9-8ae9-caf9f7a93d32:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.061s |
2023-11-05 21:47:01 |
2023-11-05 21:47:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 21:47:01 | ------------------------------------ 2023-11-05 21:47:01 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-21d5b65c-a44b-485f-89c6-fa6bca4824f1", "item-id": "item-e52fa969-454d-4fe9-8ae9-caf9f7a93d32" } 2023-11-05 21:47:01 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-21d5b65c-a44b-485f-89c6-fa6bca4824f1", "item-id": "item-e52fa969-454d-4fe9-8ae9-caf9f7a93d32", "item": [ "<item id=\"item-e52fa969-454d-4fe9-8ae9-caf9f7a93d32\"><test>item-e52fa969-454d-4fe9-8ae9-caf9f7a93d32</test></item>" ] } 2023-11-05 21:47:01 | [Mutex] notify: [retrieved:item:item-e52fa969-454d-4fe9-8ae9-caf9f7a93d32:payload-matches:true:localhost] 2023-11-05 21:47:01 | [Mutex] received everything. 2023-11-05 21:47:01 | [Mutex] isItemNotified: retrieved:item:item-e52fa969-454d-4fe9-8ae9-caf9f7a93d32:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-11-05 21:47:01 |
2023-11-05 21:47:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 21:47:01 | ------------------------------------ 2023-11-05 21:47:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-11-05 21:47:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-21d5b65c-a44b-485f-89c6-fa6bca4824f1", "test", "node-d9d6af47-bbe7-4854-af86-e5fe149d3e90" ] } |
retrieveUserSubscriptionsWithRegex | 0.049s |
2023-11-05 21:47:01 |
2023-11-05 21:47:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 21:47:01 | ------------------------------------ 2023-11-05 21:47:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-21d5b65c-a44b-485f-89c6-fa6bca4824f1)" } 2023-11-05 21:47:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2023-11-05 21:47:00 |
2023-11-05 21:47:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 21:47:00 | ------------------------------------ 2023-11-05 21:47:00 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-21d5b65c-a44b-485f-89c6-fa6bca4824f1", "jids": [ "admin@test-domain.com" ] } 2023-11-05 21:47:00 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.087s |
2023-11-05 21:47:01 |
2023-11-05 21:47:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 21:47:01 | ------------------------------------ 2023-11-05 21:47:01 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-21d5b65c-a44b-485f-89c6-fa6bca4824f1", "jids": [ "admin@test-domain.com" ] } 2023-11-05 21:47:01 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |