Test duration: 9.188s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.136s |
2020-06-18 23:54:56 |
2020-06-18 23:54:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 23:54:56 | ------------------------------------ 2020-06-18 23:54:56 | [Mutex] waiting for: [configured:node:node-0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed:node-a73f70a4-9910-44ac-8017-7fe77d9f5d7f] 2020-06-18 23:54:56 | [Mutex] received everything. 2020-06-18 23:54:56 | [Mutex] isItemNotified: configured:node:node-0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed:node-a73f70a4-9910-44ac-8017-7fe77d9f5d7f :: true 2020-06-18 23:54:57 | [Mutex] waiting for: [received:nodes:fa21074a-82e0-400d-8be3-e83f6a464423:localhost] 2020-06-18 23:54:57 | [Mutex] received everything. 2020-06-18 23:54:57 | [Mutex] isItemNotified: received:node:fa21074a-82e0-400d-8be3-e83f6a464423:localhost:node-0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed:Node 0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed :: true 2020-06-18 23:54:57 | [Mutex] waiting for: [received:nodes:eb940230-c0ae-4647-9aee-a3f25042b89a:localhost] 2020-06-18 23:54:57 | [Mutex] waiting for: [received:nodes:eb940230-c0ae-4647-9aee-a3f25042b89a:localhost] 2020-06-18 23:54:57 | [Mutex] received everything. 2020-06-18 23:54:57 | [Mutex] isItemNotified: received:node:eb940230-c0ae-4647-9aee-a3f25042b89a:localhost:node-0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed:Node 0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed :: false |
createNodes | 1.854s |
2020-06-18 23:54:53 |
2020-06-18 23:54:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 23:54:53 | ------------------------------------ 2020-06-18 23:54:54 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed", "pubsub#title": "Node 0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed" } 2020-06-18 23:54:54 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-06-18 23:54:55 | [Mutex] waiting for: [received:nodes:438f5442-63f4-407e-83c1-3b6994891314:localhost] 2020-06-18 23:54:55 | [Mutex] received everything. 2020-06-18 23:54:55 | [Mutex] isItemNotified: received:node:438f5442-63f4-407e-83c1-3b6994891314:localhost:node-0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed:Node 0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed :: true |
createSubnodes | 1.024s |
2020-06-18 23:54:55 |
2020-06-18 23:54:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 23:54:55 | ------------------------------------ 2020-06-18 23:54:55 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-a73f70a4-9910-44ac-8017-7fe77d9f5d7f", "pubsub#title": "Node a73f70a4-9910-44ac-8017-7fe77d9f5d7f" } 2020-06-18 23:54:55 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-06-18 23:54:56 | [Mutex] waiting for: [received:nodes:a9d8470b-d93a-464b-a580-40bab5a85f17:localhost] 2020-06-18 23:54:56 | [Mutex] received everything. 2020-06-18 23:54:56 | [Mutex] isItemNotified: received:node:a9d8470b-d93a-464b-a580-40bab5a85f17:localhost:node-a73f70a4-9910-44ac-8017-7fe77d9f5d7f:Node a73f70a4-9910-44ac-8017-7fe77d9f5d7f :: true |
deleteNodes | 1.030s |
2020-06-18 23:55:01 |
2020-06-18 23:55:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 23:55:01 | ------------------------------------ 2020-06-18 23:55:01 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a73f70a4-9910-44ac-8017-7fe77d9f5d7f" } 2020-06-18 23:55:01 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-06-18 23:55:02 | [Mutex] waiting for: [received:nodes:c188b174-a01a-49c3-bb00-e89121ec0202:localhost] 2020-06-18 23:55:02 | [Mutex] received everything. 2020-06-18 23:55:02 | [Mutex] isItemNotified: received:node:c188b174-a01a-49c3-bb00-e89121ec0202:localhost:node-a73f70a4-9910-44ac-8017-7fe77d9f5d7f:Node a73f70a4-9910-44ac-8017-7fe77d9f5d7f :: false |
deleteSubnodes | 1.028s |
2020-06-18 23:55:00 |
2020-06-18 23:55:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 23:55:00 | ------------------------------------ 2020-06-18 23:55:00 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed" } 2020-06-18 23:55:00 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-06-18 23:55:01 | [Mutex] waiting for: [received:nodes:e0842023-8e51-43f0-b4a8-d7af5d85ad22:localhost] 2020-06-18 23:55:01 | [Mutex] received everything. 2020-06-18 23:55:01 | [Mutex] isItemNotified: received:node:e0842023-8e51-43f0-b4a8-d7af5d85ad22:localhost:node-0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed:Node 0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed :: false 2020-06-18 23:55:01 | [Mutex] waiting for: [received:nodes:55715adb-03e0-47e4-b0c8-567da939206a:localhost] 2020-06-18 23:55:01 | [Mutex] received everything. 2020-06-18 23:55:01 | [Mutex] isItemNotified: received:node:55715adb-03e0-47e4-b0c8-567da939206a:localhost:node-0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed:Node 0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed :: false |
publishItemsToNodes | 0.022s |
2020-06-18 23:54:58 |
2020-06-18 23:54:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 23:54:58 | ------------------------------------ 2020-06-18 23:54:58 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed", "entry": "<test>item-ff81205a-b1e7-4278-bdf2-613982f0c48d</test>", "item-id": "item-ff81205a-b1e7-4278-bdf2-613982f0c48d" } 2020-06-18 23:54:58 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ff81205a-b1e7-4278-bdf2-613982f0c48d" } 2020-06-18 23:54:58 | [Mutex] waiting for: [published:item:notifieditem-ff81205a-b1e7-4278-bdf2-613982f0c48d:admin@localhost] 2020-06-18 23:54:58 | [Mutex] received everything. 2020-06-18 23:54:58 | [Mutex] isItemNotified: published:item:notifieditem-ff81205a-b1e7-4278-bdf2-613982f0c48d:admin@localhost :: true |
retractItemsFromNodes | 0.056s |
2020-06-18 23:54:58 |
2020-06-18 23:54:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 23:54:58 | ------------------------------------ 2020-06-18 23:54:58 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed", "item-id": "item-ff81205a-b1e7-4278-bdf2-613982f0c48d" } 2020-06-18 23:54:59 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ff81205a-b1e7-4278-bdf2-613982f0c48d" } 2020-06-18 23:54:59 | [Mutex] received everything. 2020-06-18 23:54:59 | [Mutex] isItemNotified: retracted:item:notifieditem-ff81205a-b1e7-4278-bdf2-613982f0c48d:admin@localhost :: true |
retrieveItemsFromNodes | 0.065s |
2020-06-18 23:54:58 |
2020-06-18 23:54:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 23:54:58 | ------------------------------------ 2020-06-18 23:54:58 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed", "item-id": "item-ff81205a-b1e7-4278-bdf2-613982f0c48d" } 2020-06-18 23:54:58 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed", "item-id": "item-ff81205a-b1e7-4278-bdf2-613982f0c48d", "item": [ "<item id=\"item-ff81205a-b1e7-4278-bdf2-613982f0c48d\"><test>item-ff81205a-b1e7-4278-bdf2-613982f0c48d</test></item>" ] } 2020-06-18 23:54:58 | [Mutex] notify: [retrieved:item:item-ff81205a-b1e7-4278-bdf2-613982f0c48d:payload-matches:true:localhost] 2020-06-18 23:54:58 | [Mutex] received everything. 2020-06-18 23:54:58 | [Mutex] isItemNotified: retrieved:item:item-ff81205a-b1e7-4278-bdf2-613982f0c48d:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2020-06-18 23:54:58 |
2020-06-18 23:54:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 23:54:58 | ------------------------------------ 2020-06-18 23:54:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2020-06-18 23:54:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed", "node-a73f70a4-9910-44ac-8017-7fe77d9f5d7f" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2020-06-18 23:54:58 |
2020-06-18 23:54:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 23:54:58 | ------------------------------------ 2020-06-18 23:54:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed)" } 2020-06-18 23:54:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2020-06-18 23:54:57 |
2020-06-18 23:54:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 23:54:57 | ------------------------------------ 2020-06-18 23:54:57 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed", "jids": [ "admin@localhost" ] } 2020-06-18 23:54:57 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2020-06-18 23:54:59 |
2020-06-18 23:54:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 23:54:59 | ------------------------------------ 2020-06-18 23:54:59 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-0dc195ad-df9e-47d3-9ee0-d353a4bdc9ed", "jids": [ "admin@localhost" ] } 2020-06-18 23:54:59 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |