Test duration : 8.604s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.091s |
2022-09-20 22:35:48 |
2022-09-20 22:35:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 22:35:48 | ------------------------------------ 2022-09-20 22:35:48 | [Mutex] waiting for: [configured:node:node-78264b7c-cdb8-42ac-9b64-0ee2726140dd:node-4aebd8c7-856e-4844-87b6-be646bfc602b] 2022-09-20 22:35:48 | [Mutex] received everything. 2022-09-20 22:35:48 | [Mutex] isItemNotified: configured:node:node-78264b7c-cdb8-42ac-9b64-0ee2726140dd:node-4aebd8c7-856e-4844-87b6-be646bfc602b :: true 2022-09-20 22:35:49 | [Mutex] waiting for: [received:nodes:67c030bd-5c1a-4977-a4c5-4fd31e6c67dc:localhost] 2022-09-20 22:35:49 | [Mutex] received everything. 2022-09-20 22:35:49 | [Mutex] isItemNotified: received:node:67c030bd-5c1a-4977-a4c5-4fd31e6c67dc:localhost:node-78264b7c-cdb8-42ac-9b64-0ee2726140dd:Node 78264b7c-cdb8-42ac-9b64-0ee2726140dd :: true 2022-09-20 22:35:49 | [Mutex] waiting for: [received:nodes:71f93fd6-75ec-4b5f-b620-5f3e561b1a2f:localhost] 2022-09-20 22:35:49 | [Mutex] received everything. 2022-09-20 22:35:49 | [Mutex] isItemNotified: received:node:71f93fd6-75ec-4b5f-b620-5f3e561b1a2f:localhost:node-78264b7c-cdb8-42ac-9b64-0ee2726140dd:Node 78264b7c-cdb8-42ac-9b64-0ee2726140dd :: false |
createNodes | 1.595s |
2022-09-20 22:35:45 |
2022-09-20 22:35:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 22:35:45 | ------------------------------------ 2022-09-20 22:35: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-78264b7c-cdb8-42ac-9b64-0ee2726140dd", "pubsub#title": "Node 78264b7c-cdb8-42ac-9b64-0ee2726140dd" } 2022-09-20 22:35:45 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-20 22:35:47 | [Mutex] waiting for: [received:nodes:c23cbd52-d20a-40d1-a613-377919290295:localhost] 2022-09-20 22:35:47 | [Mutex] received everything. 2022-09-20 22:35:47 | [Mutex] isItemNotified: received:node:c23cbd52-d20a-40d1-a613-377919290295:localhost:node-78264b7c-cdb8-42ac-9b64-0ee2726140dd:Node 78264b7c-cdb8-42ac-9b64-0ee2726140dd :: true |
createSubnodes | 1.023s |
2022-09-20 22:35:47 |
2022-09-20 22:35:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 22:35:47 | ------------------------------------ 2022-09-20 22:35:47 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-4aebd8c7-856e-4844-87b6-be646bfc602b", "pubsub#title": "Node 4aebd8c7-856e-4844-87b6-be646bfc602b" } 2022-09-20 22:35:47 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-20 22:35:48 | [Mutex] waiting for: [received:nodes:544b823c-a685-4427-9083-a6a79ba234fc:localhost] 2022-09-20 22:35:48 | [Mutex] received everything. 2022-09-20 22:35:48 | [Mutex] isItemNotified: received:node:544b823c-a685-4427-9083-a6a79ba234fc:localhost:node-4aebd8c7-856e-4844-87b6-be646bfc602b:Node 4aebd8c7-856e-4844-87b6-be646bfc602b :: true |
deleteNodes | 1.024s |
2022-09-20 22:35:52 |
2022-09-20 22:35:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 22:35:52 | ------------------------------------ 2022-09-20 22:35:52 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4aebd8c7-856e-4844-87b6-be646bfc602b" } 2022-09-20 22:35:52 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-20 22:35:53 | [Mutex] waiting for: [received:nodes:4ab1c259-6019-4e18-9b37-f2d29f251324:localhost] 2022-09-20 22:35:53 | [Mutex] received everything. 2022-09-20 22:35:53 | [Mutex] isItemNotified: received:node:4ab1c259-6019-4e18-9b37-f2d29f251324:localhost:node-4aebd8c7-856e-4844-87b6-be646bfc602b:Node 4aebd8c7-856e-4844-87b6-be646bfc602b :: false |
deleteSubnodes | 1.027s |
2022-09-20 22:35:51 |
2022-09-20 22:35:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 22:35:51 | ------------------------------------ 2022-09-20 22:35:51 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-78264b7c-cdb8-42ac-9b64-0ee2726140dd" } 2022-09-20 22:35:51 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-20 22:35:52 | [Mutex] waiting for: [received:nodes:92915c95-4b37-4af0-9818-e3e100f988b7:localhost] 2022-09-20 22:35:52 | [Mutex] waiting for: [received:nodes:92915c95-4b37-4af0-9818-e3e100f988b7:localhost] 2022-09-20 22:35:52 | [Mutex] waiting for: [received:nodes:92915c95-4b37-4af0-9818-e3e100f988b7:localhost] 2022-09-20 22:35:52 | [Mutex] received everything. 2022-09-20 22:35:52 | [Mutex] isItemNotified: received:node:92915c95-4b37-4af0-9818-e3e100f988b7:localhost:node-78264b7c-cdb8-42ac-9b64-0ee2726140dd:Node 78264b7c-cdb8-42ac-9b64-0ee2726140dd :: false 2022-09-20 22:35:52 | [Mutex] waiting for: [received:nodes:3cd2be98-8bc7-4a03-a6ce-9531a847023a:localhost] 2022-09-20 22:35:52 | [Mutex] received everything. 2022-09-20 22:35:52 | [Mutex] isItemNotified: received:node:3cd2be98-8bc7-4a03-a6ce-9531a847023a:localhost:node-78264b7c-cdb8-42ac-9b64-0ee2726140dd:Node 78264b7c-cdb8-42ac-9b64-0ee2726140dd :: false |
publishItemsToNodes | 0.088s |
2022-09-20 22:35:50 |
2022-09-20 22:35:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 22:35:50 | ------------------------------------ 2022-09-20 22:35:50 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-78264b7c-cdb8-42ac-9b64-0ee2726140dd", "entry": "<test>item-9a216b41-b50d-40a4-adb8-4743c9afc007</test>", "item-id": "item-9a216b41-b50d-40a4-adb8-4743c9afc007" } 2022-09-20 22:35:50 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9a216b41-b50d-40a4-adb8-4743c9afc007" } 2022-09-20 22:35:50 | [Mutex] waiting for: [published:item:notifieditem-9a216b41-b50d-40a4-adb8-4743c9afc007:admin@test-domain.com] 2022-09-20 22:35:50 | [Mutex] received everything. 2022-09-20 22:35:50 | [Mutex] isItemNotified: published:item:notifieditem-9a216b41-b50d-40a4-adb8-4743c9afc007:admin@test-domain.com :: true |
retractItemsFromNodes | 0.052s |
2022-09-20 22:35:50 |
2022-09-20 22:35:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 22:35:50 | ------------------------------------ 2022-09-20 22:35:50 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-78264b7c-cdb8-42ac-9b64-0ee2726140dd", "item-id": "item-9a216b41-b50d-40a4-adb8-4743c9afc007" } 2022-09-20 22:35:50 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9a216b41-b50d-40a4-adb8-4743c9afc007" } 2022-09-20 22:35:50 | [Mutex] received everything. 2022-09-20 22:35:50 | [Mutex] isItemNotified: retracted:item:notifieditem-9a216b41-b50d-40a4-adb8-4743c9afc007:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.020s |
2022-09-20 22:35:50 |
2022-09-20 22:35:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 22:35:50 | ------------------------------------ 2022-09-20 22:35:50 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-78264b7c-cdb8-42ac-9b64-0ee2726140dd", "item-id": "item-9a216b41-b50d-40a4-adb8-4743c9afc007" } 2022-09-20 22:35:50 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-78264b7c-cdb8-42ac-9b64-0ee2726140dd", "item-id": "item-9a216b41-b50d-40a4-adb8-4743c9afc007", "item": [ "<item id=\"item-9a216b41-b50d-40a4-adb8-4743c9afc007\"><test>item-9a216b41-b50d-40a4-adb8-4743c9afc007</test></item>" ] } 2022-09-20 22:35:50 | [Mutex] notify: [retrieved:item:item-9a216b41-b50d-40a4-adb8-4743c9afc007:payload-matches:true:localhost] 2022-09-20 22:35:50 | [Mutex] received everything. 2022-09-20 22:35:50 | [Mutex] isItemNotified: retrieved:item:item-9a216b41-b50d-40a4-adb8-4743c9afc007:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.054s |
2022-09-20 22:35:50 |
2022-09-20 22:35:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 22:35:50 | ------------------------------------ 2022-09-20 22:35:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-09-20 22:35:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-78264b7c-cdb8-42ac-9b64-0ee2726140dd", "test", "node-4aebd8c7-856e-4844-87b6-be646bfc602b" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-09-20 22:35:50 |
2022-09-20 22:35:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 22:35:50 | ------------------------------------ 2022-09-20 22:35:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-78264b7c-cdb8-42ac-9b64-0ee2726140dd)" } 2022-09-20 22:35:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-09-20 22:35:49 |
2022-09-20 22:35:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 22:35:49 | ------------------------------------ 2022-09-20 22:35:49 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-78264b7c-cdb8-42ac-9b64-0ee2726140dd", "jids": [ "admin@test-domain.com" ] } 2022-09-20 22:35:49 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.056s |
2022-09-20 22:35:50 |
2022-09-20 22:35:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 22:35:50 | ------------------------------------ 2022-09-20 22:35:50 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-78264b7c-cdb8-42ac-9b64-0ee2726140dd", "jids": [ "admin@test-domain.com" ] } 2022-09-20 22:35:50 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |