Test duration : 8.999s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.096s |
2020-12-16 14:20:47 |
2020-12-16 14:20:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:20:47 | ------------------------------------ 2020-12-16 14:20:47 | [Mutex] waiting for: [configured:node:node-150f30d1-f2d7-47b4-a05b-583c0492a437:node-289e88a0-bbde-4c4c-a8b5-830d36c6cb13] 2020-12-16 14:20:47 | [Mutex] received everything. 2020-12-16 14:20:47 | [Mutex] isItemNotified: configured:node:node-150f30d1-f2d7-47b4-a05b-583c0492a437:node-289e88a0-bbde-4c4c-a8b5-830d36c6cb13 :: true 2020-12-16 14:20:48 | [Mutex] waiting for: [received:nodes:c62cda8c-36a4-4bb3-98b8-1591b8016154:localhost] 2020-12-16 14:20:48 | [Mutex] received everything. 2020-12-16 14:20:48 | [Mutex] isItemNotified: received:node:c62cda8c-36a4-4bb3-98b8-1591b8016154:localhost:node-150f30d1-f2d7-47b4-a05b-583c0492a437:Node 150f30d1-f2d7-47b4-a05b-583c0492a437 :: true 2020-12-16 14:20:48 | [Mutex] waiting for: [received:nodes:d0b02069-d272-40d5-8f17-ed22edfc21e5:localhost] 2020-12-16 14:20:48 | [Mutex] received everything. 2020-12-16 14:20:48 | [Mutex] isItemNotified: received:node:d0b02069-d272-40d5-8f17-ed22edfc21e5:localhost:node-150f30d1-f2d7-47b4-a05b-583c0492a437:Node 150f30d1-f2d7-47b4-a05b-583c0492a437 :: false |
createNodes | 1.685s |
2020-12-16 14:20:44 |
2020-12-16 14:20:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:20:44 | ------------------------------------ 2020-12-16 14:20:45 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-150f30d1-f2d7-47b4-a05b-583c0492a437", "pubsub#title": "Node 150f30d1-f2d7-47b4-a05b-583c0492a437" } 2020-12-16 14:20:45 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-16 14:20:46 | [Mutex] waiting for: [received:nodes:92cb2a42-966c-4d95-846b-2771feb9389f:localhost] 2020-12-16 14:20:46 | [Mutex] received everything. 2020-12-16 14:20:46 | [Mutex] isItemNotified: received:node:92cb2a42-966c-4d95-846b-2771feb9389f:localhost:node-150f30d1-f2d7-47b4-a05b-583c0492a437:Node 150f30d1-f2d7-47b4-a05b-583c0492a437 :: true |
createSubnodes | 1.024s |
2020-12-16 14:20:46 |
2020-12-16 14:20:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:20:46 | ------------------------------------ 2020-12-16 14:20:46 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-289e88a0-bbde-4c4c-a8b5-830d36c6cb13", "pubsub#title": "Node 289e88a0-bbde-4c4c-a8b5-830d36c6cb13" } 2020-12-16 14:20:46 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-16 14:20:47 | [Mutex] waiting for: [received:nodes:d81d05fd-e1bb-45f7-8d0a-7d1e0f3485dc:localhost] 2020-12-16 14:20:47 | [Mutex] received everything. 2020-12-16 14:20:47 | [Mutex] isItemNotified: received:node:d81d05fd-e1bb-45f7-8d0a-7d1e0f3485dc:localhost:node-289e88a0-bbde-4c4c-a8b5-830d36c6cb13:Node 289e88a0-bbde-4c4c-a8b5-830d36c6cb13 :: true |
deleteNodes | 1.024s |
2020-12-16 14:20:51 |
2020-12-16 14:20:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:20:51 | ------------------------------------ 2020-12-16 14:20:51 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-289e88a0-bbde-4c4c-a8b5-830d36c6cb13" } 2020-12-16 14:20:51 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-16 14:20:52 | [Mutex] waiting for: [received:nodes:8b4cb9bc-dea0-4881-b157-3178e980619a:localhost] 2020-12-16 14:20:52 | [Mutex] received everything. 2020-12-16 14:20:52 | [Mutex] isItemNotified: received:node:8b4cb9bc-dea0-4881-b157-3178e980619a:localhost:node-289e88a0-bbde-4c4c-a8b5-830d36c6cb13:Node 289e88a0-bbde-4c4c-a8b5-830d36c6cb13 :: false |
deleteSubnodes | 1.031s |
2020-12-16 14:20:50 |
2020-12-16 14:20:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:20:50 | ------------------------------------ 2020-12-16 14:20:50 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-150f30d1-f2d7-47b4-a05b-583c0492a437" } 2020-12-16 14:20:50 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-16 14:20:51 | [Mutex] waiting for: [received:nodes:ddd456c5-bc47-48ba-af4a-0cf4b74afb88:localhost] 2020-12-16 14:20:51 | [Mutex] received everything. 2020-12-16 14:20:51 | [Mutex] isItemNotified: received:node:ddd456c5-bc47-48ba-af4a-0cf4b74afb88:localhost:node-150f30d1-f2d7-47b4-a05b-583c0492a437:Node 150f30d1-f2d7-47b4-a05b-583c0492a437 :: false 2020-12-16 14:20:51 | [Mutex] waiting for: [received:nodes:a071069b-33b2-4261-b845-e7756a09c9e5:localhost] 2020-12-16 14:20:51 | [Mutex] received everything. 2020-12-16 14:20:51 | [Mutex] isItemNotified: received:node:a071069b-33b2-4261-b845-e7756a09c9e5:localhost:node-150f30d1-f2d7-47b4-a05b-583c0492a437:Node 150f30d1-f2d7-47b4-a05b-583c0492a437 :: false |
publishItemsToNodes | 0.074s |
2020-12-16 14:20:49 |
2020-12-16 14:20:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:20:49 | ------------------------------------ 2020-12-16 14:20:49 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-150f30d1-f2d7-47b4-a05b-583c0492a437", "entry": "<test>item-9e78dbb0-0dc0-4985-ab94-3bc4fb06e79e</test>", "item-id": "item-9e78dbb0-0dc0-4985-ab94-3bc4fb06e79e" } 2020-12-16 14:20:49 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9e78dbb0-0dc0-4985-ab94-3bc4fb06e79e" } 2020-12-16 14:20:49 | [Mutex] waiting for: [published:item:notifieditem-9e78dbb0-0dc0-4985-ab94-3bc4fb06e79e:admin@test-domain.com] 2020-12-16 14:20:49 | [Mutex] received everything. 2020-12-16 14:20:49 | [Mutex] isItemNotified: published:item:notifieditem-9e78dbb0-0dc0-4985-ab94-3bc4fb06e79e:admin@test-domain.com :: true |
retractItemsFromNodes | 0.072s |
2020-12-16 14:20:49 |
2020-12-16 14:20:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:20:49 | ------------------------------------ 2020-12-16 14:20:49 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-150f30d1-f2d7-47b4-a05b-583c0492a437", "item-id": "item-9e78dbb0-0dc0-4985-ab94-3bc4fb06e79e" } 2020-12-16 14:20:49 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9e78dbb0-0dc0-4985-ab94-3bc4fb06e79e" } 2020-12-16 14:20:49 | [Mutex] received everything. 2020-12-16 14:20:49 | [Mutex] isItemNotified: retracted:item:notifieditem-9e78dbb0-0dc0-4985-ab94-3bc4fb06e79e:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.025s |
2020-12-16 14:20:49 |
2020-12-16 14:20:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:20:49 | ------------------------------------ 2020-12-16 14:20:49 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-150f30d1-f2d7-47b4-a05b-583c0492a437", "item-id": "item-9e78dbb0-0dc0-4985-ab94-3bc4fb06e79e" } 2020-12-16 14:20:49 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-150f30d1-f2d7-47b4-a05b-583c0492a437", "item-id": "item-9e78dbb0-0dc0-4985-ab94-3bc4fb06e79e", "item": [ "<item id=\"item-9e78dbb0-0dc0-4985-ab94-3bc4fb06e79e\"><test>item-9e78dbb0-0dc0-4985-ab94-3bc4fb06e79e</test></item>" ] } 2020-12-16 14:20:49 | [Mutex] notify: [retrieved:item:item-9e78dbb0-0dc0-4985-ab94-3bc4fb06e79e:payload-matches:true:localhost] 2020-12-16 14:20:49 | [Mutex] received everything. 2020-12-16 14:20:49 | [Mutex] isItemNotified: retrieved:item:item-9e78dbb0-0dc0-4985-ab94-3bc4fb06e79e:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.065s |
2020-12-16 14:20:49 |
2020-12-16 14:20:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:20:49 | ------------------------------------ 2020-12-16 14:20:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-12-16 14:20:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-289e88a0-bbde-4c4c-a8b5-830d36c6cb13", "test", "node-150f30d1-f2d7-47b4-a05b-583c0492a437" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2020-12-16 14:20:49 |
2020-12-16 14:20:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:20:49 | ------------------------------------ 2020-12-16 14:20:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-150f30d1-f2d7-47b4-a05b-583c0492a437)" } 2020-12-16 14:20:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.017s |
2020-12-16 14:20:48 |
2020-12-16 14:20:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:20:48 | ------------------------------------ 2020-12-16 14:20:48 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-150f30d1-f2d7-47b4-a05b-583c0492a437", "jids": [ "admin@test-domain.com" ] } 2020-12-16 14:20:48 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2020-12-16 14:20:49 |
2020-12-16 14:20:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:20:49 | ------------------------------------ 2020-12-16 14:20:49 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-150f30d1-f2d7-47b4-a05b-583c0492a437", "jids": [ "admin@test-domain.com" ] } 2020-12-16 14:20:49 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |