Test duration : 8.891s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.099s |
2020-10-01 22:30:45 |
2020-10-01 22:30:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:30:45 | ------------------------------------ 2020-10-01 22:30:45 | [Mutex] waiting for: [configured:node:node-71edaefc-4226-4854-a9a5-d1d001ab5e52:node-9cbd197f-77f9-4005-99ba-6159667a0402] 2020-10-01 22:30:45 | [Mutex] received everything. 2020-10-01 22:30:45 | [Mutex] isItemNotified: configured:node:node-71edaefc-4226-4854-a9a5-d1d001ab5e52:node-9cbd197f-77f9-4005-99ba-6159667a0402 :: true 2020-10-01 22:30:46 | [Mutex] waiting for: [received:nodes:ed781b67-810e-4d5a-a49f-fc8adba2f24d:localhost] 2020-10-01 22:30:46 | [Mutex] waiting for: [received:nodes:ed781b67-810e-4d5a-a49f-fc8adba2f24d:localhost] 2020-10-01 22:30:46 | [Mutex] received everything. 2020-10-01 22:30:46 | [Mutex] isItemNotified: received:node:ed781b67-810e-4d5a-a49f-fc8adba2f24d:localhost:node-71edaefc-4226-4854-a9a5-d1d001ab5e52:Node 71edaefc-4226-4854-a9a5-d1d001ab5e52 :: true 2020-10-01 22:30:46 | [Mutex] waiting for: [received:nodes:144d45a2-6cbf-412c-b0de-e67d98fcdfa0:localhost] 2020-10-01 22:30:46 | [Mutex] waiting for: [received:nodes:144d45a2-6cbf-412c-b0de-e67d98fcdfa0:localhost] 2020-10-01 22:30:46 | [Mutex] waiting for: [received:nodes:144d45a2-6cbf-412c-b0de-e67d98fcdfa0:localhost] 2020-10-01 22:30:46 | [Mutex] received everything. 2020-10-01 22:30:46 | [Mutex] isItemNotified: received:node:144d45a2-6cbf-412c-b0de-e67d98fcdfa0:localhost:node-71edaefc-4226-4854-a9a5-d1d001ab5e52:Node 71edaefc-4226-4854-a9a5-d1d001ab5e52 :: false |
createNodes | 1.573s |
2020-10-01 22:30:42 |
2020-10-01 22:30:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:30:42 | ------------------------------------ 2020-10-01 22:30: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-71edaefc-4226-4854-a9a5-d1d001ab5e52", "pubsub#title": "Node 71edaefc-4226-4854-a9a5-d1d001ab5e52" } 2020-10-01 22:30:43 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-01 22:30:44 | [Mutex] waiting for: [received:nodes:c6daf1f9-4fe7-4e8f-ba7f-0b337487007e:localhost] 2020-10-01 22:30:44 | [Mutex] received everything. 2020-10-01 22:30:44 | [Mutex] isItemNotified: received:node:c6daf1f9-4fe7-4e8f-ba7f-0b337487007e:localhost:node-71edaefc-4226-4854-a9a5-d1d001ab5e52:Node 71edaefc-4226-4854-a9a5-d1d001ab5e52 :: true |
createSubnodes | 1.017s |
2020-10-01 22:30:44 |
2020-10-01 22:30:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:30:44 | ------------------------------------ 2020-10-01 22:30:44 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-9cbd197f-77f9-4005-99ba-6159667a0402", "pubsub#title": "Node 9cbd197f-77f9-4005-99ba-6159667a0402" } 2020-10-01 22:30:44 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-01 22:30:45 | [Mutex] waiting for: [received:nodes:c2114b2a-82fd-4c2e-a6e0-3c1c2937a9ed:localhost] 2020-10-01 22:30:45 | [Mutex] received everything. 2020-10-01 22:30:45 | [Mutex] isItemNotified: received:node:c2114b2a-82fd-4c2e-a6e0-3c1c2937a9ed:localhost:node-9cbd197f-77f9-4005-99ba-6159667a0402:Node 9cbd197f-77f9-4005-99ba-6159667a0402 :: true |
deleteNodes | 1.021s |
2020-10-01 22:30:49 |
2020-10-01 22:30:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:30:49 | ------------------------------------ 2020-10-01 22:30:49 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9cbd197f-77f9-4005-99ba-6159667a0402" } 2020-10-01 22:30:49 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-01 22:30:50 | [Mutex] waiting for: [received:nodes:f1c98317-7016-400b-a94d-1b9132a64775:localhost] 2020-10-01 22:30:50 | [Mutex] received everything. 2020-10-01 22:30:50 | [Mutex] isItemNotified: received:node:f1c98317-7016-400b-a94d-1b9132a64775:localhost:node-9cbd197f-77f9-4005-99ba-6159667a0402:Node 9cbd197f-77f9-4005-99ba-6159667a0402 :: false |
deleteSubnodes | 1.029s |
2020-10-01 22:30:48 |
2020-10-01 22:30:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:30:48 | ------------------------------------ 2020-10-01 22:30:48 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-71edaefc-4226-4854-a9a5-d1d001ab5e52" } 2020-10-01 22:30:48 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-01 22:30:49 | [Mutex] waiting for: [received:nodes:7f2a1bfc-4a99-4ba1-be32-603387642e7a:localhost] 2020-10-01 22:30:49 | [Mutex] waiting for: [received:nodes:7f2a1bfc-4a99-4ba1-be32-603387642e7a:localhost] 2020-10-01 22:30:49 | [Mutex] received everything. 2020-10-01 22:30:49 | [Mutex] isItemNotified: received:node:7f2a1bfc-4a99-4ba1-be32-603387642e7a:localhost:node-71edaefc-4226-4854-a9a5-d1d001ab5e52:Node 71edaefc-4226-4854-a9a5-d1d001ab5e52 :: false 2020-10-01 22:30:49 | [Mutex] waiting for: [received:nodes:b08f267c-3e17-4379-b1b8-4b96e1949184:localhost] 2020-10-01 22:30:49 | [Mutex] received everything. 2020-10-01 22:30:49 | [Mutex] isItemNotified: received:node:b08f267c-3e17-4379-b1b8-4b96e1949184:localhost:node-71edaefc-4226-4854-a9a5-d1d001ab5e52:Node 71edaefc-4226-4854-a9a5-d1d001ab5e52 :: false |
publishItemsToNodes | 0.042s |
2020-10-01 22:30:47 |
2020-10-01 22:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:30:47 | ------------------------------------ 2020-10-01 22:30:47 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-71edaefc-4226-4854-a9a5-d1d001ab5e52", "entry": "<test>item-748563d7-24b1-4439-983e-fabc99631c17</test>", "item-id": "item-748563d7-24b1-4439-983e-fabc99631c17" } 2020-10-01 22:30:47 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-748563d7-24b1-4439-983e-fabc99631c17" } 2020-10-01 22:30:47 | [Mutex] waiting for: [published:item:notifieditem-748563d7-24b1-4439-983e-fabc99631c17:admin@test-domain.com] 2020-10-01 22:30:47 | [Mutex] received everything. 2020-10-01 22:30:47 | [Mutex] isItemNotified: published:item:notifieditem-748563d7-24b1-4439-983e-fabc99631c17:admin@test-domain.com :: true |
retractItemsFromNodes | 0.064s |
2020-10-01 22:30:47 |
2020-10-01 22:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:30:47 | ------------------------------------ 2020-10-01 22:30:47 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-71edaefc-4226-4854-a9a5-d1d001ab5e52", "item-id": "item-748563d7-24b1-4439-983e-fabc99631c17" } 2020-10-01 22:30:47 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-748563d7-24b1-4439-983e-fabc99631c17" } 2020-10-01 22:30:47 | [Mutex] received everything. 2020-10-01 22:30:47 | [Mutex] isItemNotified: retracted:item:notifieditem-748563d7-24b1-4439-983e-fabc99631c17:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.072s |
2020-10-01 22:30:47 |
2020-10-01 22:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:30:47 | ------------------------------------ 2020-10-01 22:30:47 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-71edaefc-4226-4854-a9a5-d1d001ab5e52", "item-id": "item-748563d7-24b1-4439-983e-fabc99631c17" } 2020-10-01 22:30:47 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-71edaefc-4226-4854-a9a5-d1d001ab5e52", "item-id": "item-748563d7-24b1-4439-983e-fabc99631c17", "item": [ "<item id=\"item-748563d7-24b1-4439-983e-fabc99631c17\"><test>item-748563d7-24b1-4439-983e-fabc99631c17</test></item>" ] } 2020-10-01 22:30:47 | [Mutex] notify: [retrieved:item:item-748563d7-24b1-4439-983e-fabc99631c17:payload-matches:true:localhost] 2020-10-01 22:30:47 | [Mutex] received everything. 2020-10-01 22:30:47 | [Mutex] isItemNotified: retrieved:item:item-748563d7-24b1-4439-983e-fabc99631c17:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-10-01 22:30:47 |
2020-10-01 22:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:30:47 | ------------------------------------ 2020-10-01 22:30:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-01 22:30:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-71edaefc-4226-4854-a9a5-d1d001ab5e52", "node-9cbd197f-77f9-4005-99ba-6159667a0402" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-10-01 22:30:47 |
2020-10-01 22:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:30:47 | ------------------------------------ 2020-10-01 22:30:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-71edaefc-4226-4854-a9a5-d1d001ab5e52)" } 2020-10-01 22:30:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2020-10-01 22:30:46 |
2020-10-01 22:30:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:30:46 | ------------------------------------ 2020-10-01 22:30:46 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-71edaefc-4226-4854-a9a5-d1d001ab5e52", "jids": [ "admin@test-domain.com" ] } 2020-10-01 22:30:46 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2020-10-01 22:30:47 |
2020-10-01 22:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:30:47 | ------------------------------------ 2020-10-01 22:30:47 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-71edaefc-4226-4854-a9a5-d1d001ab5e52", "jids": [ "admin@test-domain.com" ] } 2020-10-01 22:30:47 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |