Test duration : 9.028s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.111s |
2021-09-13 23:14:32 |
2021-09-13 23:14:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 23:14:32 | ------------------------------------ 2021-09-13 23:14:32 | [Mutex] waiting for: [configured:node:node-2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb:node-606b94dd-feb4-4e70-91aa-c4f60170d36e] 2021-09-13 23:14:32 | [Mutex] received everything. 2021-09-13 23:14:32 | [Mutex] isItemNotified: configured:node:node-2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb:node-606b94dd-feb4-4e70-91aa-c4f60170d36e :: true 2021-09-13 23:14:33 | [Mutex] waiting for: [received:nodes:e8e29701-6b87-4661-b316-ec35fde917de:localhost] 2021-09-13 23:14:33 | [Mutex] received everything. 2021-09-13 23:14:33 | [Mutex] isItemNotified: received:node:e8e29701-6b87-4661-b316-ec35fde917de:localhost:node-2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb:Node 2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb :: true 2021-09-13 23:14:33 | [Mutex] waiting for: [received:nodes:840221b9-2f1a-4fe4-87e5-3b8ad42dd478:localhost] 2021-09-13 23:14:33 | [Mutex] received everything. 2021-09-13 23:14:33 | [Mutex] isItemNotified: received:node:840221b9-2f1a-4fe4-87e5-3b8ad42dd478:localhost:node-2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb:Node 2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb :: false |
createNodes | 1.705s |
2021-09-13 23:14:29 |
2021-09-13 23:14:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 23:14:29 | ------------------------------------ 2021-09-13 23:14:29 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb", "pubsub#title": "Node 2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb" } 2021-09-13 23:14:29 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-13 23:14:30 | [Mutex] waiting for: [received:nodes:8c2f3016-dc7a-483b-943c-cf0bc99efbe8:localhost] 2021-09-13 23:14:30 | [Mutex] received everything. 2021-09-13 23:14:30 | [Mutex] isItemNotified: received:node:8c2f3016-dc7a-483b-943c-cf0bc99efbe8:localhost:node-2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb:Node 2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb :: true |
createSubnodes | 1.032s |
2021-09-13 23:14:30 |
2021-09-13 23:14:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 23:14:30 | ------------------------------------ 2021-09-13 23:14:30 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-606b94dd-feb4-4e70-91aa-c4f60170d36e", "pubsub#title": "Node 606b94dd-feb4-4e70-91aa-c4f60170d36e" } 2021-09-13 23:14:31 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-13 23:14:32 | [Mutex] waiting for: [received:nodes:a50a72bb-6aed-4a35-ac8a-e6ccac162907:localhost] 2021-09-13 23:14:32 | [Mutex] received everything. 2021-09-13 23:14:32 | [Mutex] isItemNotified: received:node:a50a72bb-6aed-4a35-ac8a-e6ccac162907:localhost:node-606b94dd-feb4-4e70-91aa-c4f60170d36e:Node 606b94dd-feb4-4e70-91aa-c4f60170d36e :: true |
deleteNodes | 1.020s |
2021-09-13 23:14:36 |
2021-09-13 23:14:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 23:14:36 | ------------------------------------ 2021-09-13 23:14:36 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-606b94dd-feb4-4e70-91aa-c4f60170d36e" } 2021-09-13 23:14:36 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-13 23:14:37 | [Mutex] waiting for: [received:nodes:60c5671e-2c1d-4df6-87fc-d877b8c2135f:localhost] 2021-09-13 23:14:37 | [Mutex] received everything. 2021-09-13 23:14:37 | [Mutex] isItemNotified: received:node:60c5671e-2c1d-4df6-87fc-d877b8c2135f:localhost:node-606b94dd-feb4-4e70-91aa-c4f60170d36e:Node 606b94dd-feb4-4e70-91aa-c4f60170d36e :: false |
deleteSubnodes | 1.030s |
2021-09-13 23:14:35 |
2021-09-13 23:14:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 23:14:35 | ------------------------------------ 2021-09-13 23:14:35 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb" } 2021-09-13 23:14:35 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-13 23:14:36 | [Mutex] waiting for: [received:nodes:56b126da-dd67-4d38-8dc9-f3befbb540c9:localhost] 2021-09-13 23:14:36 | [Mutex] received everything. 2021-09-13 23:14:36 | [Mutex] isItemNotified: received:node:56b126da-dd67-4d38-8dc9-f3befbb540c9:localhost:node-2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb:Node 2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb :: false 2021-09-13 23:14:36 | [Mutex] waiting for: [received:nodes:df45d621-ac68-457a-b20e-b19a0316f66e:localhost] 2021-09-13 23:14:36 | [Mutex] received everything. 2021-09-13 23:14:36 | [Mutex] isItemNotified: received:node:df45d621-ac68-457a-b20e-b19a0316f66e:localhost:node-2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb:Node 2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb :: false |
publishItemsToNodes | 0.145s |
2021-09-13 23:14:34 |
2021-09-13 23:14:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 23:14:34 | ------------------------------------ 2021-09-13 23:14:34 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb", "entry": "<test>item-ba46b24e-da6d-4463-85e5-5ee2a7b2b004</test>", "item-id": "item-ba46b24e-da6d-4463-85e5-5ee2a7b2b004" } 2021-09-13 23:14:34 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ba46b24e-da6d-4463-85e5-5ee2a7b2b004" } 2021-09-13 23:14:34 | [Mutex] received everything. 2021-09-13 23:14:34 | [Mutex] isItemNotified: published:item:notifieditem-ba46b24e-da6d-4463-85e5-5ee2a7b2b004:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2021-09-13 23:14:34 |
2021-09-13 23:14:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 23:14:34 | ------------------------------------ 2021-09-13 23:14:34 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb", "item-id": "item-ba46b24e-da6d-4463-85e5-5ee2a7b2b004" } 2021-09-13 23:14:34 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ba46b24e-da6d-4463-85e5-5ee2a7b2b004" } 2021-09-13 23:14:34 | [Mutex] received everything. 2021-09-13 23:14:34 | [Mutex] isItemNotified: retracted:item:notifieditem-ba46b24e-da6d-4463-85e5-5ee2a7b2b004:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.077s |
2021-09-13 23:14:34 |
2021-09-13 23:14:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 23:14:34 | ------------------------------------ 2021-09-13 23:14:34 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb", "item-id": "item-ba46b24e-da6d-4463-85e5-5ee2a7b2b004" } 2021-09-13 23:14:34 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb", "item-id": "item-ba46b24e-da6d-4463-85e5-5ee2a7b2b004", "item": [ "<item id=\"item-ba46b24e-da6d-4463-85e5-5ee2a7b2b004\"><test>item-ba46b24e-da6d-4463-85e5-5ee2a7b2b004</test></item>" ] } 2021-09-13 23:14:34 | [Mutex] notify: [retrieved:item:item-ba46b24e-da6d-4463-85e5-5ee2a7b2b004:payload-matches:true:localhost] 2021-09-13 23:14:34 | [Mutex] received everything. 2021-09-13 23:14:34 | [Mutex] isItemNotified: retrieved:item:item-ba46b24e-da6d-4463-85e5-5ee2a7b2b004:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-09-13 23:14:34 |
2021-09-13 23:14:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 23:14:34 | ------------------------------------ 2021-09-13 23:14:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-09-13 23:14:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb", "node-606b94dd-feb4-4e70-91aa-c4f60170d36e" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-09-13 23:14:34 |
2021-09-13 23:14:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 23:14:34 | ------------------------------------ 2021-09-13 23:14:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb)" } 2021-09-13 23:14:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2021-09-13 23:14:33 |
2021-09-13 23:14:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 23:14:33 | ------------------------------------ 2021-09-13 23:14:33 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb", "jids": [ "admin@test-domain.com" ] } 2021-09-13 23:14:33 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2021-09-13 23:14:34 |
2021-09-13 23:14:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-13 23:14:34 | ------------------------------------ 2021-09-13 23:14:34 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-2ec1eb62-e6b5-4bb1-a06f-9f4f15d2decb", "jids": [ "admin@test-domain.com" ] } 2021-09-13 23:14:34 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |