Test duration : 9.126s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.084s |
2020-08-27 11:20:46 |
2020-08-27 11:20:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 11:20:46 | ------------------------------------ 2020-08-27 11:20:46 | [Mutex] waiting for: [configured:node:node-71c2d8e1-428b-481d-9cf9-91c78d17f306:node-c1827ef7-d8a2-4f44-9927-97f79445c3a8] 2020-08-27 11:20:46 | [Mutex] received everything. 2020-08-27 11:20:46 | [Mutex] isItemNotified: configured:node:node-71c2d8e1-428b-481d-9cf9-91c78d17f306:node-c1827ef7-d8a2-4f44-9927-97f79445c3a8 :: true 2020-08-27 11:20:47 | [Mutex] waiting for: [received:nodes:7020e3df-6add-4c89-861d-48287b1f15ff:localhost] 2020-08-27 11:20:47 | [Mutex] received everything. 2020-08-27 11:20:47 | [Mutex] isItemNotified: received:node:7020e3df-6add-4c89-861d-48287b1f15ff:localhost:node-71c2d8e1-428b-481d-9cf9-91c78d17f306:Node 71c2d8e1-428b-481d-9cf9-91c78d17f306 :: true 2020-08-27 11:20:47 | [Mutex] waiting for: [received:nodes:b7f173e1-34b3-4c04-b800-63266e1fd8c9:localhost] 2020-08-27 11:20:47 | [Mutex] received everything. 2020-08-27 11:20:47 | [Mutex] isItemNotified: received:node:b7f173e1-34b3-4c04-b800-63266e1fd8c9:localhost:node-71c2d8e1-428b-481d-9cf9-91c78d17f306:Node 71c2d8e1-428b-481d-9cf9-91c78d17f306 :: false |
createNodes | 1.677s |
2020-08-27 11:20:43 |
2020-08-27 11:20:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 11:20:43 | ------------------------------------ 2020-08-27 11:20:43 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-71c2d8e1-428b-481d-9cf9-91c78d17f306", "pubsub#title": "Node 71c2d8e1-428b-481d-9cf9-91c78d17f306" } 2020-08-27 11:20:44 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-27 11:20:45 | [Mutex] waiting for: [received:nodes:87ad34b3-b2bc-4122-8152-c5799cb49ade:localhost] 2020-08-27 11:20:45 | [Mutex] received everything. 2020-08-27 11:20:45 | [Mutex] isItemNotified: received:node:87ad34b3-b2bc-4122-8152-c5799cb49ade:localhost:node-71c2d8e1-428b-481d-9cf9-91c78d17f306:Node 71c2d8e1-428b-481d-9cf9-91c78d17f306 :: true |
createSubnodes | 1.031s |
2020-08-27 11:20:45 |
2020-08-27 11:20:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 11:20:45 | ------------------------------------ 2020-08-27 11:20:45 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-c1827ef7-d8a2-4f44-9927-97f79445c3a8", "pubsub#title": "Node c1827ef7-d8a2-4f44-9927-97f79445c3a8" } 2020-08-27 11:20:45 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-27 11:20:46 | [Mutex] waiting for: [received:nodes:345498ed-3847-43dc-be88-d124601f9f93:localhost] 2020-08-27 11:20:46 | [Mutex] received everything. 2020-08-27 11:20:46 | [Mutex] isItemNotified: received:node:345498ed-3847-43dc-be88-d124601f9f93:localhost:node-c1827ef7-d8a2-4f44-9927-97f79445c3a8:Node c1827ef7-d8a2-4f44-9927-97f79445c3a8 :: true |
deleteNodes | 1.028s |
2020-08-27 11:20:50 |
2020-08-27 11:20:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 11:20:50 | ------------------------------------ 2020-08-27 11:20:50 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c1827ef7-d8a2-4f44-9927-97f79445c3a8" } 2020-08-27 11:20:50 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-27 11:20:51 | [Mutex] waiting for: [received:nodes:e2909b55-5e20-42de-887d-a1c13d24d031:localhost] 2020-08-27 11:20:51 | [Mutex] waiting for: [received:nodes:e2909b55-5e20-42de-887d-a1c13d24d031:localhost] 2020-08-27 11:20:51 | [Mutex] received everything. 2020-08-27 11:20:51 | [Mutex] isItemNotified: received:node:e2909b55-5e20-42de-887d-a1c13d24d031:localhost:node-c1827ef7-d8a2-4f44-9927-97f79445c3a8:Node c1827ef7-d8a2-4f44-9927-97f79445c3a8 :: false |
deleteSubnodes | 1.033s |
2020-08-27 11:20:49 |
2020-08-27 11:20:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 11:20:49 | ------------------------------------ 2020-08-27 11:20:49 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-71c2d8e1-428b-481d-9cf9-91c78d17f306" } 2020-08-27 11:20:49 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-27 11:20:50 | [Mutex] waiting for: [received:nodes:c47e9cd2-6dae-4919-a523-788488ca3190:localhost] 2020-08-27 11:20:50 | [Mutex] received everything. 2020-08-27 11:20:50 | [Mutex] isItemNotified: received:node:c47e9cd2-6dae-4919-a523-788488ca3190:localhost:node-71c2d8e1-428b-481d-9cf9-91c78d17f306:Node 71c2d8e1-428b-481d-9cf9-91c78d17f306 :: false 2020-08-27 11:20:50 | [Mutex] waiting for: [received:nodes:3a82522e-c087-4444-b9e9-a9775b2841bf:localhost] 2020-08-27 11:20:50 | [Mutex] received everything. 2020-08-27 11:20:50 | [Mutex] isItemNotified: received:node:3a82522e-c087-4444-b9e9-a9775b2841bf:localhost:node-71c2d8e1-428b-481d-9cf9-91c78d17f306:Node 71c2d8e1-428b-481d-9cf9-91c78d17f306 :: false |
publishItemsToNodes | 0.044s |
2020-08-27 11:20:48 |
2020-08-27 11:20:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 11:20:48 | ------------------------------------ 2020-08-27 11:20:48 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-71c2d8e1-428b-481d-9cf9-91c78d17f306", "entry": "<test>item-905055ac-f5af-4a93-bd99-5281c7fb8743</test>", "item-id": "item-905055ac-f5af-4a93-bd99-5281c7fb8743" } 2020-08-27 11:20:48 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-905055ac-f5af-4a93-bd99-5281c7fb8743" } 2020-08-27 11:20:48 | [Mutex] waiting for: [published:item:notifieditem-905055ac-f5af-4a93-bd99-5281c7fb8743:admin@test-domain.com] 2020-08-27 11:20:48 | [Mutex] received everything. 2020-08-27 11:20:48 | [Mutex] isItemNotified: published:item:notifieditem-905055ac-f5af-4a93-bd99-5281c7fb8743:admin@test-domain.com :: true |
retractItemsFromNodes | 0.095s |
2020-08-27 11:20:48 |
2020-08-27 11:20:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 11:20:48 | ------------------------------------ 2020-08-27 11:20:48 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-71c2d8e1-428b-481d-9cf9-91c78d17f306", "item-id": "item-905055ac-f5af-4a93-bd99-5281c7fb8743" } 2020-08-27 11:20:48 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-905055ac-f5af-4a93-bd99-5281c7fb8743" } 2020-08-27 11:20:48 | [Mutex] received everything. 2020-08-27 11:20:48 | [Mutex] isItemNotified: retracted:item:notifieditem-905055ac-f5af-4a93-bd99-5281c7fb8743:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.087s |
2020-08-27 11:20:48 |
2020-08-27 11:20:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 11:20:48 | ------------------------------------ 2020-08-27 11:20:48 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-71c2d8e1-428b-481d-9cf9-91c78d17f306", "item-id": "item-905055ac-f5af-4a93-bd99-5281c7fb8743" } 2020-08-27 11:20:48 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-71c2d8e1-428b-481d-9cf9-91c78d17f306", "item-id": "item-905055ac-f5af-4a93-bd99-5281c7fb8743", "item": [ "<item id=\"item-905055ac-f5af-4a93-bd99-5281c7fb8743\"><test>item-905055ac-f5af-4a93-bd99-5281c7fb8743</test></item>" ] } 2020-08-27 11:20:48 | [Mutex] notify: [retrieved:item:item-905055ac-f5af-4a93-bd99-5281c7fb8743:payload-matches:true:localhost] 2020-08-27 11:20:48 | [Mutex] received everything. 2020-08-27 11:20:48 | [Mutex] isItemNotified: retrieved:item:item-905055ac-f5af-4a93-bd99-5281c7fb8743:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2020-08-27 11:20:48 |
2020-08-27 11:20:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 11:20:48 | ------------------------------------ 2020-08-27 11:20:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-08-27 11:20:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-71c2d8e1-428b-481d-9cf9-91c78d17f306", "node-c1827ef7-d8a2-4f44-9927-97f79445c3a8" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-08-27 11:20:48 |
2020-08-27 11:20:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 11:20:48 | ------------------------------------ 2020-08-27 11:20:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-71c2d8e1-428b-481d-9cf9-91c78d17f306)" } 2020-08-27 11:20:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2020-08-27 11:20:47 |
2020-08-27 11:20:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 11:20:47 | ------------------------------------ 2020-08-27 11:20:47 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-71c2d8e1-428b-481d-9cf9-91c78d17f306", "jids": [ "admin@test-domain.com" ] } 2020-08-27 11:20:47 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2020-08-27 11:20:48 |
2020-08-27 11:20:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 11:20:48 | ------------------------------------ 2020-08-27 11:20:48 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-71c2d8e1-428b-481d-9cf9-91c78d17f306", "jids": [ "admin@test-domain.com" ] } 2020-08-27 11:20:48 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |