Test duration: 8.958s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2019-11-25 20:48:03 |
2019-11-25 20:48:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:48:03 | ------------------------------------ 2019-11-25 20:48:03 | [Mutex] waiting for: [configured:node:node-fead23c8-ba0f-4210-a2d6-fb42394a1e92:node-f26974de-ea36-4ac4-af5e-6a5db8836682] 2019-11-25 20:48:03 | [Mutex] received everything. 2019-11-25 20:48:03 | [Mutex] isItemNotified: configured:node:node-fead23c8-ba0f-4210-a2d6-fb42394a1e92:node-f26974de-ea36-4ac4-af5e-6a5db8836682 :: true 2019-11-25 20:48:04 | [Mutex] waiting for: [received:nodes:64111eee-aa84-4f1c-b603-a1807d93a629:localhost] 2019-11-25 20:48:04 | [Mutex] received everything. 2019-11-25 20:48:04 | [Mutex] isItemNotified: received:node:64111eee-aa84-4f1c-b603-a1807d93a629:localhost:node-fead23c8-ba0f-4210-a2d6-fb42394a1e92:Node fead23c8-ba0f-4210-a2d6-fb42394a1e92 :: true 2019-11-25 20:48:04 | [Mutex] waiting for: [received:nodes:e0bb3bfe-1ca3-4d21-8276-becbbc07b755:localhost] 2019-11-25 20:48:04 | [Mutex] received everything. 2019-11-25 20:48:04 | [Mutex] isItemNotified: received:node:e0bb3bfe-1ca3-4d21-8276-becbbc07b755:localhost:node-fead23c8-ba0f-4210-a2d6-fb42394a1e92:Node fead23c8-ba0f-4210-a2d6-fb42394a1e92 :: false |
createNodes | 1.786s |
2019-11-25 20:48:00 |
2019-11-25 20:48:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:48:00 | ------------------------------------ 2019-11-25 20:48:01 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-fead23c8-ba0f-4210-a2d6-fb42394a1e92", "pubsub#title": "Node fead23c8-ba0f-4210-a2d6-fb42394a1e92" } 2019-11-25 20:48:01 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-25 20:48:02 | [Mutex] waiting for: [received:nodes:044d4ed4-3366-4717-a265-f349204a18b9:localhost] 2019-11-25 20:48:02 | [Mutex] received everything. 2019-11-25 20:48:02 | [Mutex] isItemNotified: received:node:044d4ed4-3366-4717-a265-f349204a18b9:localhost:node-fead23c8-ba0f-4210-a2d6-fb42394a1e92:Node fead23c8-ba0f-4210-a2d6-fb42394a1e92 :: true |
createSubnodes | 1.022s |
2019-11-25 20:48:02 |
2019-11-25 20:48:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:48:02 | ------------------------------------ 2019-11-25 20:48:02 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-f26974de-ea36-4ac4-af5e-6a5db8836682", "pubsub#title": "Node f26974de-ea36-4ac4-af5e-6a5db8836682" } 2019-11-25 20:48:02 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-25 20:48:03 | [Mutex] waiting for: [received:nodes:181fba0d-affc-4194-90ce-b2cf205b56c8:localhost] 2019-11-25 20:48:03 | [Mutex] received everything. 2019-11-25 20:48:03 | [Mutex] isItemNotified: received:node:181fba0d-affc-4194-90ce-b2cf205b56c8:localhost:node-f26974de-ea36-4ac4-af5e-6a5db8836682:Node f26974de-ea36-4ac4-af5e-6a5db8836682 :: true |
deleteNodes | 1.019s |
2019-11-25 20:48:08 |
2019-11-25 20:48:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:48:08 | ------------------------------------ 2019-11-25 20:48:08 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f26974de-ea36-4ac4-af5e-6a5db8836682" } 2019-11-25 20:48:08 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-25 20:48:09 | [Mutex] waiting for: [received:nodes:5040c4cd-83d8-4f0c-b501-9e66632f9b7e:localhost] 2019-11-25 20:48:09 | [Mutex] received everything. 2019-11-25 20:48:09 | [Mutex] isItemNotified: received:node:5040c4cd-83d8-4f0c-b501-9e66632f9b7e:localhost:node-f26974de-ea36-4ac4-af5e-6a5db8836682:Node f26974de-ea36-4ac4-af5e-6a5db8836682 :: false |
deleteSubnodes | 1.031s |
2019-11-25 20:48:07 |
2019-11-25 20:48:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:48:07 | ------------------------------------ 2019-11-25 20:48:07 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-fead23c8-ba0f-4210-a2d6-fb42394a1e92" } 2019-11-25 20:48:07 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-25 20:48:08 | [Mutex] waiting for: [received:nodes:1b874485-49e2-4d8b-8e18-029a8e159ebd:localhost] 2019-11-25 20:48:08 | [Mutex] received everything. 2019-11-25 20:48:08 | [Mutex] isItemNotified: received:node:1b874485-49e2-4d8b-8e18-029a8e159ebd:localhost:node-fead23c8-ba0f-4210-a2d6-fb42394a1e92:Node fead23c8-ba0f-4210-a2d6-fb42394a1e92 :: false 2019-11-25 20:48:08 | [Mutex] waiting for: [received:nodes:5d218571-b9a3-4c30-9866-ecd88de328fb:localhost] 2019-11-25 20:48:08 | [Mutex] received everything. 2019-11-25 20:48:08 | [Mutex] isItemNotified: received:node:5d218571-b9a3-4c30-9866-ecd88de328fb:localhost:node-fead23c8-ba0f-4210-a2d6-fb42394a1e92:Node fead23c8-ba0f-4210-a2d6-fb42394a1e92 :: false |
publishItemsToNodes | 0.056s |
2019-11-25 20:48:05 |
2019-11-25 20:48:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:48:05 | ------------------------------------ 2019-11-25 20:48:05 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-fead23c8-ba0f-4210-a2d6-fb42394a1e92", "entry": "<test>item-4d4885fd-274b-430e-88d5-4f47ee1378bb</test>", "item-id": "item-4d4885fd-274b-430e-88d5-4f47ee1378bb" } 2019-11-25 20:48:05 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4d4885fd-274b-430e-88d5-4f47ee1378bb" } 2019-11-25 20:48:05 | [Mutex] waiting for: [published:item:notifieditem-4d4885fd-274b-430e-88d5-4f47ee1378bb:admin@localhost] 2019-11-25 20:48:05 | [Mutex] received everything. 2019-11-25 20:48:05 | [Mutex] isItemNotified: published:item:notifieditem-4d4885fd-274b-430e-88d5-4f47ee1378bb:admin@localhost :: true |
retractItemsFromNodes | 0.059s |
2019-11-25 20:48:05 |
2019-11-25 20:48:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:48:05 | ------------------------------------ 2019-11-25 20:48:05 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-fead23c8-ba0f-4210-a2d6-fb42394a1e92", "item-id": "item-4d4885fd-274b-430e-88d5-4f47ee1378bb" } 2019-11-25 20:48:05 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4d4885fd-274b-430e-88d5-4f47ee1378bb" } 2019-11-25 20:48:05 | [Mutex] received everything. 2019-11-25 20:48:05 | [Mutex] isItemNotified: retracted:item:notifieditem-4d4885fd-274b-430e-88d5-4f47ee1378bb:admin@localhost :: true |
retrieveItemsFromNodes | 0.059s |
2019-11-25 20:48:05 |
2019-11-25 20:48:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:48:05 | ------------------------------------ 2019-11-25 20:48:05 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-fead23c8-ba0f-4210-a2d6-fb42394a1e92", "item-id": "item-4d4885fd-274b-430e-88d5-4f47ee1378bb" } 2019-11-25 20:48:05 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-fead23c8-ba0f-4210-a2d6-fb42394a1e92", "item-id": "item-4d4885fd-274b-430e-88d5-4f47ee1378bb", "item": [ "<item id=\"item-4d4885fd-274b-430e-88d5-4f47ee1378bb\"><test>item-4d4885fd-274b-430e-88d5-4f47ee1378bb</test></item>" ] } 2019-11-25 20:48:05 | [Mutex] notify: [retrieved:item:item-4d4885fd-274b-430e-88d5-4f47ee1378bb:payload-matches:true:localhost] 2019-11-25 20:48:05 | [Mutex] received everything. 2019-11-25 20:48:05 | [Mutex] isItemNotified: retrieved:item:item-4d4885fd-274b-430e-88d5-4f47ee1378bb:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2019-11-25 20:48:05 |
2019-11-25 20:48:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:48:05 | ------------------------------------ 2019-11-25 20:48:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2019-11-25 20:48:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-f26974de-ea36-4ac4-af5e-6a5db8836682", "node-fead23c8-ba0f-4210-a2d6-fb42394a1e92" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2019-11-25 20:48:05 |
2019-11-25 20:48:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:48:05 | ------------------------------------ 2019-11-25 20:48:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-fead23c8-ba0f-4210-a2d6-fb42394a1e92)" } 2019-11-25 20:48:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2019-11-25 20:48:04 |
2019-11-25 20:48:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:48:04 | ------------------------------------ 2019-11-25 20:48:04 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-fead23c8-ba0f-4210-a2d6-fb42394a1e92", "jids": [ "admin@localhost" ] } 2019-11-25 20:48:04 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2019-11-25 20:48:05 |
2019-11-25 20:48:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 20:48:05 | ------------------------------------ 2019-11-25 20:48:05 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-fead23c8-ba0f-4210-a2d6-fb42394a1e92", "jids": [ "admin@localhost" ] } 2019-11-25 20:48:06 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |