Test duration: 7.940s
| Passed Tests | ||
|---|---|---|
| tigase.tests.pubsub.TestRestApiUsingJSON | ||
| configureNodes | 1.061s |
2019-03-02 14:44:48 |
2019-03-02 14:44:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-03-02 14:44:48 | ------------------------------------ 2019-03-02 14:44:48 | [Mutex] waiting for: [configured:node:node-dfa9748f-945f-4b7e-8ed0-99bfb6814580:node-30329574-7b98-43f8-ac70-97fe15b62463] 2019-03-02 14:44:48 | [Mutex] received everything. 2019-03-02 14:44:48 | [Mutex] isItemNotified: configured:node:node-dfa9748f-945f-4b7e-8ed0-99bfb6814580:node-30329574-7b98-43f8-ac70-97fe15b62463 :: true 2019-03-02 14:44:49 | [Mutex] waiting for: [received:nodes:962a9d89-24b2-424e-a194-7fedd985301c:localhost] 2019-03-02 14:44:49 | [Mutex] received everything. 2019-03-02 14:44:49 | [Mutex] isItemNotified: received:node:962a9d89-24b2-424e-a194-7fedd985301c:localhost:node-dfa9748f-945f-4b7e-8ed0-99bfb6814580:Node dfa9748f-945f-4b7e-8ed0-99bfb6814580 :: true 2019-03-02 14:44:49 | [Mutex] waiting for: [received:nodes:733483dc-4014-4b5c-bb9b-2ceb1c6b4d55:localhost] 2019-03-02 14:44:49 | [Mutex] received everything. 2019-03-02 14:44:49 | [Mutex] isItemNotified: received:node:733483dc-4014-4b5c-bb9b-2ceb1c6b4d55:localhost:node-dfa9748f-945f-4b7e-8ed0-99bfb6814580:Node dfa9748f-945f-4b7e-8ed0-99bfb6814580 :: false |
| createNodes | 1.433s |
2019-03-02 14:44:45 |
2019-03-02 14:44:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-03-02 14:44:45 | ------------------------------------ 2019-03-02 14:44:46 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-dfa9748f-945f-4b7e-8ed0-99bfb6814580", "pubsub#title": "Node dfa9748f-945f-4b7e-8ed0-99bfb6814580" } 2019-03-02 14:44:46 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-03-02 14:44:47 | [Mutex] waiting for: [received:nodes:b692e062-00d7-4242-a203-523d9ca14edb:localhost] 2019-03-02 14:44:47 | [Mutex] received everything. 2019-03-02 14:44:47 | [Mutex] isItemNotified: received:node:b692e062-00d7-4242-a203-523d9ca14edb:localhost:node-dfa9748f-945f-4b7e-8ed0-99bfb6814580:Node dfa9748f-945f-4b7e-8ed0-99bfb6814580 :: true |
| createSubnodes | 1.022s |
2019-03-02 14:44:47 |
2019-03-02 14:44:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-03-02 14:44:47 | ------------------------------------ 2019-03-02 14:44:47 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-30329574-7b98-43f8-ac70-97fe15b62463", "pubsub#title": "Node 30329574-7b98-43f8-ac70-97fe15b62463" } 2019-03-02 14:44:47 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-03-02 14:44:48 | [Mutex] waiting for: [received:nodes:ad4122f3-57cb-4dda-af4c-3c45073e1bb3:localhost] 2019-03-02 14:44:48 | [Mutex] received everything. 2019-03-02 14:44:48 | [Mutex] isItemNotified: received:node:ad4122f3-57cb-4dda-af4c-3c45073e1bb3:localhost:node-30329574-7b98-43f8-ac70-97fe15b62463:Node 30329574-7b98-43f8-ac70-97fe15b62463 :: true |
| deleteNodes | 1.020s |
2019-03-02 14:44:52 |
2019-03-02 14:44:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-03-02 14:44:52 | ------------------------------------ 2019-03-02 14:44:52 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-30329574-7b98-43f8-ac70-97fe15b62463" } 2019-03-02 14:44:52 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-03-02 14:44:53 | [Mutex] received everything. 2019-03-02 14:44:53 | [Mutex] isItemNotified: received:node:23f6d98d-1c09-4817-9a79-d712ff17e4ca:localhost:node-30329574-7b98-43f8-ac70-97fe15b62463:Node 30329574-7b98-43f8-ac70-97fe15b62463 :: false |
| deleteSubnodes | 1.023s |
2019-03-02 14:44:51 |
2019-03-02 14:44:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-03-02 14:44:51 | ------------------------------------ 2019-03-02 14:44:51 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-dfa9748f-945f-4b7e-8ed0-99bfb6814580" } 2019-03-02 14:44:51 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-03-02 14:44:52 | [Mutex] received everything. 2019-03-02 14:44:52 | [Mutex] isItemNotified: received:node:23ea1240-7622-4da3-933d-b74ae2bfaa50:localhost:node-dfa9748f-945f-4b7e-8ed0-99bfb6814580:Node dfa9748f-945f-4b7e-8ed0-99bfb6814580 :: false 2019-03-02 14:44:52 | [Mutex] waiting for: [received:nodes:d9fe0aed-f488-4b1b-9b07-c42bd52ac1ba:localhost] 2019-03-02 14:44:52 | [Mutex] received everything. 2019-03-02 14:44:52 | [Mutex] isItemNotified: received:node:d9fe0aed-f488-4b1b-9b07-c42bd52ac1ba:localhost:node-dfa9748f-945f-4b7e-8ed0-99bfb6814580:Node dfa9748f-945f-4b7e-8ed0-99bfb6814580 :: false |
| publishItemsToNodes | 0.018s |
2019-03-02 14:44:50 |
2019-03-02 14:44:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-03-02 14:44:50 | ------------------------------------ 2019-03-02 14:44:50 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-dfa9748f-945f-4b7e-8ed0-99bfb6814580", "entry": "<test>item-78e49c1e-fd3d-4d43-ae75-bc3f48f3f10a</test>", "item-id": "item-78e49c1e-fd3d-4d43-ae75-bc3f48f3f10a" } 2019-03-02 14:44:50 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-78e49c1e-fd3d-4d43-ae75-bc3f48f3f10a" } 2019-03-02 14:44:50 | [Mutex] received everything. 2019-03-02 14:44:50 | [Mutex] isItemNotified: published:item:notifieditem-78e49c1e-fd3d-4d43-ae75-bc3f48f3f10a:admin@localhost :: true |
| retractItemsFromNodes | 0.045s |
2019-03-02 14:44:50 |
2019-03-02 14:44:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-03-02 14:44:50 | ------------------------------------ 2019-03-02 14:44:50 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-dfa9748f-945f-4b7e-8ed0-99bfb6814580", "item-id": "item-78e49c1e-fd3d-4d43-ae75-bc3f48f3f10a" } 2019-03-02 14:44:50 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-78e49c1e-fd3d-4d43-ae75-bc3f48f3f10a" } 2019-03-02 14:44:50 | [Mutex] waiting for: [retracted:item:notifieditem-78e49c1e-fd3d-4d43-ae75-bc3f48f3f10a:admin@localhost] 2019-03-02 14:44:50 | [Mutex] received everything. 2019-03-02 14:44:50 | [Mutex] isItemNotified: retracted:item:notifieditem-78e49c1e-fd3d-4d43-ae75-bc3f48f3f10a:admin@localhost :: true |
| retrieveItemsFromNodes | 0.014s |
2019-03-02 14:44:50 |
2019-03-02 14:44:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-03-02 14:44:50 | ------------------------------------ 2019-03-02 14:44:50 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-dfa9748f-945f-4b7e-8ed0-99bfb6814580", "item-id": "item-78e49c1e-fd3d-4d43-ae75-bc3f48f3f10a" } 2019-03-02 14:44:50 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-dfa9748f-945f-4b7e-8ed0-99bfb6814580", "item-id": "item-78e49c1e-fd3d-4d43-ae75-bc3f48f3f10a", "item": [ "<item id=\"item-78e49c1e-fd3d-4d43-ae75-bc3f48f3f10a\"><test>item-78e49c1e-fd3d-4d43-ae75-bc3f48f3f10a</test></item>" ] } 2019-03-02 14:44:50 | [Mutex] notify: [retrieved:item:item-78e49c1e-fd3d-4d43-ae75-bc3f48f3f10a:payload-matches:true:localhost] 2019-03-02 14:44:50 | [Mutex] received everything. 2019-03-02 14:44:50 | [Mutex] isItemNotified: retrieved:item:item-78e49c1e-fd3d-4d43-ae75-bc3f48f3f10a:payload-matches:true:localhost :: true |
| retrieveUserSubscriptions | 0.005s |
2019-03-02 14:44:50 |
2019-03-02 14:44:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-03-02 14:44:50 | ------------------------------------ 2019-03-02 14:44:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2019-03-02 14:44:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-30329574-7b98-43f8-ac70-97fe15b62463", "node-dfa9748f-945f-4b7e-8ed0-99bfb6814580" ] } |
| retrieveUserSubscriptionsWithRegex | 0.005s |
2019-03-02 14:44:50 |
2019-03-02 14:44:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-03-02 14:44:50 | ------------------------------------ 2019-03-02 14:44:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-dfa9748f-945f-4b7e-8ed0-99bfb6814580)" } 2019-03-02 14:44:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
| subscribeNodes | 1.018s |
2019-03-02 14:44:49 |
2019-03-02 14:44:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-03-02 14:44:49 | ------------------------------------ 2019-03-02 14:44:49 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-dfa9748f-945f-4b7e-8ed0-99bfb6814580", "jids": [ "admin@localhost" ] } 2019-03-02 14:44:49 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
| unsubscribeNodes | 1.017s |
2019-03-02 14:44:50 |
2019-03-02 14:44:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-03-02 14:44:50 | ------------------------------------ 2019-03-02 14:44:50 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-dfa9748f-945f-4b7e-8ed0-99bfb6814580", "jids": [ "admin@localhost" ] } 2019-03-02 14:44:50 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |