Test duration : 8.653s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.091s |
2022-06-27 23:01:42 |
2022-06-27 23:01:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-27 23:01:42 | ------------------------------------ 2022-06-27 23:01:42 | [Mutex] waiting for: [configured:node:node-cf37bc8a-667d-4bc3-88b5-8374d63805d0:node-8cf23447-0245-465f-b5e5-748369d5b132] 2022-06-27 23:01:42 | [Mutex] received everything. 2022-06-27 23:01:42 | [Mutex] isItemNotified: configured:node:node-cf37bc8a-667d-4bc3-88b5-8374d63805d0:node-8cf23447-0245-465f-b5e5-748369d5b132 :: true 2022-06-27 23:01:43 | [Mutex] waiting for: [received:nodes:dde4cf92-7fd9-426a-917d-79d046e8e172:localhost] 2022-06-27 23:01:43 | [Mutex] received everything. 2022-06-27 23:01:43 | [Mutex] isItemNotified: received:node:dde4cf92-7fd9-426a-917d-79d046e8e172:localhost:node-cf37bc8a-667d-4bc3-88b5-8374d63805d0:Node cf37bc8a-667d-4bc3-88b5-8374d63805d0 :: true 2022-06-27 23:01:43 | [Mutex] waiting for: [received:nodes:93899779-b0e2-431b-87eb-4aebef3593fd:localhost] 2022-06-27 23:01:43 | [Mutex] received everything. 2022-06-27 23:01:43 | [Mutex] isItemNotified: received:node:93899779-b0e2-431b-87eb-4aebef3593fd:localhost:node-cf37bc8a-667d-4bc3-88b5-8374d63805d0:Node cf37bc8a-667d-4bc3-88b5-8374d63805d0 :: false |
createNodes | 1.571s |
2022-06-27 23:01:39 |
2022-06-27 23:01:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-27 23:01:39 | ------------------------------------ 2022-06-27 23:01:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-cf37bc8a-667d-4bc3-88b5-8374d63805d0", "pubsub#title": "Node cf37bc8a-667d-4bc3-88b5-8374d63805d0" } 2022-06-27 23:01:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-27 23:01:41 | [Mutex] waiting for: [received:nodes:573c8360-cd40-42ce-aa90-09f245c4d828:localhost] 2022-06-27 23:01:41 | [Mutex] received everything. 2022-06-27 23:01:41 | [Mutex] isItemNotified: received:node:573c8360-cd40-42ce-aa90-09f245c4d828:localhost:node-cf37bc8a-667d-4bc3-88b5-8374d63805d0:Node cf37bc8a-667d-4bc3-88b5-8374d63805d0 :: true |
createSubnodes | 1.022s |
2022-06-27 23:01:41 |
2022-06-27 23:01:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-27 23:01:41 | ------------------------------------ 2022-06-27 23:01:41 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-8cf23447-0245-465f-b5e5-748369d5b132", "pubsub#title": "Node 8cf23447-0245-465f-b5e5-748369d5b132" } 2022-06-27 23:01:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-27 23:01:42 | [Mutex] waiting for: [received:nodes:06b4a3fd-665b-46ed-8910-e3aefa2870a3:localhost] 2022-06-27 23:01:42 | [Mutex] waiting for: [received:nodes:06b4a3fd-665b-46ed-8910-e3aefa2870a3:localhost] 2022-06-27 23:01:42 | [Mutex] received everything. 2022-06-27 23:01:42 | [Mutex] isItemNotified: received:node:06b4a3fd-665b-46ed-8910-e3aefa2870a3:localhost:node-8cf23447-0245-465f-b5e5-748369d5b132:Node 8cf23447-0245-465f-b5e5-748369d5b132 :: true |
deleteNodes | 1.030s |
2022-06-27 23:01:47 |
2022-06-27 23:01:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-27 23:01:47 | ------------------------------------ 2022-06-27 23:01:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8cf23447-0245-465f-b5e5-748369d5b132" } 2022-06-27 23:01:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-27 23:01:48 | [Mutex] waiting for: [received:nodes:00a5239a-d227-4854-afff-82b65635f3d7:localhost] 2022-06-27 23:01:48 | [Mutex] waiting for: [received:nodes:00a5239a-d227-4854-afff-82b65635f3d7:localhost] 2022-06-27 23:01:48 | [Mutex] received everything. 2022-06-27 23:01:48 | [Mutex] isItemNotified: received:node:00a5239a-d227-4854-afff-82b65635f3d7:localhost:node-8cf23447-0245-465f-b5e5-748369d5b132:Node 8cf23447-0245-465f-b5e5-748369d5b132 :: false |
deleteSubnodes | 1.024s |
2022-06-27 23:01:45 |
2022-06-27 23:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-27 23:01:45 | ------------------------------------ 2022-06-27 23:01:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-cf37bc8a-667d-4bc3-88b5-8374d63805d0" } 2022-06-27 23:01:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-27 23:01:47 | [Mutex] waiting for: [received:nodes:7c0ace6c-ad36-4d2a-8fa5-bd68890799cf:localhost] 2022-06-27 23:01:47 | [Mutex] received everything. 2022-06-27 23:01:47 | [Mutex] isItemNotified: received:node:7c0ace6c-ad36-4d2a-8fa5-bd68890799cf:localhost:node-cf37bc8a-667d-4bc3-88b5-8374d63805d0:Node cf37bc8a-667d-4bc3-88b5-8374d63805d0 :: false 2022-06-27 23:01:47 | [Mutex] waiting for: [received:nodes:d95faf16-e0b7-4c3a-a2a9-96d5f8dd5e5a:localhost] 2022-06-27 23:01:47 | [Mutex] received everything. 2022-06-27 23:01:47 | [Mutex] isItemNotified: received:node:d95faf16-e0b7-4c3a-a2a9-96d5f8dd5e5a:localhost:node-cf37bc8a-667d-4bc3-88b5-8374d63805d0:Node cf37bc8a-667d-4bc3-88b5-8374d63805d0 :: false |
publishItemsToNodes | 0.047s |
2022-06-27 23:01:44 |
2022-06-27 23:01:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-27 23:01:44 | ------------------------------------ 2022-06-27 23:01:44 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-cf37bc8a-667d-4bc3-88b5-8374d63805d0", "entry": "<test>item-abecc052-7bf0-4817-825d-e8d206624946</test>", "item-id": "item-abecc052-7bf0-4817-825d-e8d206624946" } 2022-06-27 23:01:44 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-abecc052-7bf0-4817-825d-e8d206624946" } 2022-06-27 23:01:44 | [Mutex] received everything. 2022-06-27 23:01:44 | [Mutex] isItemNotified: published:item:notifieditem-abecc052-7bf0-4817-825d-e8d206624946:admin@test-domain.com :: true |
retractItemsFromNodes | 0.075s |
2022-06-27 23:01:44 |
2022-06-27 23:01:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-27 23:01:44 | ------------------------------------ 2022-06-27 23:01:44 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-cf37bc8a-667d-4bc3-88b5-8374d63805d0", "item-id": "item-abecc052-7bf0-4817-825d-e8d206624946" } 2022-06-27 23:01:44 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-abecc052-7bf0-4817-825d-e8d206624946" } 2022-06-27 23:01:44 | [Mutex] received everything. 2022-06-27 23:01:44 | [Mutex] isItemNotified: retracted:item:notifieditem-abecc052-7bf0-4817-825d-e8d206624946:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.065s |
2022-06-27 23:01:44 |
2022-06-27 23:01:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-27 23:01:44 | ------------------------------------ 2022-06-27 23:01:44 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-cf37bc8a-667d-4bc3-88b5-8374d63805d0", "item-id": "item-abecc052-7bf0-4817-825d-e8d206624946" } 2022-06-27 23:01:44 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-cf37bc8a-667d-4bc3-88b5-8374d63805d0", "item-id": "item-abecc052-7bf0-4817-825d-e8d206624946", "item": [ "<item id=\"item-abecc052-7bf0-4817-825d-e8d206624946\"><test>item-abecc052-7bf0-4817-825d-e8d206624946</test></item>" ] } 2022-06-27 23:01:44 | [Mutex] notify: [retrieved:item:item-abecc052-7bf0-4817-825d-e8d206624946:payload-matches:true:localhost] 2022-06-27 23:01:44 | [Mutex] received everything. 2022-06-27 23:01:44 | [Mutex] isItemNotified: retrieved:item:item-abecc052-7bf0-4817-825d-e8d206624946:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-06-27 23:01:44 |
2022-06-27 23:01:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-27 23:01:44 | ------------------------------------ 2022-06-27 23:01:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-06-27 23:01:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-8cf23447-0245-465f-b5e5-748369d5b132", "node-cf37bc8a-667d-4bc3-88b5-8374d63805d0", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-06-27 23:01:44 |
2022-06-27 23:01:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-27 23:01:44 | ------------------------------------ 2022-06-27 23:01:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-cf37bc8a-667d-4bc3-88b5-8374d63805d0)" } 2022-06-27 23:01:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2022-06-27 23:01:43 |
2022-06-27 23:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-27 23:01:43 | ------------------------------------ 2022-06-27 23:01:43 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-cf37bc8a-667d-4bc3-88b5-8374d63805d0", "jids": [ "admin@test-domain.com" ] } 2022-06-27 23:01:43 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2022-06-27 23:01:44 |
2022-06-27 23:01:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-27 23:01:44 | ------------------------------------ 2022-06-27 23:01:44 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-cf37bc8a-667d-4bc3-88b5-8374d63805d0", "jids": [ "admin@test-domain.com" ] } 2022-06-27 23:01:44 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |