Test duration : 9.223s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.101s |
2020-10-23 22:29:37 |
2020-10-23 22:29:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:29:37 | ------------------------------------ 2020-10-23 22:29:37 | [Mutex] waiting for: [configured:node:node-b2eefb19-d3d6-473a-a488-e2f82e38dba6:node-bd957a39-82bc-4131-9b1f-ef44192852b5] 2020-10-23 22:29:37 | [Mutex] received everything. 2020-10-23 22:29:37 | [Mutex] isItemNotified: configured:node:node-b2eefb19-d3d6-473a-a488-e2f82e38dba6:node-bd957a39-82bc-4131-9b1f-ef44192852b5 :: true 2020-10-23 22:29:38 | [Mutex] waiting for: [received:nodes:bb9d7b21-7546-4d0c-99e9-80039f47fc12:localhost] 2020-10-23 22:29:38 | [Mutex] received everything. 2020-10-23 22:29:38 | [Mutex] isItemNotified: received:node:bb9d7b21-7546-4d0c-99e9-80039f47fc12:localhost:node-b2eefb19-d3d6-473a-a488-e2f82e38dba6:Node b2eefb19-d3d6-473a-a488-e2f82e38dba6 :: true 2020-10-23 22:29:38 | [Mutex] waiting for: [received:nodes:2e9e8bd8-c330-4234-b6e7-c5ef5537122a:localhost] 2020-10-23 22:29:38 | [Mutex] received everything. 2020-10-23 22:29:38 | [Mutex] isItemNotified: received:node:2e9e8bd8-c330-4234-b6e7-c5ef5537122a:localhost:node-b2eefb19-d3d6-473a-a488-e2f82e38dba6:Node b2eefb19-d3d6-473a-a488-e2f82e38dba6 :: false |
createNodes | 1.733s |
2020-10-23 22:29:34 |
2020-10-23 22:29:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:29:34 | ------------------------------------ 2020-10-23 22:29:34 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-b2eefb19-d3d6-473a-a488-e2f82e38dba6", "pubsub#title": "Node b2eefb19-d3d6-473a-a488-e2f82e38dba6" } 2020-10-23 22:29:35 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-23 22:29:36 | [Mutex] waiting for: [received:nodes:4e792c94-4a54-4d34-9761-a12c39ad5faf:localhost] 2020-10-23 22:29:36 | [Mutex] received everything. 2020-10-23 22:29:36 | [Mutex] isItemNotified: received:node:4e792c94-4a54-4d34-9761-a12c39ad5faf:localhost:node-b2eefb19-d3d6-473a-a488-e2f82e38dba6:Node b2eefb19-d3d6-473a-a488-e2f82e38dba6 :: true |
createSubnodes | 1.029s |
2020-10-23 22:29:36 |
2020-10-23 22:29:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:29:36 | ------------------------------------ 2020-10-23 22:29:36 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-bd957a39-82bc-4131-9b1f-ef44192852b5", "pubsub#title": "Node bd957a39-82bc-4131-9b1f-ef44192852b5" } 2020-10-23 22:29:36 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-23 22:29:37 | [Mutex] waiting for: [received:nodes:424d7a60-023d-4f35-a95d-d1b961333b9c:localhost] 2020-10-23 22:29:37 | [Mutex] waiting for: [received:nodes:424d7a60-023d-4f35-a95d-d1b961333b9c:localhost] 2020-10-23 22:29:37 | [Mutex] received everything. 2020-10-23 22:29:37 | [Mutex] isItemNotified: received:node:424d7a60-023d-4f35-a95d-d1b961333b9c:localhost:node-bd957a39-82bc-4131-9b1f-ef44192852b5:Node bd957a39-82bc-4131-9b1f-ef44192852b5 :: true |
deleteNodes | 1.049s |
2020-10-23 22:29:41 |
2020-10-23 22:29:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:29:41 | ------------------------------------ 2020-10-23 22:29:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-bd957a39-82bc-4131-9b1f-ef44192852b5" } 2020-10-23 22:29:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-23 22:29:42 | [Mutex] waiting for: [received:nodes:beb3bc8f-c282-4281-9131-b35c8d1407ea:localhost] 2020-10-23 22:29:42 | [Mutex] received everything. 2020-10-23 22:29:42 | [Mutex] isItemNotified: received:node:beb3bc8f-c282-4281-9131-b35c8d1407ea:localhost:node-bd957a39-82bc-4131-9b1f-ef44192852b5:Node bd957a39-82bc-4131-9b1f-ef44192852b5 :: false |
deleteSubnodes | 1.033s |
2020-10-23 22:29:40 |
2020-10-23 22:29:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:29:40 | ------------------------------------ 2020-10-23 22:29:40 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b2eefb19-d3d6-473a-a488-e2f82e38dba6" } 2020-10-23 22:29:40 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-23 22:29:41 | [Mutex] waiting for: [received:nodes:98245db0-5c0f-4088-b97b-756fba831f8a:localhost] 2020-10-23 22:29:41 | [Mutex] received everything. 2020-10-23 22:29:41 | [Mutex] isItemNotified: received:node:98245db0-5c0f-4088-b97b-756fba831f8a:localhost:node-b2eefb19-d3d6-473a-a488-e2f82e38dba6:Node b2eefb19-d3d6-473a-a488-e2f82e38dba6 :: false 2020-10-23 22:29:41 | [Mutex] waiting for: [received:nodes:834e4a56-8cda-4a5e-a548-aa59c5a80a4d:localhost] 2020-10-23 22:29:41 | [Mutex] received everything. 2020-10-23 22:29:41 | [Mutex] isItemNotified: received:node:834e4a56-8cda-4a5e-a548-aa59c5a80a4d:localhost:node-b2eefb19-d3d6-473a-a488-e2f82e38dba6:Node b2eefb19-d3d6-473a-a488-e2f82e38dba6 :: false |
publishItemsToNodes | 0.094s |
2020-10-23 22:29:39 |
2020-10-23 22:29:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:29:39 | ------------------------------------ 2020-10-23 22:29:39 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-b2eefb19-d3d6-473a-a488-e2f82e38dba6", "entry": "<test>item-7dc46c6c-848d-4f01-97a5-0cb76752397c</test>", "item-id": "item-7dc46c6c-848d-4f01-97a5-0cb76752397c" } 2020-10-23 22:29:39 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7dc46c6c-848d-4f01-97a5-0cb76752397c" } 2020-10-23 22:29:39 | [Mutex] waiting for: [published:item:notifieditem-7dc46c6c-848d-4f01-97a5-0cb76752397c:admin@test-domain.com] 2020-10-23 22:29:39 | [Mutex] received everything. 2020-10-23 22:29:39 | [Mutex] isItemNotified: published:item:notifieditem-7dc46c6c-848d-4f01-97a5-0cb76752397c:admin@test-domain.com :: true |
retractItemsFromNodes | 0.083s |
2020-10-23 22:29:39 |
2020-10-23 22:29:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:29:39 | ------------------------------------ 2020-10-23 22:29:39 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-b2eefb19-d3d6-473a-a488-e2f82e38dba6", "item-id": "item-7dc46c6c-848d-4f01-97a5-0cb76752397c" } 2020-10-23 22:29:39 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7dc46c6c-848d-4f01-97a5-0cb76752397c" } 2020-10-23 22:29:39 | [Mutex] received everything. 2020-10-23 22:29:39 | [Mutex] isItemNotified: retracted:item:notifieditem-7dc46c6c-848d-4f01-97a5-0cb76752397c:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.110s |
2020-10-23 22:29:39 |
2020-10-23 22:29:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:29:39 | ------------------------------------ 2020-10-23 22:29:39 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-b2eefb19-d3d6-473a-a488-e2f82e38dba6", "item-id": "item-7dc46c6c-848d-4f01-97a5-0cb76752397c" } 2020-10-23 22:29:39 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-b2eefb19-d3d6-473a-a488-e2f82e38dba6", "item-id": "item-7dc46c6c-848d-4f01-97a5-0cb76752397c", "item": [ "<item id=\"item-7dc46c6c-848d-4f01-97a5-0cb76752397c\"><test>item-7dc46c6c-848d-4f01-97a5-0cb76752397c</test></item>" ] } 2020-10-23 22:29:39 | [Mutex] notify: [retrieved:item:item-7dc46c6c-848d-4f01-97a5-0cb76752397c:payload-matches:true:localhost] 2020-10-23 22:29:39 | [Mutex] received everything. 2020-10-23 22:29:39 | [Mutex] isItemNotified: retrieved:item:item-7dc46c6c-848d-4f01-97a5-0cb76752397c:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-10-23 22:29:39 |
2020-10-23 22:29:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:29:39 | ------------------------------------ 2020-10-23 22:29:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-23 22:29:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-bd957a39-82bc-4131-9b1f-ef44192852b5", "node-b2eefb19-d3d6-473a-a488-e2f82e38dba6" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-10-23 22:29:39 |
2020-10-23 22:29:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:29:39 | ------------------------------------ 2020-10-23 22:29:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-b2eefb19-d3d6-473a-a488-e2f82e38dba6)" } 2020-10-23 22:29:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2020-10-23 22:29:38 |
2020-10-23 22:29:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:29:38 | ------------------------------------ 2020-10-23 22:29:38 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-b2eefb19-d3d6-473a-a488-e2f82e38dba6", "jids": [ "admin@test-domain.com" ] } 2020-10-23 22:29:38 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2020-10-23 22:29:39 |
2020-10-23 22:29:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:29:39 | ------------------------------------ 2020-10-23 22:29:39 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-b2eefb19-d3d6-473a-a488-e2f82e38dba6", "jids": [ "admin@test-domain.com" ] } 2020-10-23 22:29:39 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |