Test duration : 8.966s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.120s |
2021-02-23 21:55:40 |
2021-02-23 21:55:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:55:40 | ------------------------------------ 2021-02-23 21:55:40 | [Mutex] waiting for: [configured:node:node-075ea779-6b80-4bbd-b0e1-34fb5ff371f3:node-ddd12714-24b9-48ac-aac8-5acca472a71d] 2021-02-23 21:55:40 | [Mutex] received everything. 2021-02-23 21:55:40 | [Mutex] isItemNotified: configured:node:node-075ea779-6b80-4bbd-b0e1-34fb5ff371f3:node-ddd12714-24b9-48ac-aac8-5acca472a71d :: true 2021-02-23 21:55:41 | [Mutex] waiting for: [received:nodes:80c84f99-5cfa-4de8-9c23-d0a33291c5a5:localhost] 2021-02-23 21:55:41 | [Mutex] waiting for: [received:nodes:80c84f99-5cfa-4de8-9c23-d0a33291c5a5:localhost] 2021-02-23 21:55:41 | [Mutex] received everything. 2021-02-23 21:55:41 | [Mutex] isItemNotified: received:node:80c84f99-5cfa-4de8-9c23-d0a33291c5a5:localhost:node-075ea779-6b80-4bbd-b0e1-34fb5ff371f3:Node 075ea779-6b80-4bbd-b0e1-34fb5ff371f3 :: true 2021-02-23 21:55:41 | [Mutex] waiting for: [received:nodes:6f8b3b0e-0b65-492f-8bf3-dd77bae18a61:localhost] 2021-02-23 21:55:41 | [Mutex] received everything. 2021-02-23 21:55:41 | [Mutex] isItemNotified: received:node:6f8b3b0e-0b65-492f-8bf3-dd77bae18a61:localhost:node-075ea779-6b80-4bbd-b0e1-34fb5ff371f3:Node 075ea779-6b80-4bbd-b0e1-34fb5ff371f3 :: false |
createNodes | 1.671s |
2021-02-23 21:55:38 |
2021-02-23 21:55:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:55:38 | ------------------------------------ 2021-02-23 21:55:38 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-075ea779-6b80-4bbd-b0e1-34fb5ff371f3", "pubsub#title": "Node 075ea779-6b80-4bbd-b0e1-34fb5ff371f3" } 2021-02-23 21:55:38 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-23 21:55:39 | [Mutex] waiting for: [received:nodes:e61a44fe-6d67-4c24-8eb9-dacea39db57a:localhost] 2021-02-23 21:55:39 | [Mutex] received everything. 2021-02-23 21:55:39 | [Mutex] isItemNotified: received:node:e61a44fe-6d67-4c24-8eb9-dacea39db57a:localhost:node-075ea779-6b80-4bbd-b0e1-34fb5ff371f3:Node 075ea779-6b80-4bbd-b0e1-34fb5ff371f3 :: true |
createSubnodes | 1.025s |
2021-02-23 21:55:39 |
2021-02-23 21:55:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:55:39 | ------------------------------------ 2021-02-23 21:55:39 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-ddd12714-24b9-48ac-aac8-5acca472a71d", "pubsub#title": "Node ddd12714-24b9-48ac-aac8-5acca472a71d" } 2021-02-23 21:55:39 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-23 21:55:40 | [Mutex] waiting for: [received:nodes:c7fd8dd6-ad6c-4d83-8b7d-4cdea294fb78:localhost] 2021-02-23 21:55:40 | [Mutex] received everything. 2021-02-23 21:55:40 | [Mutex] isItemNotified: received:node:c7fd8dd6-ad6c-4d83-8b7d-4cdea294fb78:localhost:node-ddd12714-24b9-48ac-aac8-5acca472a71d:Node ddd12714-24b9-48ac-aac8-5acca472a71d :: true |
deleteNodes | 1.019s |
2021-02-23 21:55:45 |
2021-02-23 21:55:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:55:45 | ------------------------------------ 2021-02-23 21:55:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ddd12714-24b9-48ac-aac8-5acca472a71d" } 2021-02-23 21:55:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-23 21:55:46 | [Mutex] waiting for: [received:nodes:77009069-c23c-47af-8bd7-7bd002a393d6:localhost] 2021-02-23 21:55:46 | [Mutex] received everything. 2021-02-23 21:55:46 | [Mutex] isItemNotified: received:node:77009069-c23c-47af-8bd7-7bd002a393d6:localhost:node-ddd12714-24b9-48ac-aac8-5acca472a71d:Node ddd12714-24b9-48ac-aac8-5acca472a71d :: false |
deleteSubnodes | 1.025s |
2021-02-23 21:55:44 |
2021-02-23 21:55:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:55:44 | ------------------------------------ 2021-02-23 21:55:44 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-075ea779-6b80-4bbd-b0e1-34fb5ff371f3" } 2021-02-23 21:55:44 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-23 21:55:45 | [Mutex] waiting for: [received:nodes:28526146-32e6-4dff-99c0-58f7c3565b4c:localhost] 2021-02-23 21:55:45 | [Mutex] received everything. 2021-02-23 21:55:45 | [Mutex] isItemNotified: received:node:28526146-32e6-4dff-99c0-58f7c3565b4c:localhost:node-075ea779-6b80-4bbd-b0e1-34fb5ff371f3:Node 075ea779-6b80-4bbd-b0e1-34fb5ff371f3 :: false 2021-02-23 21:55:45 | [Mutex] waiting for: [received:nodes:62e85cdc-f2c5-418d-9a5f-9c9691f20040:localhost] 2021-02-23 21:55:45 | [Mutex] received everything. 2021-02-23 21:55:45 | [Mutex] isItemNotified: received:node:62e85cdc-f2c5-418d-9a5f-9c9691f20040:localhost:node-075ea779-6b80-4bbd-b0e1-34fb5ff371f3:Node 075ea779-6b80-4bbd-b0e1-34fb5ff371f3 :: false |
publishItemsToNodes | 0.053s |
2021-02-23 21:55:42 |
2021-02-23 21:55:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:55:42 | ------------------------------------ 2021-02-23 21:55:42 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-075ea779-6b80-4bbd-b0e1-34fb5ff371f3", "entry": "<test>item-a26c82c7-4f43-4fbf-bcf8-e77bf9536d87</test>", "item-id": "item-a26c82c7-4f43-4fbf-bcf8-e77bf9536d87" } 2021-02-23 21:55:42 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a26c82c7-4f43-4fbf-bcf8-e77bf9536d87" } 2021-02-23 21:55:42 | [Mutex] received everything. 2021-02-23 21:55:42 | [Mutex] isItemNotified: published:item:notifieditem-a26c82c7-4f43-4fbf-bcf8-e77bf9536d87:admin@test-domain.com :: true |
retractItemsFromNodes | 0.053s |
2021-02-23 21:55:43 |
2021-02-23 21:55:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:55:43 | ------------------------------------ 2021-02-23 21:55:43 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-075ea779-6b80-4bbd-b0e1-34fb5ff371f3", "item-id": "item-a26c82c7-4f43-4fbf-bcf8-e77bf9536d87" } 2021-02-23 21:55:43 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a26c82c7-4f43-4fbf-bcf8-e77bf9536d87" } 2021-02-23 21:55:43 | [Mutex] received everything. 2021-02-23 21:55:43 | [Mutex] isItemNotified: retracted:item:notifieditem-a26c82c7-4f43-4fbf-bcf8-e77bf9536d87:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.127s |
2021-02-23 21:55:42 |
2021-02-23 21:55:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:55:42 | ------------------------------------ 2021-02-23 21:55:42 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-075ea779-6b80-4bbd-b0e1-34fb5ff371f3", "item-id": "item-a26c82c7-4f43-4fbf-bcf8-e77bf9536d87" } 2021-02-23 21:55:43 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-075ea779-6b80-4bbd-b0e1-34fb5ff371f3", "item-id": "item-a26c82c7-4f43-4fbf-bcf8-e77bf9536d87", "item": [ "<item id=\"item-a26c82c7-4f43-4fbf-bcf8-e77bf9536d87\"><test>item-a26c82c7-4f43-4fbf-bcf8-e77bf9536d87</test></item>" ] } 2021-02-23 21:55:43 | [Mutex] notify: [retrieved:item:item-a26c82c7-4f43-4fbf-bcf8-e77bf9536d87:payload-matches:true:localhost] 2021-02-23 21:55:43 | [Mutex] received everything. 2021-02-23 21:55:43 | [Mutex] isItemNotified: retrieved:item:item-a26c82c7-4f43-4fbf-bcf8-e77bf9536d87:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2021-02-23 21:55:43 |
2021-02-23 21:55:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:55:43 | ------------------------------------ 2021-02-23 21:55:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-02-23 21:55:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-075ea779-6b80-4bbd-b0e1-34fb5ff371f3", "node-ddd12714-24b9-48ac-aac8-5acca472a71d" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2021-02-23 21:55:43 |
2021-02-23 21:55:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:55:43 | ------------------------------------ 2021-02-23 21:55:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-075ea779-6b80-4bbd-b0e1-34fb5ff371f3)" } 2021-02-23 21:55:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2021-02-23 21:55:41 |
2021-02-23 21:55:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:55:41 | ------------------------------------ 2021-02-23 21:55:41 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-075ea779-6b80-4bbd-b0e1-34fb5ff371f3", "jids": [ "admin@test-domain.com" ] } 2021-02-23 21:55:41 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2021-02-23 21:55:43 |
2021-02-23 21:55:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-23 21:55:43 | ------------------------------------ 2021-02-23 21:55:43 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-075ea779-6b80-4bbd-b0e1-34fb5ff371f3", "jids": [ "admin@test-domain.com" ] } 2021-02-23 21:55:43 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |