Test duration : 8.733s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.093s |
2022-06-25 23:20:13 |
2022-06-25 23:20:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 23:20:13 | ------------------------------------ 2022-06-25 23:20:13 | [Mutex] waiting for: [configured:node:node-a09e59af-9c28-4aac-81c4-d7eac4a098e9:node-7674a110-31c1-4224-a172-0b610d357d37] 2022-06-25 23:20:13 | [Mutex] received everything. 2022-06-25 23:20:13 | [Mutex] isItemNotified: configured:node:node-a09e59af-9c28-4aac-81c4-d7eac4a098e9:node-7674a110-31c1-4224-a172-0b610d357d37 :: true 2022-06-25 23:20:14 | [Mutex] waiting for: [received:nodes:ec0e9a29-3b30-45b5-8f2a-312a5e3812a9:localhost] 2022-06-25 23:20:14 | [Mutex] received everything. 2022-06-25 23:20:14 | [Mutex] isItemNotified: received:node:ec0e9a29-3b30-45b5-8f2a-312a5e3812a9:localhost:node-a09e59af-9c28-4aac-81c4-d7eac4a098e9:Node a09e59af-9c28-4aac-81c4-d7eac4a098e9 :: true 2022-06-25 23:20:14 | [Mutex] waiting for: [received:nodes:8d64806b-3aa6-4ccf-bcb1-bf23e7ebc103:localhost] 2022-06-25 23:20:14 | [Mutex] waiting for: [received:nodes:8d64806b-3aa6-4ccf-bcb1-bf23e7ebc103:localhost] 2022-06-25 23:20:14 | [Mutex] received everything. 2022-06-25 23:20:14 | [Mutex] isItemNotified: received:node:8d64806b-3aa6-4ccf-bcb1-bf23e7ebc103:localhost:node-a09e59af-9c28-4aac-81c4-d7eac4a098e9:Node a09e59af-9c28-4aac-81c4-d7eac4a098e9 :: false |
createNodes | 1.577s |
2022-06-25 23:20:10 |
2022-06-25 23:20:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 23:20:10 | ------------------------------------ 2022-06-25 23:20:10 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-a09e59af-9c28-4aac-81c4-d7eac4a098e9", "pubsub#title": "Node a09e59af-9c28-4aac-81c4-d7eac4a098e9" } 2022-06-25 23:20:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-25 23:20:12 | [Mutex] waiting for: [received:nodes:bcc6689b-3e97-4671-9e4f-aa1efc99c4bd:localhost] 2022-06-25 23:20:12 | [Mutex] waiting for: [received:nodes:bcc6689b-3e97-4671-9e4f-aa1efc99c4bd:localhost] 2022-06-25 23:20:12 | [Mutex] received everything. 2022-06-25 23:20:12 | [Mutex] isItemNotified: received:node:bcc6689b-3e97-4671-9e4f-aa1efc99c4bd:localhost:node-a09e59af-9c28-4aac-81c4-d7eac4a098e9:Node a09e59af-9c28-4aac-81c4-d7eac4a098e9 :: true |
createSubnodes | 1.023s |
2022-06-25 23:20:12 |
2022-06-25 23:20:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 23:20:12 | ------------------------------------ 2022-06-25 23:20:12 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-7674a110-31c1-4224-a172-0b610d357d37", "pubsub#title": "Node 7674a110-31c1-4224-a172-0b610d357d37" } 2022-06-25 23:20:12 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-25 23:20:13 | [Mutex] waiting for: [received:nodes:5bb01960-ea21-498f-bdad-d58aa71f49af:localhost] 2022-06-25 23:20:13 | [Mutex] waiting for: [received:nodes:5bb01960-ea21-498f-bdad-d58aa71f49af:localhost] 2022-06-25 23:20:13 | [Mutex] received everything. 2022-06-25 23:20:13 | [Mutex] isItemNotified: received:node:5bb01960-ea21-498f-bdad-d58aa71f49af:localhost:node-7674a110-31c1-4224-a172-0b610d357d37:Node 7674a110-31c1-4224-a172-0b610d357d37 :: true |
deleteNodes | 1.027s |
2022-06-25 23:20:17 |
2022-06-25 23:20:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 23:20:17 | ------------------------------------ 2022-06-25 23:20:17 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7674a110-31c1-4224-a172-0b610d357d37" } 2022-06-25 23:20:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-25 23:20:18 | [Mutex] waiting for: [received:nodes:a152860c-f185-489e-aa07-de25fe10fb63:localhost] 2022-06-25 23:20:18 | [Mutex] received everything. 2022-06-25 23:20:18 | [Mutex] isItemNotified: received:node:a152860c-f185-489e-aa07-de25fe10fb63:localhost:node-7674a110-31c1-4224-a172-0b610d357d37:Node 7674a110-31c1-4224-a172-0b610d357d37 :: false |
deleteSubnodes | 1.029s |
2022-06-25 23:20:16 |
2022-06-25 23:20:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 23:20:16 | ------------------------------------ 2022-06-25 23:20:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a09e59af-9c28-4aac-81c4-d7eac4a098e9" } 2022-06-25 23:20:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-25 23:20:17 | [Mutex] waiting for: [received:nodes:f0cae48c-3eb1-405f-84b2-b317eef4773c:localhost] 2022-06-25 23:20:17 | [Mutex] waiting for: [received:nodes:f0cae48c-3eb1-405f-84b2-b317eef4773c:localhost] 2022-06-25 23:20:17 | [Mutex] received everything. 2022-06-25 23:20:17 | [Mutex] isItemNotified: received:node:f0cae48c-3eb1-405f-84b2-b317eef4773c:localhost:node-a09e59af-9c28-4aac-81c4-d7eac4a098e9:Node a09e59af-9c28-4aac-81c4-d7eac4a098e9 :: false 2022-06-25 23:20:17 | [Mutex] waiting for: [received:nodes:e9af7a4b-e928-4965-8f69-c146d5c11eef:localhost] 2022-06-25 23:20:17 | [Mutex] received everything. 2022-06-25 23:20:17 | [Mutex] isItemNotified: received:node:e9af7a4b-e928-4965-8f69-c146d5c11eef:localhost:node-a09e59af-9c28-4aac-81c4-d7eac4a098e9:Node a09e59af-9c28-4aac-81c4-d7eac4a098e9 :: false |
publishItemsToNodes | 0.031s |
2022-06-25 23:20:15 |
2022-06-25 23:20:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 23:20:15 | ------------------------------------ 2022-06-25 23:20:15 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-a09e59af-9c28-4aac-81c4-d7eac4a098e9", "entry": "<test>item-24db8928-f41b-4225-bb14-efd6d0755a74</test>", "item-id": "item-24db8928-f41b-4225-bb14-efd6d0755a74" } 2022-06-25 23:20:15 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-24db8928-f41b-4225-bb14-efd6d0755a74" } 2022-06-25 23:20:15 | [Mutex] received everything. 2022-06-25 23:20:15 | [Mutex] isItemNotified: published:item:notifieditem-24db8928-f41b-4225-bb14-efd6d0755a74:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-06-25 23:20:15 |
2022-06-25 23:20:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 23:20:15 | ------------------------------------ 2022-06-25 23:20:15 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-a09e59af-9c28-4aac-81c4-d7eac4a098e9", "item-id": "item-24db8928-f41b-4225-bb14-efd6d0755a74" } 2022-06-25 23:20:15 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-24db8928-f41b-4225-bb14-efd6d0755a74" } 2022-06-25 23:20:15 | [Mutex] received everything. 2022-06-25 23:20:15 | [Mutex] isItemNotified: retracted:item:notifieditem-24db8928-f41b-4225-bb14-efd6d0755a74:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.102s |
2022-06-25 23:20:15 |
2022-06-25 23:20:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 23:20:15 | ------------------------------------ 2022-06-25 23:20:15 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-a09e59af-9c28-4aac-81c4-d7eac4a098e9", "item-id": "item-24db8928-f41b-4225-bb14-efd6d0755a74" } 2022-06-25 23:20:15 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-a09e59af-9c28-4aac-81c4-d7eac4a098e9", "item-id": "item-24db8928-f41b-4225-bb14-efd6d0755a74", "item": [ "<item id=\"item-24db8928-f41b-4225-bb14-efd6d0755a74\"><test>item-24db8928-f41b-4225-bb14-efd6d0755a74</test></item>" ] } 2022-06-25 23:20:15 | [Mutex] notify: [retrieved:item:item-24db8928-f41b-4225-bb14-efd6d0755a74:payload-matches:true:localhost] 2022-06-25 23:20:15 | [Mutex] received everything. 2022-06-25 23:20:15 | [Mutex] isItemNotified: retrieved:item:item-24db8928-f41b-4225-bb14-efd6d0755a74:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-06-25 23:20:15 |
2022-06-25 23:20:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 23:20:15 | ------------------------------------ 2022-06-25 23:20:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-06-25 23:20:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-a09e59af-9c28-4aac-81c4-d7eac4a098e9", "node-7674a110-31c1-4224-a172-0b610d357d37" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-06-25 23:20:15 |
2022-06-25 23:20:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 23:20:15 | ------------------------------------ 2022-06-25 23:20:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-a09e59af-9c28-4aac-81c4-d7eac4a098e9)" } 2022-06-25 23:20:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2022-06-25 23:20:14 |
2022-06-25 23:20:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 23:20:14 | ------------------------------------ 2022-06-25 23:20:14 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-a09e59af-9c28-4aac-81c4-d7eac4a098e9", "jids": [ "admin@test-domain.com" ] } 2022-06-25 23:20:14 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2022-06-25 23:20:15 |
2022-06-25 23:20:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 23:20:15 | ------------------------------------ 2022-06-25 23:20:15 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-a09e59af-9c28-4aac-81c4-d7eac4a098e9", "jids": [ "admin@test-domain.com" ] } 2022-06-25 23:20:15 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |