Test duration : 9.039s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.101s |
2020-11-11 21:29:41 |
2020-11-11 21:29:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:29:41 | ------------------------------------ 2020-11-11 21:29:41 | [Mutex] waiting for: [configured:node:node-30caa9c0-abaa-4807-9673-55af8c28aee1:node-80477546-6658-442c-951a-06af25300449] 2020-11-11 21:29:41 | [Mutex] received everything. 2020-11-11 21:29:41 | [Mutex] isItemNotified: configured:node:node-30caa9c0-abaa-4807-9673-55af8c28aee1:node-80477546-6658-442c-951a-06af25300449 :: true 2020-11-11 21:29:42 | [Mutex] waiting for: [received:nodes:1bd5f7f7-55e8-4359-a910-f683603b45ce:localhost] 2020-11-11 21:29:42 | [Mutex] received everything. 2020-11-11 21:29:42 | [Mutex] isItemNotified: received:node:1bd5f7f7-55e8-4359-a910-f683603b45ce:localhost:node-30caa9c0-abaa-4807-9673-55af8c28aee1:Node 30caa9c0-abaa-4807-9673-55af8c28aee1 :: true 2020-11-11 21:29:42 | [Mutex] waiting for: [received:nodes:1237ebc6-c071-4df5-be59-64f922629173:localhost] 2020-11-11 21:29:42 | [Mutex] waiting for: [received:nodes:1237ebc6-c071-4df5-be59-64f922629173:localhost] 2020-11-11 21:29:42 | [Mutex] waiting for: [received:nodes:1237ebc6-c071-4df5-be59-64f922629173:localhost] 2020-11-11 21:29:42 | [Mutex] received everything. 2020-11-11 21:29:42 | [Mutex] isItemNotified: received:node:1237ebc6-c071-4df5-be59-64f922629173:localhost:node-30caa9c0-abaa-4807-9673-55af8c28aee1:Node 30caa9c0-abaa-4807-9673-55af8c28aee1 :: false |
createNodes | 1.614s |
2020-11-11 21:29:39 |
2020-11-11 21:29:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:29:39 | ------------------------------------ 2020-11-11 21:29:39 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-30caa9c0-abaa-4807-9673-55af8c28aee1", "pubsub#title": "Node 30caa9c0-abaa-4807-9673-55af8c28aee1" } 2020-11-11 21:29:39 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-11 21:29:40 | [Mutex] waiting for: [received:nodes:0e9e6f75-371f-4db0-aeeb-2e531b3edce0:localhost] 2020-11-11 21:29:40 | [Mutex] waiting for: [received:nodes:0e9e6f75-371f-4db0-aeeb-2e531b3edce0:localhost] 2020-11-11 21:29:40 | [Mutex] received everything. 2020-11-11 21:29:40 | [Mutex] isItemNotified: received:node:0e9e6f75-371f-4db0-aeeb-2e531b3edce0:localhost:node-30caa9c0-abaa-4807-9673-55af8c28aee1:Node 30caa9c0-abaa-4807-9673-55af8c28aee1 :: true |
createSubnodes | 1.031s |
2020-11-11 21:29:40 |
2020-11-11 21:29:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:29:40 | ------------------------------------ 2020-11-11 21:29:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-80477546-6658-442c-951a-06af25300449", "pubsub#title": "Node 80477546-6658-442c-951a-06af25300449" } 2020-11-11 21:29:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-11 21:29:41 | [Mutex] waiting for: [received:nodes:e6ed41a9-b995-4b85-881a-66b77e8eb069:localhost] 2020-11-11 21:29:41 | [Mutex] received everything. 2020-11-11 21:29:41 | [Mutex] isItemNotified: received:node:e6ed41a9-b995-4b85-881a-66b77e8eb069:localhost:node-80477546-6658-442c-951a-06af25300449:Node 80477546-6658-442c-951a-06af25300449 :: true |
deleteNodes | 1.027s |
2020-11-11 21:29:46 |
2020-11-11 21:29:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:29:46 | ------------------------------------ 2020-11-11 21:29:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-80477546-6658-442c-951a-06af25300449" } 2020-11-11 21:29:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-11 21:29:47 | [Mutex] waiting for: [received:nodes:cc8b76b6-de26-49f9-b978-47fcf2b8658e:localhost] 2020-11-11 21:29:47 | [Mutex] waiting for: [received:nodes:cc8b76b6-de26-49f9-b978-47fcf2b8658e:localhost] 2020-11-11 21:29:47 | [Mutex] received everything. 2020-11-11 21:29:47 | [Mutex] isItemNotified: received:node:cc8b76b6-de26-49f9-b978-47fcf2b8658e:localhost:node-80477546-6658-442c-951a-06af25300449:Node 80477546-6658-442c-951a-06af25300449 :: false |
deleteSubnodes | 1.034s |
2020-11-11 21:29:45 |
2020-11-11 21:29:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:29:45 | ------------------------------------ 2020-11-11 21:29:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-30caa9c0-abaa-4807-9673-55af8c28aee1" } 2020-11-11 21:29:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-11 21:29:46 | [Mutex] waiting for: [received:nodes:807ae86d-40f4-49a9-8f92-cbf7feb00733:localhost] 2020-11-11 21:29:46 | [Mutex] received everything. 2020-11-11 21:29:46 | [Mutex] isItemNotified: received:node:807ae86d-40f4-49a9-8f92-cbf7feb00733:localhost:node-30caa9c0-abaa-4807-9673-55af8c28aee1:Node 30caa9c0-abaa-4807-9673-55af8c28aee1 :: false 2020-11-11 21:29:46 | [Mutex] waiting for: [received:nodes:749a0c64-0ced-4902-ad10-2d3efcf9fefe:localhost] 2020-11-11 21:29:46 | [Mutex] received everything. 2020-11-11 21:29:46 | [Mutex] isItemNotified: received:node:749a0c64-0ced-4902-ad10-2d3efcf9fefe:localhost:node-30caa9c0-abaa-4807-9673-55af8c28aee1:Node 30caa9c0-abaa-4807-9673-55af8c28aee1 :: false |
publishItemsToNodes | 0.058s |
2020-11-11 21:29:43 |
2020-11-11 21:29:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:29:43 | ------------------------------------ 2020-11-11 21:29:43 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-30caa9c0-abaa-4807-9673-55af8c28aee1", "entry": "<test>item-65e7c80a-ed60-4c19-8465-e02a13cafad2</test>", "item-id": "item-65e7c80a-ed60-4c19-8465-e02a13cafad2" } 2020-11-11 21:29:43 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-65e7c80a-ed60-4c19-8465-e02a13cafad2" } 2020-11-11 21:29:43 | [Mutex] waiting for: [published:item:notifieditem-65e7c80a-ed60-4c19-8465-e02a13cafad2:admin@test-domain.com] 2020-11-11 21:29:43 | [Mutex] received everything. 2020-11-11 21:29:43 | [Mutex] isItemNotified: published:item:notifieditem-65e7c80a-ed60-4c19-8465-e02a13cafad2:admin@test-domain.com :: true |
retractItemsFromNodes | 0.080s |
2020-11-11 21:29:44 |
2020-11-11 21:29:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:29:44 | ------------------------------------ 2020-11-11 21:29:44 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-30caa9c0-abaa-4807-9673-55af8c28aee1", "item-id": "item-65e7c80a-ed60-4c19-8465-e02a13cafad2" } 2020-11-11 21:29:44 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-65e7c80a-ed60-4c19-8465-e02a13cafad2" } 2020-11-11 21:29:44 | [Mutex] received everything. 2020-11-11 21:29:44 | [Mutex] isItemNotified: retracted:item:notifieditem-65e7c80a-ed60-4c19-8465-e02a13cafad2:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.028s |
2020-11-11 21:29:43 |
2020-11-11 21:29:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:29:43 | ------------------------------------ 2020-11-11 21:29:43 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-30caa9c0-abaa-4807-9673-55af8c28aee1", "item-id": "item-65e7c80a-ed60-4c19-8465-e02a13cafad2" } 2020-11-11 21:29:43 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-30caa9c0-abaa-4807-9673-55af8c28aee1", "item-id": "item-65e7c80a-ed60-4c19-8465-e02a13cafad2", "item": [ "<item id=\"item-65e7c80a-ed60-4c19-8465-e02a13cafad2\"><test>item-65e7c80a-ed60-4c19-8465-e02a13cafad2</test></item>" ] } 2020-11-11 21:29:43 | [Mutex] notify: [retrieved:item:item-65e7c80a-ed60-4c19-8465-e02a13cafad2:payload-matches:true:localhost] 2020-11-11 21:29:43 | [Mutex] received everything. 2020-11-11 21:29:43 | [Mutex] isItemNotified: retrieved:item:item-65e7c80a-ed60-4c19-8465-e02a13cafad2:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.074s |
2020-11-11 21:29:43 |
2020-11-11 21:29:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:29:43 | ------------------------------------ 2020-11-11 21:29:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-11-11 21:29:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-80477546-6658-442c-951a-06af25300449", "node-30caa9c0-abaa-4807-9673-55af8c28aee1" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-11-11 21:29:44 |
2020-11-11 21:29:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:29:44 | ------------------------------------ 2020-11-11 21:29:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-30caa9c0-abaa-4807-9673-55af8c28aee1)" } 2020-11-11 21:29:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.019s |
2020-11-11 21:29:42 |
2020-11-11 21:29:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:29:42 | ------------------------------------ 2020-11-11 21:29:42 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-30caa9c0-abaa-4807-9673-55af8c28aee1", "jids": [ "admin@test-domain.com" ] } 2020-11-11 21:29:42 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.088s |
2020-11-11 21:29:44 |
2020-11-11 21:29:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:29:44 | ------------------------------------ 2020-11-11 21:29:44 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-30caa9c0-abaa-4807-9673-55af8c28aee1", "jids": [ "admin@test-domain.com" ] } 2020-11-11 21:29:44 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |