Test duration : 9.198s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.196s |
2021-05-03 22:29:49 |
2021-05-03 22:29:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:29:49 | ------------------------------------ 2021-05-03 22:29:49 | [Mutex] waiting for: [configured:node:node-fc1f173c-2dd6-42a3-ac58-50205b407178:node-ae8d3175-fc69-4bb4-9304-bbb120d81033] 2021-05-03 22:29:49 | [Mutex] received everything. 2021-05-03 22:29:49 | [Mutex] isItemNotified: configured:node:node-fc1f173c-2dd6-42a3-ac58-50205b407178:node-ae8d3175-fc69-4bb4-9304-bbb120d81033 :: true 2021-05-03 22:29:50 | [Mutex] waiting for: [received:nodes:b24c06cf-7683-4fe1-81a7-da58b81cbf88:localhost] 2021-05-03 22:29:50 | [Mutex] received everything. 2021-05-03 22:29:50 | [Mutex] isItemNotified: received:node:b24c06cf-7683-4fe1-81a7-da58b81cbf88:localhost:node-fc1f173c-2dd6-42a3-ac58-50205b407178:Node fc1f173c-2dd6-42a3-ac58-50205b407178 :: true 2021-05-03 22:29:50 | [Mutex] waiting for: [received:nodes:c75da84b-5ebe-4179-8f33-fa1553b0659f:localhost] 2021-05-03 22:29:50 | [Mutex] received everything. 2021-05-03 22:29:50 | [Mutex] isItemNotified: received:node:c75da84b-5ebe-4179-8f33-fa1553b0659f:localhost:node-fc1f173c-2dd6-42a3-ac58-50205b407178:Node fc1f173c-2dd6-42a3-ac58-50205b407178 :: false |
createNodes | 1.919s |
2021-05-03 22:29:46 |
2021-05-03 22:29:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:29:46 | ------------------------------------ 2021-05-03 22:29:46 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-fc1f173c-2dd6-42a3-ac58-50205b407178", "pubsub#title": "Node fc1f173c-2dd6-42a3-ac58-50205b407178" } 2021-05-03 22:29:47 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-03 22:29:48 | [Mutex] waiting for: [received:nodes:dd3d6234-fb40-44a2-bdaa-8dc1d38bb67a:localhost] 2021-05-03 22:29:48 | [Mutex] received everything. 2021-05-03 22:29:48 | [Mutex] isItemNotified: received:node:dd3d6234-fb40-44a2-bdaa-8dc1d38bb67a:localhost:node-fc1f173c-2dd6-42a3-ac58-50205b407178:Node fc1f173c-2dd6-42a3-ac58-50205b407178 :: true |
createSubnodes | 1.030s |
2021-05-03 22:29:48 |
2021-05-03 22:29:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:29:48 | ------------------------------------ 2021-05-03 22:29:48 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-ae8d3175-fc69-4bb4-9304-bbb120d81033", "pubsub#title": "Node ae8d3175-fc69-4bb4-9304-bbb120d81033" } 2021-05-03 22:29:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-03 22:29:49 | [Mutex] waiting for: [received:nodes:09ec1a7d-4ee1-4d61-bb9d-064194b8cc4a:localhost] 2021-05-03 22:29:49 | [Mutex] waiting for: [received:nodes:09ec1a7d-4ee1-4d61-bb9d-064194b8cc4a:localhost] 2021-05-03 22:29:49 | [Mutex] received everything. 2021-05-03 22:29:49 | [Mutex] isItemNotified: received:node:09ec1a7d-4ee1-4d61-bb9d-064194b8cc4a:localhost:node-ae8d3175-fc69-4bb4-9304-bbb120d81033:Node ae8d3175-fc69-4bb4-9304-bbb120d81033 :: true |
deleteNodes | 1.020s |
2021-05-03 22:29:53 |
2021-05-03 22:29:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:29:53 | ------------------------------------ 2021-05-03 22:29:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ae8d3175-fc69-4bb4-9304-bbb120d81033" } 2021-05-03 22:29:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-03 22:29:54 | [Mutex] waiting for: [received:nodes:edd9e1c5-c25a-4efe-94b0-1adc4b5406c5:localhost] 2021-05-03 22:29:54 | [Mutex] received everything. 2021-05-03 22:29:54 | [Mutex] isItemNotified: received:node:edd9e1c5-c25a-4efe-94b0-1adc4b5406c5:localhost:node-ae8d3175-fc69-4bb4-9304-bbb120d81033:Node ae8d3175-fc69-4bb4-9304-bbb120d81033 :: false |
deleteSubnodes | 1.029s |
2021-05-03 22:29:52 |
2021-05-03 22:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:29:52 | ------------------------------------ 2021-05-03 22:29:52 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-fc1f173c-2dd6-42a3-ac58-50205b407178" } 2021-05-03 22:29:52 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-03 22:29:53 | [Mutex] waiting for: [received:nodes:feb425d9-e742-498e-a0fc-0fea17ce626f:localhost] 2021-05-03 22:29:53 | [Mutex] received everything. 2021-05-03 22:29:53 | [Mutex] isItemNotified: received:node:feb425d9-e742-498e-a0fc-0fea17ce626f:localhost:node-fc1f173c-2dd6-42a3-ac58-50205b407178:Node fc1f173c-2dd6-42a3-ac58-50205b407178 :: false 2021-05-03 22:29:53 | [Mutex] waiting for: [received:nodes:0583b6a6-9203-4580-b863-e871a7653a7e:localhost] 2021-05-03 22:29:53 | [Mutex] received everything. 2021-05-03 22:29:53 | [Mutex] isItemNotified: received:node:0583b6a6-9203-4580-b863-e871a7653a7e:localhost:node-fc1f173c-2dd6-42a3-ac58-50205b407178:Node fc1f173c-2dd6-42a3-ac58-50205b407178 :: false |
publishItemsToNodes | 0.051s |
2021-05-03 22:29:51 |
2021-05-03 22:29:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:29:51 | ------------------------------------ 2021-05-03 22:29:51 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-fc1f173c-2dd6-42a3-ac58-50205b407178", "entry": "<test>item-24494311-9f38-4287-a71e-258b9616ea45</test>", "item-id": "item-24494311-9f38-4287-a71e-258b9616ea45" } 2021-05-03 22:29:51 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-24494311-9f38-4287-a71e-258b9616ea45" } 2021-05-03 22:29:51 | [Mutex] waiting for: [published:item:notifieditem-24494311-9f38-4287-a71e-258b9616ea45:admin@test-domain.com] 2021-05-03 22:29:51 | [Mutex] received everything. 2021-05-03 22:29:51 | [Mutex] isItemNotified: published:item:notifieditem-24494311-9f38-4287-a71e-258b9616ea45:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2021-05-03 22:29:51 |
2021-05-03 22:29:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:29:51 | ------------------------------------ 2021-05-03 22:29:51 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-fc1f173c-2dd6-42a3-ac58-50205b407178", "item-id": "item-24494311-9f38-4287-a71e-258b9616ea45" } 2021-05-03 22:29:51 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-24494311-9f38-4287-a71e-258b9616ea45" } 2021-05-03 22:29:51 | [Mutex] received everything. 2021-05-03 22:29:51 | [Mutex] isItemNotified: retracted:item:notifieditem-24494311-9f38-4287-a71e-258b9616ea45:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.071s |
2021-05-03 22:29:51 |
2021-05-03 22:29:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:29:51 | ------------------------------------ 2021-05-03 22:29:51 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-fc1f173c-2dd6-42a3-ac58-50205b407178", "item-id": "item-24494311-9f38-4287-a71e-258b9616ea45" } 2021-05-03 22:29:51 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-fc1f173c-2dd6-42a3-ac58-50205b407178", "item-id": "item-24494311-9f38-4287-a71e-258b9616ea45", "item": [ "<item id=\"item-24494311-9f38-4287-a71e-258b9616ea45\"><test>item-24494311-9f38-4287-a71e-258b9616ea45</test></item>" ] } 2021-05-03 22:29:51 | [Mutex] notify: [retrieved:item:item-24494311-9f38-4287-a71e-258b9616ea45:payload-matches:true:localhost] 2021-05-03 22:29:51 | [Mutex] received everything. 2021-05-03 22:29:51 | [Mutex] isItemNotified: retrieved:item:item-24494311-9f38-4287-a71e-258b9616ea45:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2021-05-03 22:29:51 |
2021-05-03 22:29:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:29:51 | ------------------------------------ 2021-05-03 22:29:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-05-03 22:29:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-fc1f173c-2dd6-42a3-ac58-50205b407178", "node-ae8d3175-fc69-4bb4-9304-bbb120d81033" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-05-03 22:29:51 |
2021-05-03 22:29:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:29:51 | ------------------------------------ 2021-05-03 22:29:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-fc1f173c-2dd6-42a3-ac58-50205b407178)" } 2021-05-03 22:29:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2021-05-03 22:29:50 |
2021-05-03 22:29:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:29:50 | ------------------------------------ 2021-05-03 22:29:50 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-fc1f173c-2dd6-42a3-ac58-50205b407178", "jids": [ "admin@test-domain.com" ] } 2021-05-03 22:29:50 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2021-05-03 22:29:51 |
2021-05-03 22:29:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-03 22:29:51 | ------------------------------------ 2021-05-03 22:29:51 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-fc1f173c-2dd6-42a3-ac58-50205b407178", "jids": [ "admin@test-domain.com" ] } 2021-05-03 22:29:51 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |