Test duration : 8.926s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.126s |
2021-03-14 23:01:39 |
2021-03-14 23:01:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 23:01:39 | ------------------------------------ 2021-03-14 23:01:39 | [Mutex] waiting for: [configured:node:node-0fad4f10-aa25-4c1f-964e-ced532c8ee97:node-39e08f42-3631-42ee-bab8-0f3cf271bc31] 2021-03-14 23:01:39 | [Mutex] received everything. 2021-03-14 23:01:39 | [Mutex] isItemNotified: configured:node:node-0fad4f10-aa25-4c1f-964e-ced532c8ee97:node-39e08f42-3631-42ee-bab8-0f3cf271bc31 :: true 2021-03-14 23:01:40 | [Mutex] waiting for: [received:nodes:e5637c97-0e2b-42bc-9c87-5e1f93a944da:localhost] 2021-03-14 23:01:40 | [Mutex] received everything. 2021-03-14 23:01:40 | [Mutex] isItemNotified: received:node:e5637c97-0e2b-42bc-9c87-5e1f93a944da:localhost:node-0fad4f10-aa25-4c1f-964e-ced532c8ee97:Node 0fad4f10-aa25-4c1f-964e-ced532c8ee97 :: true 2021-03-14 23:01:40 | [Mutex] waiting for: [received:nodes:f331669d-193a-49ce-b887-a26b3238d67b:localhost] 2021-03-14 23:01:40 | [Mutex] waiting for: [received:nodes:f331669d-193a-49ce-b887-a26b3238d67b:localhost] 2021-03-14 23:01:40 | [Mutex] received everything. 2021-03-14 23:01:40 | [Mutex] isItemNotified: received:node:f331669d-193a-49ce-b887-a26b3238d67b:localhost:node-0fad4f10-aa25-4c1f-964e-ced532c8ee97:Node 0fad4f10-aa25-4c1f-964e-ced532c8ee97 :: false |
createNodes | 1.666s |
2021-03-14 23:01:36 |
2021-03-14 23:01:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 23:01:36 | ------------------------------------ 2021-03-14 23:01:37 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-0fad4f10-aa25-4c1f-964e-ced532c8ee97", "pubsub#title": "Node 0fad4f10-aa25-4c1f-964e-ced532c8ee97" } 2021-03-14 23:01:37 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-14 23:01:38 | [Mutex] waiting for: [received:nodes:d4a5f213-0143-4e92-a08d-4a319d8b65a5:localhost] 2021-03-14 23:01:38 | [Mutex] received everything. 2021-03-14 23:01:38 | [Mutex] isItemNotified: received:node:d4a5f213-0143-4e92-a08d-4a319d8b65a5:localhost:node-0fad4f10-aa25-4c1f-964e-ced532c8ee97:Node 0fad4f10-aa25-4c1f-964e-ced532c8ee97 :: true |
createSubnodes | 1.023s |
2021-03-14 23:01:38 |
2021-03-14 23:01:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 23:01:38 | ------------------------------------ 2021-03-14 23:01:38 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-39e08f42-3631-42ee-bab8-0f3cf271bc31", "pubsub#title": "Node 39e08f42-3631-42ee-bab8-0f3cf271bc31" } 2021-03-14 23:01:38 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-14 23:01:39 | [Mutex] waiting for: [received:nodes:564d58d2-2908-457c-aef6-94641231eb25:localhost] 2021-03-14 23:01:39 | [Mutex] waiting for: [received:nodes:564d58d2-2908-457c-aef6-94641231eb25:localhost] 2021-03-14 23:01:39 | [Mutex] received everything. 2021-03-14 23:01:39 | [Mutex] isItemNotified: received:node:564d58d2-2908-457c-aef6-94641231eb25:localhost:node-39e08f42-3631-42ee-bab8-0f3cf271bc31:Node 39e08f42-3631-42ee-bab8-0f3cf271bc31 :: true |
deleteNodes | 1.025s |
2021-03-14 23:01:43 |
2021-03-14 23:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 23:01:43 | ------------------------------------ 2021-03-14 23:01:43 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-39e08f42-3631-42ee-bab8-0f3cf271bc31" } 2021-03-14 23:01:43 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-14 23:01:44 | [Mutex] waiting for: [received:nodes:046a926c-52a4-4f61-94ee-8397009571c0:localhost] 2021-03-14 23:01:44 | [Mutex] received everything. 2021-03-14 23:01:44 | [Mutex] isItemNotified: received:node:046a926c-52a4-4f61-94ee-8397009571c0:localhost:node-39e08f42-3631-42ee-bab8-0f3cf271bc31:Node 39e08f42-3631-42ee-bab8-0f3cf271bc31 :: false |
deleteSubnodes | 1.025s |
2021-03-14 23:01:42 |
2021-03-14 23:01:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 23:01:42 | ------------------------------------ 2021-03-14 23:01:42 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0fad4f10-aa25-4c1f-964e-ced532c8ee97" } 2021-03-14 23:01:42 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-14 23:01:43 | [Mutex] waiting for: [received:nodes:17d51b32-4426-4917-a345-81d5fb5e3224:localhost] 2021-03-14 23:01:43 | [Mutex] received everything. 2021-03-14 23:01:43 | [Mutex] isItemNotified: received:node:17d51b32-4426-4917-a345-81d5fb5e3224:localhost:node-0fad4f10-aa25-4c1f-964e-ced532c8ee97:Node 0fad4f10-aa25-4c1f-964e-ced532c8ee97 :: false 2021-03-14 23:01:43 | [Mutex] waiting for: [received:nodes:7e4d418e-8d80-45be-86d9-cf546ff07c33:localhost] 2021-03-14 23:01:43 | [Mutex] received everything. 2021-03-14 23:01:43 | [Mutex] isItemNotified: received:node:7e4d418e-8d80-45be-86d9-cf546ff07c33:localhost:node-0fad4f10-aa25-4c1f-964e-ced532c8ee97:Node 0fad4f10-aa25-4c1f-964e-ced532c8ee97 :: false |
publishItemsToNodes | 0.066s |
2021-03-14 23:01:41 |
2021-03-14 23:01:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 23:01:41 | ------------------------------------ 2021-03-14 23:01:41 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-0fad4f10-aa25-4c1f-964e-ced532c8ee97", "entry": "<test>item-f778e6a5-bcbf-4cc0-aebb-d3352d983c20</test>", "item-id": "item-f778e6a5-bcbf-4cc0-aebb-d3352d983c20" } 2021-03-14 23:01:41 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f778e6a5-bcbf-4cc0-aebb-d3352d983c20" } 2021-03-14 23:01:41 | [Mutex] waiting for: [published:item:notifieditem-f778e6a5-bcbf-4cc0-aebb-d3352d983c20:admin@test-domain.com] 2021-03-14 23:01:41 | [Mutex] received everything. 2021-03-14 23:01:41 | [Mutex] isItemNotified: published:item:notifieditem-f778e6a5-bcbf-4cc0-aebb-d3352d983c20:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2021-03-14 23:01:41 |
2021-03-14 23:01:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 23:01:41 | ------------------------------------ 2021-03-14 23:01:41 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-0fad4f10-aa25-4c1f-964e-ced532c8ee97", "item-id": "item-f778e6a5-bcbf-4cc0-aebb-d3352d983c20" } 2021-03-14 23:01:41 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f778e6a5-bcbf-4cc0-aebb-d3352d983c20" } 2021-03-14 23:01:41 | [Mutex] received everything. 2021-03-14 23:01:41 | [Mutex] isItemNotified: retracted:item:notifieditem-f778e6a5-bcbf-4cc0-aebb-d3352d983c20:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.048s |
2021-03-14 23:01:41 |
2021-03-14 23:01:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 23:01:41 | ------------------------------------ 2021-03-14 23:01:41 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-0fad4f10-aa25-4c1f-964e-ced532c8ee97", "item-id": "item-f778e6a5-bcbf-4cc0-aebb-d3352d983c20" } 2021-03-14 23:01:41 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-0fad4f10-aa25-4c1f-964e-ced532c8ee97", "item-id": "item-f778e6a5-bcbf-4cc0-aebb-d3352d983c20", "item": [ "<item id=\"item-f778e6a5-bcbf-4cc0-aebb-d3352d983c20\"><test>item-f778e6a5-bcbf-4cc0-aebb-d3352d983c20</test></item>" ] } 2021-03-14 23:01:41 | [Mutex] notify: [retrieved:item:item-f778e6a5-bcbf-4cc0-aebb-d3352d983c20:payload-matches:true:localhost] 2021-03-14 23:01:41 | [Mutex] received everything. 2021-03-14 23:01:41 | [Mutex] isItemNotified: retrieved:item:item-f778e6a5-bcbf-4cc0-aebb-d3352d983c20:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.059s |
2021-03-14 23:01:41 |
2021-03-14 23:01:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 23:01:41 | ------------------------------------ 2021-03-14 23:01:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-03-14 23:01:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-0fad4f10-aa25-4c1f-964e-ced532c8ee97", "test", "node-39e08f42-3631-42ee-bab8-0f3cf271bc31" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2021-03-14 23:01:41 |
2021-03-14 23:01:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 23:01:41 | ------------------------------------ 2021-03-14 23:01:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-0fad4f10-aa25-4c1f-964e-ced532c8ee97)" } 2021-03-14 23:01:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.020s |
2021-03-14 23:01:40 |
2021-03-14 23:01:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 23:01:40 | ------------------------------------ 2021-03-14 23:01:40 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-0fad4f10-aa25-4c1f-964e-ced532c8ee97", "jids": [ "admin@test-domain.com" ] } 2021-03-14 23:01:40 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.092s |
2021-03-14 23:01:41 |
2021-03-14 23:01:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 23:01:41 | ------------------------------------ 2021-03-14 23:01:41 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-0fad4f10-aa25-4c1f-964e-ced532c8ee97", "jids": [ "admin@test-domain.com" ] } 2021-03-14 23:01:41 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |