Test duration : 9.001s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.098s |
2020-11-23 21:28:52 |
2020-11-23 21:28:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:28:52 | ------------------------------------ 2020-11-23 21:28:52 | [Mutex] waiting for: [configured:node:node-97a3705a-31e5-4e22-89e0-00f4cd26096d:node-47696681-8c02-4b97-8306-41f293ba0431] 2020-11-23 21:28:52 | [Mutex] received everything. 2020-11-23 21:28:52 | [Mutex] isItemNotified: configured:node:node-97a3705a-31e5-4e22-89e0-00f4cd26096d:node-47696681-8c02-4b97-8306-41f293ba0431 :: true 2020-11-23 21:28:53 | [Mutex] waiting for: [received:nodes:34e40e63-84a0-4a4b-b0af-eb33c4e1d19d:localhost] 2020-11-23 21:28:53 | [Mutex] received everything. 2020-11-23 21:28:53 | [Mutex] isItemNotified: received:node:34e40e63-84a0-4a4b-b0af-eb33c4e1d19d:localhost:node-97a3705a-31e5-4e22-89e0-00f4cd26096d:Node 97a3705a-31e5-4e22-89e0-00f4cd26096d :: true 2020-11-23 21:28:53 | [Mutex] waiting for: [received:nodes:009572ed-1204-47fd-8ccb-a86128168af9:localhost] 2020-11-23 21:28:53 | [Mutex] waiting for: [received:nodes:009572ed-1204-47fd-8ccb-a86128168af9:localhost] 2020-11-23 21:28:53 | [Mutex] received everything. 2020-11-23 21:28:53 | [Mutex] isItemNotified: received:node:009572ed-1204-47fd-8ccb-a86128168af9:localhost:node-97a3705a-31e5-4e22-89e0-00f4cd26096d:Node 97a3705a-31e5-4e22-89e0-00f4cd26096d :: false |
createNodes | 1.581s |
2020-11-23 21:28:49 |
2020-11-23 21:28:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:28:49 | ------------------------------------ 2020-11-23 21:28:50 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-97a3705a-31e5-4e22-89e0-00f4cd26096d", "pubsub#title": "Node 97a3705a-31e5-4e22-89e0-00f4cd26096d" } 2020-11-23 21:28:50 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-23 21:28:51 | [Mutex] waiting for: [received:nodes:72e21a97-f92d-4f70-b298-d38d0df58535:localhost] 2020-11-23 21:28:51 | [Mutex] received everything. 2020-11-23 21:28:51 | [Mutex] isItemNotified: received:node:72e21a97-f92d-4f70-b298-d38d0df58535:localhost:node-97a3705a-31e5-4e22-89e0-00f4cd26096d:Node 97a3705a-31e5-4e22-89e0-00f4cd26096d :: true |
createSubnodes | 1.033s |
2020-11-23 21:28:51 |
2020-11-23 21:28:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:28:51 | ------------------------------------ 2020-11-23 21:28:51 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-47696681-8c02-4b97-8306-41f293ba0431", "pubsub#title": "Node 47696681-8c02-4b97-8306-41f293ba0431" } 2020-11-23 21:28:51 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-23 21:28:52 | [Mutex] waiting for: [received:nodes:d7ca5ba6-066f-437e-b21d-84a8b04a7acc:localhost] 2020-11-23 21:28:52 | [Mutex] received everything. 2020-11-23 21:28:52 | [Mutex] isItemNotified: received:node:d7ca5ba6-066f-437e-b21d-84a8b04a7acc:localhost:node-47696681-8c02-4b97-8306-41f293ba0431:Node 47696681-8c02-4b97-8306-41f293ba0431 :: true |
deleteNodes | 1.025s |
2020-11-23 21:28:56 |
2020-11-23 21:28:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:28:56 | ------------------------------------ 2020-11-23 21:28:56 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-47696681-8c02-4b97-8306-41f293ba0431" } 2020-11-23 21:28:56 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-23 21:28:57 | [Mutex] waiting for: [received:nodes:c1fd8c4c-d2d7-4c4d-bcab-9d14816b01be:localhost] 2020-11-23 21:28:57 | [Mutex] received everything. 2020-11-23 21:28:57 | [Mutex] isItemNotified: received:node:c1fd8c4c-d2d7-4c4d-bcab-9d14816b01be:localhost:node-47696681-8c02-4b97-8306-41f293ba0431:Node 47696681-8c02-4b97-8306-41f293ba0431 :: false |
deleteSubnodes | 1.064s |
2020-11-23 21:28:55 |
2020-11-23 21:28:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:28:55 | ------------------------------------ 2020-11-23 21:28:55 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-97a3705a-31e5-4e22-89e0-00f4cd26096d" } 2020-11-23 21:28:55 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-23 21:28:56 | [Mutex] waiting for: [received:nodes:a09e8ca7-98e2-4312-b89a-2cc87d4cb600:localhost] 2020-11-23 21:28:56 | [Mutex] waiting for: [received:nodes:a09e8ca7-98e2-4312-b89a-2cc87d4cb600:localhost] 2020-11-23 21:28:56 | [Mutex] received everything. 2020-11-23 21:28:56 | [Mutex] isItemNotified: received:node:a09e8ca7-98e2-4312-b89a-2cc87d4cb600:localhost:node-97a3705a-31e5-4e22-89e0-00f4cd26096d:Node 97a3705a-31e5-4e22-89e0-00f4cd26096d :: false 2020-11-23 21:28:56 | [Mutex] waiting for: [received:nodes:5c7399bf-425c-468d-9a2c-7a7bdb377711:localhost] 2020-11-23 21:28:56 | [Mutex] received everything. 2020-11-23 21:28:56 | [Mutex] isItemNotified: received:node:5c7399bf-425c-468d-9a2c-7a7bdb377711:localhost:node-97a3705a-31e5-4e22-89e0-00f4cd26096d:Node 97a3705a-31e5-4e22-89e0-00f4cd26096d :: false |
publishItemsToNodes | 0.052s |
2020-11-23 21:28:54 |
2020-11-23 21:28:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:28:54 | ------------------------------------ 2020-11-23 21:28:54 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-97a3705a-31e5-4e22-89e0-00f4cd26096d", "entry": "<test>item-88dca56d-8972-42b0-8aed-55b07cec6090</test>", "item-id": "item-88dca56d-8972-42b0-8aed-55b07cec6090" } 2020-11-23 21:28:54 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-88dca56d-8972-42b0-8aed-55b07cec6090" } 2020-11-23 21:28:54 | [Mutex] waiting for: [published:item:notifieditem-88dca56d-8972-42b0-8aed-55b07cec6090:admin@test-domain.com] 2020-11-23 21:28:54 | [Mutex] received everything. 2020-11-23 21:28:54 | [Mutex] isItemNotified: published:item:notifieditem-88dca56d-8972-42b0-8aed-55b07cec6090:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2020-11-23 21:28:54 |
2020-11-23 21:28:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:28:54 | ------------------------------------ 2020-11-23 21:28:54 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-97a3705a-31e5-4e22-89e0-00f4cd26096d", "item-id": "item-88dca56d-8972-42b0-8aed-55b07cec6090" } 2020-11-23 21:28:54 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-88dca56d-8972-42b0-8aed-55b07cec6090" } 2020-11-23 21:28:54 | [Mutex] received everything. 2020-11-23 21:28:54 | [Mutex] isItemNotified: retracted:item:notifieditem-88dca56d-8972-42b0-8aed-55b07cec6090:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.024s |
2020-11-23 21:28:54 |
2020-11-23 21:28:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:28:54 | ------------------------------------ 2020-11-23 21:28:54 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-97a3705a-31e5-4e22-89e0-00f4cd26096d", "item-id": "item-88dca56d-8972-42b0-8aed-55b07cec6090" } 2020-11-23 21:28:54 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-97a3705a-31e5-4e22-89e0-00f4cd26096d", "item-id": "item-88dca56d-8972-42b0-8aed-55b07cec6090", "item": [ "<item id=\"item-88dca56d-8972-42b0-8aed-55b07cec6090\"><test>item-88dca56d-8972-42b0-8aed-55b07cec6090</test></item>" ] } 2020-11-23 21:28:54 | [Mutex] notify: [retrieved:item:item-88dca56d-8972-42b0-8aed-55b07cec6090:payload-matches:true:localhost] 2020-11-23 21:28:54 | [Mutex] received everything. 2020-11-23 21:28:54 | [Mutex] isItemNotified: retrieved:item:item-88dca56d-8972-42b0-8aed-55b07cec6090:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.058s |
2020-11-23 21:28:54 |
2020-11-23 21:28:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:28:54 | ------------------------------------ 2020-11-23 21:28:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-11-23 21:28:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-47696681-8c02-4b97-8306-41f293ba0431", "test", "node-97a3705a-31e5-4e22-89e0-00f4cd26096d" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-11-23 21:28:54 |
2020-11-23 21:28:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:28:54 | ------------------------------------ 2020-11-23 21:28:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-97a3705a-31e5-4e22-89e0-00f4cd26096d)" } 2020-11-23 21:28:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-11-23 21:28:53 |
2020-11-23 21:28:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:28:53 | ------------------------------------ 2020-11-23 21:28:53 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-97a3705a-31e5-4e22-89e0-00f4cd26096d", "jids": [ "admin@test-domain.com" ] } 2020-11-23 21:28:53 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.091s |
2020-11-23 21:28:54 |
2020-11-23 21:28:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-23 21:28:54 | ------------------------------------ 2020-11-23 21:28:54 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-97a3705a-31e5-4e22-89e0-00f4cd26096d", "jids": [ "admin@test-domain.com" ] } 2020-11-23 21:28:54 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |