Test duration : 8.952s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.118s |
2021-03-01 21:58:31 |
2021-03-01 21:58:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:58:31 | ------------------------------------ 2021-03-01 21:58:31 | [Mutex] waiting for: [configured:node:node-0bb9fec1-58d8-425e-bfdb-40294561f539:node-b617fad4-5006-4ab6-8430-453d4bccf423] 2021-03-01 21:58:32 | [Mutex] received everything. 2021-03-01 21:58:32 | [Mutex] isItemNotified: configured:node:node-0bb9fec1-58d8-425e-bfdb-40294561f539:node-b617fad4-5006-4ab6-8430-453d4bccf423 :: true 2021-03-01 21:58:33 | [Mutex] waiting for: [received:nodes:c1f10f9d-d842-4066-bcc1-f598e25c83cc:localhost] 2021-03-01 21:58:33 | [Mutex] received everything. 2021-03-01 21:58:33 | [Mutex] isItemNotified: received:node:c1f10f9d-d842-4066-bcc1-f598e25c83cc:localhost:node-0bb9fec1-58d8-425e-bfdb-40294561f539:Node 0bb9fec1-58d8-425e-bfdb-40294561f539 :: true 2021-03-01 21:58:33 | [Mutex] waiting for: [received:nodes:84bf3933-d0e0-4aa7-83d2-7b534e1a62bf:localhost] 2021-03-01 21:58:33 | [Mutex] waiting for: [received:nodes:84bf3933-d0e0-4aa7-83d2-7b534e1a62bf:localhost] 2021-03-01 21:58:33 | [Mutex] received everything. 2021-03-01 21:58:33 | [Mutex] isItemNotified: received:node:84bf3933-d0e0-4aa7-83d2-7b534e1a62bf:localhost:node-0bb9fec1-58d8-425e-bfdb-40294561f539:Node 0bb9fec1-58d8-425e-bfdb-40294561f539 :: false |
createNodes | 1.561s |
2021-03-01 21:58:29 |
2021-03-01 21:58:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:58:29 | ------------------------------------ 2021-03-01 21:58:29 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-0bb9fec1-58d8-425e-bfdb-40294561f539", "pubsub#title": "Node 0bb9fec1-58d8-425e-bfdb-40294561f539" } 2021-03-01 21:58:29 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-01 21:58:30 | [Mutex] waiting for: [received:nodes:3877e693-886a-4927-93ff-40b31a519b26:localhost] 2021-03-01 21:58:30 | [Mutex] received everything. 2021-03-01 21:58:30 | [Mutex] isItemNotified: received:node:3877e693-886a-4927-93ff-40b31a519b26:localhost:node-0bb9fec1-58d8-425e-bfdb-40294561f539:Node 0bb9fec1-58d8-425e-bfdb-40294561f539 :: true |
createSubnodes | 1.029s |
2021-03-01 21:58:30 |
2021-03-01 21:58:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:58:30 | ------------------------------------ 2021-03-01 21:58:30 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-b617fad4-5006-4ab6-8430-453d4bccf423", "pubsub#title": "Node b617fad4-5006-4ab6-8430-453d4bccf423" } 2021-03-01 21:58:30 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-01 21:58:31 | [Mutex] waiting for: [received:nodes:985a253e-53f3-43a1-82bf-3bf7ed9b64fa:localhost] 2021-03-01 21:58:31 | [Mutex] received everything. 2021-03-01 21:58:31 | [Mutex] isItemNotified: received:node:985a253e-53f3-43a1-82bf-3bf7ed9b64fa:localhost:node-b617fad4-5006-4ab6-8430-453d4bccf423:Node b617fad4-5006-4ab6-8430-453d4bccf423 :: true |
deleteNodes | 1.033s |
2021-03-01 21:58:36 |
2021-03-01 21:58:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:58:36 | ------------------------------------ 2021-03-01 21:58:36 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b617fad4-5006-4ab6-8430-453d4bccf423" } 2021-03-01 21:58:36 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-01 21:58:37 | [Mutex] waiting for: [received:nodes:cfea379b-b7ef-49fc-93af-fec35195e644:localhost] 2021-03-01 21:58:37 | [Mutex] received everything. 2021-03-01 21:58:37 | [Mutex] isItemNotified: received:node:cfea379b-b7ef-49fc-93af-fec35195e644:localhost:node-b617fad4-5006-4ab6-8430-453d4bccf423:Node b617fad4-5006-4ab6-8430-453d4bccf423 :: false |
deleteSubnodes | 1.033s |
2021-03-01 21:58:35 |
2021-03-01 21:58:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:58:35 | ------------------------------------ 2021-03-01 21:58:35 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0bb9fec1-58d8-425e-bfdb-40294561f539" } 2021-03-01 21:58:35 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-01 21:58:36 | [Mutex] waiting for: [received:nodes:e266b57b-dd6c-484b-8857-52be86b11bc2:localhost] 2021-03-01 21:58:36 | [Mutex] received everything. 2021-03-01 21:58:36 | [Mutex] isItemNotified: received:node:e266b57b-dd6c-484b-8857-52be86b11bc2:localhost:node-0bb9fec1-58d8-425e-bfdb-40294561f539:Node 0bb9fec1-58d8-425e-bfdb-40294561f539 :: false 2021-03-01 21:58:36 | [Mutex] waiting for: [received:nodes:cfdbe704-65b0-4a34-a30a-cde01cba0f50:localhost] 2021-03-01 21:58:36 | [Mutex] received everything. 2021-03-01 21:58:36 | [Mutex] isItemNotified: received:node:cfdbe704-65b0-4a34-a30a-cde01cba0f50:localhost:node-0bb9fec1-58d8-425e-bfdb-40294561f539:Node 0bb9fec1-58d8-425e-bfdb-40294561f539 :: false |
publishItemsToNodes | 0.039s |
2021-03-01 21:58:34 |
2021-03-01 21:58:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:58:34 | ------------------------------------ 2021-03-01 21:58:34 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-0bb9fec1-58d8-425e-bfdb-40294561f539", "entry": "<test>item-3e8812f3-8f35-4ab2-a77a-148e8b88eef3</test>", "item-id": "item-3e8812f3-8f35-4ab2-a77a-148e8b88eef3" } 2021-03-01 21:58:34 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3e8812f3-8f35-4ab2-a77a-148e8b88eef3" } 2021-03-01 21:58:34 | [Mutex] waiting for: [published:item:notifieditem-3e8812f3-8f35-4ab2-a77a-148e8b88eef3:admin@test-domain.com] 2021-03-01 21:58:34 | [Mutex] received everything. 2021-03-01 21:58:34 | [Mutex] isItemNotified: published:item:notifieditem-3e8812f3-8f35-4ab2-a77a-148e8b88eef3:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2021-03-01 21:58:34 |
2021-03-01 21:58:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:58:34 | ------------------------------------ 2021-03-01 21:58:34 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-0bb9fec1-58d8-425e-bfdb-40294561f539", "item-id": "item-3e8812f3-8f35-4ab2-a77a-148e8b88eef3" } 2021-03-01 21:58:34 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3e8812f3-8f35-4ab2-a77a-148e8b88eef3" } 2021-03-01 21:58:34 | [Mutex] received everything. 2021-03-01 21:58:34 | [Mutex] isItemNotified: retracted:item:notifieditem-3e8812f3-8f35-4ab2-a77a-148e8b88eef3:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.082s |
2021-03-01 21:58:34 |
2021-03-01 21:58:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:58:34 | ------------------------------------ 2021-03-01 21:58:34 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-0bb9fec1-58d8-425e-bfdb-40294561f539", "item-id": "item-3e8812f3-8f35-4ab2-a77a-148e8b88eef3" } 2021-03-01 21:58:34 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-0bb9fec1-58d8-425e-bfdb-40294561f539", "item-id": "item-3e8812f3-8f35-4ab2-a77a-148e8b88eef3", "item": [ "<item id=\"item-3e8812f3-8f35-4ab2-a77a-148e8b88eef3\"><test>item-3e8812f3-8f35-4ab2-a77a-148e8b88eef3</test></item>" ] } 2021-03-01 21:58:34 | [Mutex] notify: [retrieved:item:item-3e8812f3-8f35-4ab2-a77a-148e8b88eef3:payload-matches:true:localhost] 2021-03-01 21:58:34 | [Mutex] received everything. 2021-03-01 21:58:34 | [Mutex] isItemNotified: retrieved:item:item-3e8812f3-8f35-4ab2-a77a-148e8b88eef3:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2021-03-01 21:58:34 |
2021-03-01 21:58:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:58:34 | ------------------------------------ 2021-03-01 21:58:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-03-01 21:58:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-0bb9fec1-58d8-425e-bfdb-40294561f539", "test", "node-b617fad4-5006-4ab6-8430-453d4bccf423" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-03-01 21:58:34 |
2021-03-01 21:58:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:58:34 | ------------------------------------ 2021-03-01 21:58:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-0bb9fec1-58d8-425e-bfdb-40294561f539)" } 2021-03-01 21:58:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2021-03-01 21:58:33 |
2021-03-01 21:58:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:58:33 | ------------------------------------ 2021-03-01 21:58:33 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-0bb9fec1-58d8-425e-bfdb-40294561f539", "jids": [ "admin@test-domain.com" ] } 2021-03-01 21:58:33 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.103s |
2021-03-01 21:58:34 |
2021-03-01 21:58:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:58:34 | ------------------------------------ 2021-03-01 21:58:34 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-0bb9fec1-58d8-425e-bfdb-40294561f539", "jids": [ "admin@test-domain.com" ] } 2021-03-01 21:58:34 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |