Test duration : 8.960s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.112s |
2020-10-11 22:39:26 |
2020-10-11 22:39:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:39:26 | ------------------------------------ 2020-10-11 22:39:26 | [Mutex] waiting for: [configured:node:node-59964652-0b0a-449d-987d-bf20478f0f16:node-47c5c567-fae7-4d58-854c-b0697830e994] 2020-10-11 22:39:26 | [Mutex] received everything. 2020-10-11 22:39:26 | [Mutex] isItemNotified: configured:node:node-59964652-0b0a-449d-987d-bf20478f0f16:node-47c5c567-fae7-4d58-854c-b0697830e994 :: true 2020-10-11 22:39:27 | [Mutex] waiting for: [received:nodes:0ffd66bb-4d14-436d-815a-9ecafa28eed7:localhost] 2020-10-11 22:39:27 | [Mutex] received everything. 2020-10-11 22:39:27 | [Mutex] isItemNotified: received:node:0ffd66bb-4d14-436d-815a-9ecafa28eed7:localhost:node-59964652-0b0a-449d-987d-bf20478f0f16:Node 59964652-0b0a-449d-987d-bf20478f0f16 :: true 2020-10-11 22:39:27 | [Mutex] waiting for: [received:nodes:fb39f05c-d806-4957-8754-a4426921907b:localhost] 2020-10-11 22:39:27 | [Mutex] received everything. 2020-10-11 22:39:27 | [Mutex] isItemNotified: received:node:fb39f05c-d806-4957-8754-a4426921907b:localhost:node-59964652-0b0a-449d-987d-bf20478f0f16:Node 59964652-0b0a-449d-987d-bf20478f0f16 :: false |
createNodes | 1.563s |
2020-10-11 22:39:23 |
2020-10-11 22:39:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:39:23 | ------------------------------------ 2020-10-11 22:39:23 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-59964652-0b0a-449d-987d-bf20478f0f16", "pubsub#title": "Node 59964652-0b0a-449d-987d-bf20478f0f16" } 2020-10-11 22:39:23 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-11 22:39:24 | [Mutex] waiting for: [received:nodes:c392461a-eb59-40fd-be90-1468418436a7:localhost] 2020-10-11 22:39:25 | [Mutex] received everything. 2020-10-11 22:39:25 | [Mutex] isItemNotified: received:node:c392461a-eb59-40fd-be90-1468418436a7:localhost:node-59964652-0b0a-449d-987d-bf20478f0f16:Node 59964652-0b0a-449d-987d-bf20478f0f16 :: true |
createSubnodes | 1.028s |
2020-10-11 22:39:25 |
2020-10-11 22:39:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:39:25 | ------------------------------------ 2020-10-11 22:39:25 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-47c5c567-fae7-4d58-854c-b0697830e994", "pubsub#title": "Node 47c5c567-fae7-4d58-854c-b0697830e994" } 2020-10-11 22:39:25 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-11 22:39:26 | [Mutex] waiting for: [received:nodes:946f8e6f-84c0-4003-9064-392e4d8a2b19:localhost] 2020-10-11 22:39:26 | [Mutex] received everything. 2020-10-11 22:39:26 | [Mutex] isItemNotified: received:node:946f8e6f-84c0-4003-9064-392e4d8a2b19:localhost:node-47c5c567-fae7-4d58-854c-b0697830e994:Node 47c5c567-fae7-4d58-854c-b0697830e994 :: true |
deleteNodes | 1.024s |
2020-10-11 22:39:30 |
2020-10-11 22:39:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:39:30 | ------------------------------------ 2020-10-11 22:39:30 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-47c5c567-fae7-4d58-854c-b0697830e994" } 2020-10-11 22:39:30 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-11 22:39:31 | [Mutex] waiting for: [received:nodes:ef707c5a-6239-4817-9851-1fe7946d9811:localhost] 2020-10-11 22:39:31 | [Mutex] received everything. 2020-10-11 22:39:31 | [Mutex] isItemNotified: received:node:ef707c5a-6239-4817-9851-1fe7946d9811:localhost:node-47c5c567-fae7-4d58-854c-b0697830e994:Node 47c5c567-fae7-4d58-854c-b0697830e994 :: false |
deleteSubnodes | 1.033s |
2020-10-11 22:39:29 |
2020-10-11 22:39:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:39:29 | ------------------------------------ 2020-10-11 22:39:29 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-59964652-0b0a-449d-987d-bf20478f0f16" } 2020-10-11 22:39:29 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-11 22:39:30 | [Mutex] waiting for: [received:nodes:3ace5df4-1da6-478a-a5f9-2157acb69bf3:localhost] 2020-10-11 22:39:30 | [Mutex] received everything. 2020-10-11 22:39:30 | [Mutex] isItemNotified: received:node:3ace5df4-1da6-478a-a5f9-2157acb69bf3:localhost:node-59964652-0b0a-449d-987d-bf20478f0f16:Node 59964652-0b0a-449d-987d-bf20478f0f16 :: false 2020-10-11 22:39:30 | [Mutex] waiting for: [received:nodes:2a492d6d-e2ce-4322-9fe6-9acd9b519270:localhost] 2020-10-11 22:39:30 | [Mutex] received everything. 2020-10-11 22:39:30 | [Mutex] isItemNotified: received:node:2a492d6d-e2ce-4322-9fe6-9acd9b519270:localhost:node-59964652-0b0a-449d-987d-bf20478f0f16:Node 59964652-0b0a-449d-987d-bf20478f0f16 :: false |
publishItemsToNodes | 0.051s |
2020-10-11 22:39:28 |
2020-10-11 22:39:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:39:28 | ------------------------------------ 2020-10-11 22:39:28 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-59964652-0b0a-449d-987d-bf20478f0f16", "entry": "<test>item-7368a4d3-5be5-4c21-b4b0-69fde329b9c9</test>", "item-id": "item-7368a4d3-5be5-4c21-b4b0-69fde329b9c9" } 2020-10-11 22:39:28 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7368a4d3-5be5-4c21-b4b0-69fde329b9c9" } 2020-10-11 22:39:28 | [Mutex] waiting for: [published:item:notifieditem-7368a4d3-5be5-4c21-b4b0-69fde329b9c9:admin@test-domain.com] 2020-10-11 22:39:28 | [Mutex] received everything. 2020-10-11 22:39:28 | [Mutex] isItemNotified: published:item:notifieditem-7368a4d3-5be5-4c21-b4b0-69fde329b9c9:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2020-10-11 22:39:28 |
2020-10-11 22:39:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:39:28 | ------------------------------------ 2020-10-11 22:39:28 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-59964652-0b0a-449d-987d-bf20478f0f16", "item-id": "item-7368a4d3-5be5-4c21-b4b0-69fde329b9c9" } 2020-10-11 22:39:28 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7368a4d3-5be5-4c21-b4b0-69fde329b9c9" } 2020-10-11 22:39:28 | [Mutex] received everything. 2020-10-11 22:39:28 | [Mutex] isItemNotified: retracted:item:notifieditem-7368a4d3-5be5-4c21-b4b0-69fde329b9c9:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.075s |
2020-10-11 22:39:28 |
2020-10-11 22:39:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:39:28 | ------------------------------------ 2020-10-11 22:39:28 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-59964652-0b0a-449d-987d-bf20478f0f16", "item-id": "item-7368a4d3-5be5-4c21-b4b0-69fde329b9c9" } 2020-10-11 22:39:28 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-59964652-0b0a-449d-987d-bf20478f0f16", "item-id": "item-7368a4d3-5be5-4c21-b4b0-69fde329b9c9", "item": [ "<item id=\"item-7368a4d3-5be5-4c21-b4b0-69fde329b9c9\"><test>item-7368a4d3-5be5-4c21-b4b0-69fde329b9c9</test></item>" ] } 2020-10-11 22:39:28 | [Mutex] notify: [retrieved:item:item-7368a4d3-5be5-4c21-b4b0-69fde329b9c9:payload-matches:true:localhost] 2020-10-11 22:39:28 | [Mutex] received everything. 2020-10-11 22:39:28 | [Mutex] isItemNotified: retrieved:item:item-7368a4d3-5be5-4c21-b4b0-69fde329b9c9:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2020-10-11 22:39:28 |
2020-10-11 22:39:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:39:28 | ------------------------------------ 2020-10-11 22:39:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-11 22:39:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-59964652-0b0a-449d-987d-bf20478f0f16", "node-47c5c567-fae7-4d58-854c-b0697830e994" ] } |
retrieveUserSubscriptionsWithRegex | 0.055s |
2020-10-11 22:39:28 |
2020-10-11 22:39:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:39:28 | ------------------------------------ 2020-10-11 22:39:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-59964652-0b0a-449d-987d-bf20478f0f16)" } 2020-10-11 22:39:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.022s |
2020-10-11 22:39:27 |
2020-10-11 22:39:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:39:27 | ------------------------------------ 2020-10-11 22:39:27 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-59964652-0b0a-449d-987d-bf20478f0f16", "jids": [ "admin@test-domain.com" ] } 2020-10-11 22:39:27 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2020-10-11 22:39:28 |
2020-10-11 22:39:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:39:28 | ------------------------------------ 2020-10-11 22:39:28 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-59964652-0b0a-449d-987d-bf20478f0f16", "jids": [ "admin@test-domain.com" ] } 2020-10-11 22:39:28 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |