Test duration : 9.049s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.112s |
2020-10-01 22:43:23 |
2020-10-01 22:43:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:43:23 | ------------------------------------ 2020-10-01 22:43:23 | [Mutex] waiting for: [configured:node:node-8816957f-4f10-4d06-bae7-4c329d93767f:node-28121270-833b-4d5f-8934-609e4f9e7f33] 2020-10-01 22:43:24 | [Mutex] received everything. 2020-10-01 22:43:24 | [Mutex] isItemNotified: configured:node:node-8816957f-4f10-4d06-bae7-4c329d93767f:node-28121270-833b-4d5f-8934-609e4f9e7f33 :: true 2020-10-01 22:43:25 | [Mutex] waiting for: [received:nodes:b5e02a61-e20d-4682-8fab-e6ef97d4f00f:localhost] 2020-10-01 22:43:25 | [Mutex] received everything. 2020-10-01 22:43:25 | [Mutex] isItemNotified: received:node:b5e02a61-e20d-4682-8fab-e6ef97d4f00f:localhost:node-8816957f-4f10-4d06-bae7-4c329d93767f:Node 8816957f-4f10-4d06-bae7-4c329d93767f :: true 2020-10-01 22:43:25 | [Mutex] waiting for: [received:nodes:7c258d15-707f-4dc3-bf67-798de4379f74:localhost] 2020-10-01 22:43:25 | [Mutex] received everything. 2020-10-01 22:43:25 | [Mutex] isItemNotified: received:node:7c258d15-707f-4dc3-bf67-798de4379f74:localhost:node-8816957f-4f10-4d06-bae7-4c329d93767f:Node 8816957f-4f10-4d06-bae7-4c329d93767f :: false |
createNodes | 1.679s |
2020-10-01 22:43:21 |
2020-10-01 22:43:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:43:21 | ------------------------------------ 2020-10-01 22:43:21 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-8816957f-4f10-4d06-bae7-4c329d93767f", "pubsub#title": "Node 8816957f-4f10-4d06-bae7-4c329d93767f" } 2020-10-01 22:43:21 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-01 22:43:22 | [Mutex] waiting for: [received:nodes:9570cc7b-11b1-4233-9473-eab888aa817f:localhost] 2020-10-01 22:43:22 | [Mutex] received everything. 2020-10-01 22:43:22 | [Mutex] isItemNotified: received:node:9570cc7b-11b1-4233-9473-eab888aa817f:localhost:node-8816957f-4f10-4d06-bae7-4c329d93767f:Node 8816957f-4f10-4d06-bae7-4c329d93767f :: true |
createSubnodes | 1.029s |
2020-10-01 22:43:22 |
2020-10-01 22:43:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:43:22 | ------------------------------------ 2020-10-01 22:43:22 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-28121270-833b-4d5f-8934-609e4f9e7f33", "pubsub#title": "Node 28121270-833b-4d5f-8934-609e4f9e7f33" } 2020-10-01 22:43:22 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-01 22:43:23 | [Mutex] waiting for: [received:nodes:5d97050b-431e-4230-b552-b42d493971a1:localhost] 2020-10-01 22:43:23 | [Mutex] received everything. 2020-10-01 22:43:23 | [Mutex] isItemNotified: received:node:5d97050b-431e-4230-b552-b42d493971a1:localhost:node-28121270-833b-4d5f-8934-609e4f9e7f33:Node 28121270-833b-4d5f-8934-609e4f9e7f33 :: true |
deleteNodes | 1.023s |
2020-10-01 22:43:28 |
2020-10-01 22:43:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:43:28 | ------------------------------------ 2020-10-01 22:43:28 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-28121270-833b-4d5f-8934-609e4f9e7f33" } 2020-10-01 22:43:28 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-01 22:43:29 | [Mutex] waiting for: [received:nodes:f121b34d-cc99-4d31-9292-166d25806bf6:localhost] 2020-10-01 22:43:29 | [Mutex] received everything. 2020-10-01 22:43:29 | [Mutex] isItemNotified: received:node:f121b34d-cc99-4d31-9292-166d25806bf6:localhost:node-28121270-833b-4d5f-8934-609e4f9e7f33:Node 28121270-833b-4d5f-8934-609e4f9e7f33 :: false |
deleteSubnodes | 1.028s |
2020-10-01 22:43:27 |
2020-10-01 22:43:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:43:27 | ------------------------------------ 2020-10-01 22:43:27 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8816957f-4f10-4d06-bae7-4c329d93767f" } 2020-10-01 22:43:27 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-01 22:43:28 | [Mutex] waiting for: [received:nodes:2d2aea6d-b748-4ada-b242-550089188435:localhost] 2020-10-01 22:43:28 | [Mutex] received everything. 2020-10-01 22:43:28 | [Mutex] isItemNotified: received:node:2d2aea6d-b748-4ada-b242-550089188435:localhost:node-8816957f-4f10-4d06-bae7-4c329d93767f:Node 8816957f-4f10-4d06-bae7-4c329d93767f :: false 2020-10-01 22:43:28 | [Mutex] waiting for: [received:nodes:22136706-517d-4546-a306-412c9eff0ab9:localhost] 2020-10-01 22:43:28 | [Mutex] received everything. 2020-10-01 22:43:28 | [Mutex] isItemNotified: received:node:22136706-517d-4546-a306-412c9eff0ab9:localhost:node-8816957f-4f10-4d06-bae7-4c329d93767f:Node 8816957f-4f10-4d06-bae7-4c329d93767f :: false |
publishItemsToNodes | 0.037s |
2020-10-01 22:43:26 |
2020-10-01 22:43:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:43:26 | ------------------------------------ 2020-10-01 22:43:26 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-8816957f-4f10-4d06-bae7-4c329d93767f", "entry": "<test>item-7e344479-205e-46c1-aa23-77c9290e9486</test>", "item-id": "item-7e344479-205e-46c1-aa23-77c9290e9486" } 2020-10-01 22:43:26 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7e344479-205e-46c1-aa23-77c9290e9486" } 2020-10-01 22:43:26 | [Mutex] waiting for: [published:item:notifieditem-7e344479-205e-46c1-aa23-77c9290e9486:admin@test-domain.com] 2020-10-01 22:43:26 | [Mutex] received everything. 2020-10-01 22:43:26 | [Mutex] isItemNotified: published:item:notifieditem-7e344479-205e-46c1-aa23-77c9290e9486:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2020-10-01 22:43:26 |
2020-10-01 22:43:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:43:26 | ------------------------------------ 2020-10-01 22:43:26 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-8816957f-4f10-4d06-bae7-4c329d93767f", "item-id": "item-7e344479-205e-46c1-aa23-77c9290e9486" } 2020-10-01 22:43:26 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7e344479-205e-46c1-aa23-77c9290e9486" } 2020-10-01 22:43:26 | [Mutex] received everything. 2020-10-01 22:43:26 | [Mutex] isItemNotified: retracted:item:notifieditem-7e344479-205e-46c1-aa23-77c9290e9486:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.124s |
2020-10-01 22:43:26 |
2020-10-01 22:43:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:43:26 | ------------------------------------ 2020-10-01 22:43:26 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-8816957f-4f10-4d06-bae7-4c329d93767f", "item-id": "item-7e344479-205e-46c1-aa23-77c9290e9486" } 2020-10-01 22:43:26 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-8816957f-4f10-4d06-bae7-4c329d93767f", "item-id": "item-7e344479-205e-46c1-aa23-77c9290e9486", "item": [ "<item id=\"item-7e344479-205e-46c1-aa23-77c9290e9486\"><test>item-7e344479-205e-46c1-aa23-77c9290e9486</test></item>" ] } 2020-10-01 22:43:26 | [Mutex] notify: [retrieved:item:item-7e344479-205e-46c1-aa23-77c9290e9486:payload-matches:true:localhost] 2020-10-01 22:43:26 | [Mutex] received everything. 2020-10-01 22:43:26 | [Mutex] isItemNotified: retrieved:item:item-7e344479-205e-46c1-aa23-77c9290e9486:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2020-10-01 22:43:26 |
2020-10-01 22:43:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:43:26 | ------------------------------------ 2020-10-01 22:43:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-01 22:43:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-28121270-833b-4d5f-8934-609e4f9e7f33", "node-8816957f-4f10-4d06-bae7-4c329d93767f" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-10-01 22:43:26 |
2020-10-01 22:43:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:43:26 | ------------------------------------ 2020-10-01 22:43:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-8816957f-4f10-4d06-bae7-4c329d93767f)" } 2020-10-01 22:43:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2020-10-01 22:43:25 |
2020-10-01 22:43:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:43:25 | ------------------------------------ 2020-10-01 22:43:25 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-8816957f-4f10-4d06-bae7-4c329d93767f", "jids": [ "admin@test-domain.com" ] } 2020-10-01 22:43:25 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2020-10-01 22:43:26 |
2020-10-01 22:43:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:43:26 | ------------------------------------ 2020-10-01 22:43:26 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-8816957f-4f10-4d06-bae7-4c329d93767f", "jids": [ "admin@test-domain.com" ] } 2020-10-01 22:43:26 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |