Test duration : 9.251s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.113s |
2021-05-05 22:41:36 |
2021-05-05 22:41:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:41:36 | ------------------------------------ 2021-05-05 22:41:36 | [Mutex] waiting for: [configured:node:node-74e75acc-51c2-4eb3-86b8-ff3d3c40532c:node-cb898bd3-3737-475d-b2de-270218722a48] 2021-05-05 22:41:36 | [Mutex] received everything. 2021-05-05 22:41:36 | [Mutex] isItemNotified: configured:node:node-74e75acc-51c2-4eb3-86b8-ff3d3c40532c:node-cb898bd3-3737-475d-b2de-270218722a48 :: true 2021-05-05 22:41:37 | [Mutex] waiting for: [received:nodes:53ea7fb6-a6ee-4a60-8f0a-0cfc52b66bbb:localhost] 2021-05-05 22:41:37 | [Mutex] received everything. 2021-05-05 22:41:37 | [Mutex] isItemNotified: received:node:53ea7fb6-a6ee-4a60-8f0a-0cfc52b66bbb:localhost:node-74e75acc-51c2-4eb3-86b8-ff3d3c40532c:Node 74e75acc-51c2-4eb3-86b8-ff3d3c40532c :: true 2021-05-05 22:41:38 | [Mutex] waiting for: [received:nodes:27328a33-f0f6-46a4-8cca-2e2d12876099:localhost] 2021-05-05 22:41:38 | [Mutex] waiting for: [received:nodes:27328a33-f0f6-46a4-8cca-2e2d12876099:localhost] 2021-05-05 22:41:38 | [Mutex] received everything. 2021-05-05 22:41:38 | [Mutex] isItemNotified: received:node:27328a33-f0f6-46a4-8cca-2e2d12876099:localhost:node-74e75acc-51c2-4eb3-86b8-ff3d3c40532c:Node 74e75acc-51c2-4eb3-86b8-ff3d3c40532c :: false |
createNodes | 1.814s |
2021-05-05 22:41:34 |
2021-05-05 22:41:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:41:34 | ------------------------------------ 2021-05-05 22:41: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-74e75acc-51c2-4eb3-86b8-ff3d3c40532c", "pubsub#title": "Node 74e75acc-51c2-4eb3-86b8-ff3d3c40532c" } 2021-05-05 22:41:34 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-05 22:41:35 | [Mutex] waiting for: [received:nodes:bd0994d9-c990-457d-9970-25f62d063ae1:localhost] 2021-05-05 22:41:35 | [Mutex] waiting for: [received:nodes:bd0994d9-c990-457d-9970-25f62d063ae1:localhost] 2021-05-05 22:41:35 | [Mutex] waiting for: [received:nodes:bd0994d9-c990-457d-9970-25f62d063ae1:localhost] 2021-05-05 22:41:35 | [Mutex] received everything. 2021-05-05 22:41:35 | [Mutex] isItemNotified: received:node:bd0994d9-c990-457d-9970-25f62d063ae1:localhost:node-74e75acc-51c2-4eb3-86b8-ff3d3c40532c:Node 74e75acc-51c2-4eb3-86b8-ff3d3c40532c :: true |
createSubnodes | 1.029s |
2021-05-05 22:41:35 |
2021-05-05 22:41:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:41:35 | ------------------------------------ 2021-05-05 22:41:35 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-cb898bd3-3737-475d-b2de-270218722a48", "pubsub#title": "Node cb898bd3-3737-475d-b2de-270218722a48" } 2021-05-05 22:41:35 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-05 22:41:36 | [Mutex] waiting for: [received:nodes:d9aa0723-e9b0-446d-b780-9232e769496d:localhost] 2021-05-05 22:41:36 | [Mutex] received everything. 2021-05-05 22:41:36 | [Mutex] isItemNotified: received:node:d9aa0723-e9b0-446d-b780-9232e769496d:localhost:node-cb898bd3-3737-475d-b2de-270218722a48:Node cb898bd3-3737-475d-b2de-270218722a48 :: true |
deleteNodes | 1.029s |
2021-05-05 22:41:41 |
2021-05-05 22:41:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:41:41 | ------------------------------------ 2021-05-05 22:41:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-cb898bd3-3737-475d-b2de-270218722a48" } 2021-05-05 22:41:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-05 22:41:42 | [Mutex] waiting for: [received:nodes:6052b923-ad63-4c74-92a5-b02b55045156:localhost] 2021-05-05 22:41:42 | [Mutex] waiting for: [received:nodes:6052b923-ad63-4c74-92a5-b02b55045156:localhost] 2021-05-05 22:41:42 | [Mutex] waiting for: [received:nodes:6052b923-ad63-4c74-92a5-b02b55045156:localhost] 2021-05-05 22:41:42 | [Mutex] received everything. 2021-05-05 22:41:42 | [Mutex] isItemNotified: received:node:6052b923-ad63-4c74-92a5-b02b55045156:localhost:node-cb898bd3-3737-475d-b2de-270218722a48:Node cb898bd3-3737-475d-b2de-270218722a48 :: false |
deleteSubnodes | 1.038s |
2021-05-05 22:41:40 |
2021-05-05 22:41:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:41:40 | ------------------------------------ 2021-05-05 22:41:40 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-74e75acc-51c2-4eb3-86b8-ff3d3c40532c" } 2021-05-05 22:41:40 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-05 22:41:41 | [Mutex] waiting for: [received:nodes:bd3e9a7e-a166-48b8-bac1-863d6557f3bc:localhost] 2021-05-05 22:41:41 | [Mutex] received everything. 2021-05-05 22:41:41 | [Mutex] isItemNotified: received:node:bd3e9a7e-a166-48b8-bac1-863d6557f3bc:localhost:node-74e75acc-51c2-4eb3-86b8-ff3d3c40532c:Node 74e75acc-51c2-4eb3-86b8-ff3d3c40532c :: false 2021-05-05 22:41:41 | [Mutex] waiting for: [received:nodes:932aebe7-4dcc-4f4f-aed8-01282adafda0:localhost] 2021-05-05 22:41:41 | [Mutex] received everything. 2021-05-05 22:41:41 | [Mutex] isItemNotified: received:node:932aebe7-4dcc-4f4f-aed8-01282adafda0:localhost:node-74e75acc-51c2-4eb3-86b8-ff3d3c40532c:Node 74e75acc-51c2-4eb3-86b8-ff3d3c40532c :: false |
publishItemsToNodes | 0.043s |
2021-05-05 22:41:39 |
2021-05-05 22:41:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:41:39 | ------------------------------------ 2021-05-05 22:41:39 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-74e75acc-51c2-4eb3-86b8-ff3d3c40532c", "entry": "<test>item-66d376a8-2ae8-4a78-a3f0-7b28b9c13bef</test>", "item-id": "item-66d376a8-2ae8-4a78-a3f0-7b28b9c13bef" } 2021-05-05 22:41:39 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-66d376a8-2ae8-4a78-a3f0-7b28b9c13bef" } 2021-05-05 22:41:39 | [Mutex] received everything. 2021-05-05 22:41:39 | [Mutex] isItemNotified: published:item:notifieditem-66d376a8-2ae8-4a78-a3f0-7b28b9c13bef:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2021-05-05 22:41:39 |
2021-05-05 22:41:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:41:39 | ------------------------------------ 2021-05-05 22:41:39 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-74e75acc-51c2-4eb3-86b8-ff3d3c40532c", "item-id": "item-66d376a8-2ae8-4a78-a3f0-7b28b9c13bef" } 2021-05-05 22:41:39 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-66d376a8-2ae8-4a78-a3f0-7b28b9c13bef" } 2021-05-05 22:41:39 | [Mutex] received everything. 2021-05-05 22:41:39 | [Mutex] isItemNotified: retracted:item:notifieditem-66d376a8-2ae8-4a78-a3f0-7b28b9c13bef:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.075s |
2021-05-05 22:41:39 |
2021-05-05 22:41:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:41:39 | ------------------------------------ 2021-05-05 22:41:39 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-74e75acc-51c2-4eb3-86b8-ff3d3c40532c", "item-id": "item-66d376a8-2ae8-4a78-a3f0-7b28b9c13bef" } 2021-05-05 22:41:39 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-74e75acc-51c2-4eb3-86b8-ff3d3c40532c", "item-id": "item-66d376a8-2ae8-4a78-a3f0-7b28b9c13bef", "item": [ "<item id=\"item-66d376a8-2ae8-4a78-a3f0-7b28b9c13bef\"><test>item-66d376a8-2ae8-4a78-a3f0-7b28b9c13bef</test></item>" ] } 2021-05-05 22:41:39 | [Mutex] notify: [retrieved:item:item-66d376a8-2ae8-4a78-a3f0-7b28b9c13bef:payload-matches:true:localhost] 2021-05-05 22:41:39 | [Mutex] received everything. 2021-05-05 22:41:39 | [Mutex] isItemNotified: retrieved:item:item-66d376a8-2ae8-4a78-a3f0-7b28b9c13bef:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.053s |
2021-05-05 22:41:39 |
2021-05-05 22:41:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:41:39 | ------------------------------------ 2021-05-05 22:41:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-05-05 22:41:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-cb898bd3-3737-475d-b2de-270218722a48", "test", "node-74e75acc-51c2-4eb3-86b8-ff3d3c40532c" ] } |
retrieveUserSubscriptionsWithRegex | 0.049s |
2021-05-05 22:41:39 |
2021-05-05 22:41:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:41:39 | ------------------------------------ 2021-05-05 22:41:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-74e75acc-51c2-4eb3-86b8-ff3d3c40532c)" } 2021-05-05 22:41:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2021-05-05 22:41:38 |
2021-05-05 22:41:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:41:38 | ------------------------------------ 2021-05-05 22:41:38 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-74e75acc-51c2-4eb3-86b8-ff3d3c40532c", "jids": [ "admin@test-domain.com" ] } 2021-05-05 22:41:38 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.087s |
2021-05-05 22:41:39 |
2021-05-05 22:41:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:41:39 | ------------------------------------ 2021-05-05 22:41:39 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-74e75acc-51c2-4eb3-86b8-ff3d3c40532c", "jids": [ "admin@test-domain.com" ] } 2021-05-05 22:41:39 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |