Test duration : 8.686s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.129s |
2022-11-24 21:32:13 |
2022-11-24 21:32:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-24 21:32:13 | ------------------------------------ 2022-11-24 21:32:13 | [Mutex] waiting for: [configured:node:node-2ab95db1-4561-4471-80cd-5ac50a272cff:node-64d7ccc9-96e3-413e-bc71-3f08e33dcf36] 2022-11-24 21:32:13 | [Mutex] received everything. 2022-11-24 21:32:13 | [Mutex] isItemNotified: configured:node:node-2ab95db1-4561-4471-80cd-5ac50a272cff:node-64d7ccc9-96e3-413e-bc71-3f08e33dcf36 :: true 2022-11-24 21:32:14 | [Mutex] waiting for: [received:nodes:f0461104-bc4e-41ec-b6fb-962e133741be:localhost] 2022-11-24 21:32:14 | [Mutex] received everything. 2022-11-24 21:32:14 | [Mutex] isItemNotified: received:node:f0461104-bc4e-41ec-b6fb-962e133741be:localhost:node-2ab95db1-4561-4471-80cd-5ac50a272cff:Node 2ab95db1-4561-4471-80cd-5ac50a272cff :: true 2022-11-24 21:32:14 | [Mutex] waiting for: [received:nodes:8e9046c5-0573-4b10-afaf-43037f44abc5:localhost] 2022-11-24 21:32:14 | [Mutex] received everything. 2022-11-24 21:32:14 | [Mutex] isItemNotified: received:node:8e9046c5-0573-4b10-afaf-43037f44abc5:localhost:node-2ab95db1-4561-4471-80cd-5ac50a272cff:Node 2ab95db1-4561-4471-80cd-5ac50a272cff :: false |
createNodes | 1.521s |
2022-11-24 21:32:11 |
2022-11-24 21:32:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-24 21:32:11 | ------------------------------------ 2022-11-24 21:32:11 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-2ab95db1-4561-4471-80cd-5ac50a272cff", "pubsub#title": "Node 2ab95db1-4561-4471-80cd-5ac50a272cff" } 2022-11-24 21:32:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-24 21:32:12 | [Mutex] waiting for: [received:nodes:8baf86af-b29c-41d7-87b5-f01154c0f3c8:localhost] 2022-11-24 21:32:12 | [Mutex] waiting for: [received:nodes:8baf86af-b29c-41d7-87b5-f01154c0f3c8:localhost] 2022-11-24 21:32:12 | [Mutex] received everything. 2022-11-24 21:32:12 | [Mutex] isItemNotified: received:node:8baf86af-b29c-41d7-87b5-f01154c0f3c8:localhost:node-2ab95db1-4561-4471-80cd-5ac50a272cff:Node 2ab95db1-4561-4471-80cd-5ac50a272cff :: true |
createSubnodes | 1.023s |
2022-11-24 21:32:12 |
2022-11-24 21:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-24 21:32:12 | ------------------------------------ 2022-11-24 21:32:12 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-64d7ccc9-96e3-413e-bc71-3f08e33dcf36", "pubsub#title": "Node 64d7ccc9-96e3-413e-bc71-3f08e33dcf36" } 2022-11-24 21:32:12 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-24 21:32:13 | [Mutex] waiting for: [received:nodes:a2da1ccd-b318-4b7c-859f-eaf6471e70eb:localhost] 2022-11-24 21:32:13 | [Mutex] received everything. 2022-11-24 21:32:13 | [Mutex] isItemNotified: received:node:a2da1ccd-b318-4b7c-859f-eaf6471e70eb:localhost:node-64d7ccc9-96e3-413e-bc71-3f08e33dcf36:Node 64d7ccc9-96e3-413e-bc71-3f08e33dcf36 :: true |
deleteNodes | 1.025s |
2022-11-24 21:32:18 |
2022-11-24 21:32:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-24 21:32:18 | ------------------------------------ 2022-11-24 21:32:18 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-64d7ccc9-96e3-413e-bc71-3f08e33dcf36" } 2022-11-24 21:32:18 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-24 21:32:19 | [Mutex] waiting for: [received:nodes:1989c1f0-31de-40ab-ae2c-c0cffe04fe88:localhost] 2022-11-24 21:32:19 | [Mutex] received everything. 2022-11-24 21:32:19 | [Mutex] isItemNotified: received:node:1989c1f0-31de-40ab-ae2c-c0cffe04fe88:localhost:node-64d7ccc9-96e3-413e-bc71-3f08e33dcf36:Node 64d7ccc9-96e3-413e-bc71-3f08e33dcf36 :: false |
deleteSubnodes | 1.027s |
2022-11-24 21:32:17 |
2022-11-24 21:32:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-24 21:32:17 | ------------------------------------ 2022-11-24 21:32:17 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2ab95db1-4561-4471-80cd-5ac50a272cff" } 2022-11-24 21:32:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-24 21:32:18 | [Mutex] waiting for: [received:nodes:196c4f13-6f88-4022-ac18-417682c866e2:localhost] 2022-11-24 21:32:18 | [Mutex] received everything. 2022-11-24 21:32:18 | [Mutex] isItemNotified: received:node:196c4f13-6f88-4022-ac18-417682c866e2:localhost:node-2ab95db1-4561-4471-80cd-5ac50a272cff:Node 2ab95db1-4561-4471-80cd-5ac50a272cff :: false 2022-11-24 21:32:18 | [Mutex] waiting for: [received:nodes:fc62583c-3c8b-437e-be64-88a4c6395389:localhost] 2022-11-24 21:32:18 | [Mutex] received everything. 2022-11-24 21:32:18 | [Mutex] isItemNotified: received:node:fc62583c-3c8b-437e-be64-88a4c6395389:localhost:node-2ab95db1-4561-4471-80cd-5ac50a272cff:Node 2ab95db1-4561-4471-80cd-5ac50a272cff :: false |
publishItemsToNodes | 0.054s |
2022-11-24 21:32:15 |
2022-11-24 21:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-24 21:32:15 | ------------------------------------ 2022-11-24 21:32:15 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-2ab95db1-4561-4471-80cd-5ac50a272cff", "entry": "<test>item-da884ebe-fee2-4de1-afd3-713c1504b12c</test>", "item-id": "item-da884ebe-fee2-4de1-afd3-713c1504b12c" } 2022-11-24 21:32:15 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-da884ebe-fee2-4de1-afd3-713c1504b12c" } 2022-11-24 21:32:15 | [Mutex] waiting for: [published:item:notifieditem-da884ebe-fee2-4de1-afd3-713c1504b12c:admin@test-domain.com] 2022-11-24 21:32:15 | [Mutex] received everything. 2022-11-24 21:32:15 | [Mutex] isItemNotified: published:item:notifieditem-da884ebe-fee2-4de1-afd3-713c1504b12c:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-11-24 21:32:16 |
2022-11-24 21:32:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-24 21:32:16 | ------------------------------------ 2022-11-24 21:32:16 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-2ab95db1-4561-4471-80cd-5ac50a272cff", "item-id": "item-da884ebe-fee2-4de1-afd3-713c1504b12c" } 2022-11-24 21:32:16 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-da884ebe-fee2-4de1-afd3-713c1504b12c" } 2022-11-24 21:32:16 | [Mutex] received everything. 2022-11-24 21:32:16 | [Mutex] isItemNotified: retracted:item:notifieditem-da884ebe-fee2-4de1-afd3-713c1504b12c:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.085s |
2022-11-24 21:32:15 |
2022-11-24 21:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-24 21:32:15 | ------------------------------------ 2022-11-24 21:32:15 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-2ab95db1-4561-4471-80cd-5ac50a272cff", "item-id": "item-da884ebe-fee2-4de1-afd3-713c1504b12c" } 2022-11-24 21:32:15 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-2ab95db1-4561-4471-80cd-5ac50a272cff", "item-id": "item-da884ebe-fee2-4de1-afd3-713c1504b12c", "item": [ "<item id=\"item-da884ebe-fee2-4de1-afd3-713c1504b12c\"><test>item-da884ebe-fee2-4de1-afd3-713c1504b12c</test></item>" ] } 2022-11-24 21:32:15 | [Mutex] notify: [retrieved:item:item-da884ebe-fee2-4de1-afd3-713c1504b12c:payload-matches:true:localhost] 2022-11-24 21:32:15 | [Mutex] received everything. 2022-11-24 21:32:15 | [Mutex] isItemNotified: retrieved:item:item-da884ebe-fee2-4de1-afd3-713c1504b12c:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.054s |
2022-11-24 21:32:15 |
2022-11-24 21:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-24 21:32:15 | ------------------------------------ 2022-11-24 21:32:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-11-24 21:32:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-2ab95db1-4561-4471-80cd-5ac50a272cff", "test", "node-64d7ccc9-96e3-413e-bc71-3f08e33dcf36" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-11-24 21:32:15 |
2022-11-24 21:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-24 21:32:15 | ------------------------------------ 2022-11-24 21:32:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-2ab95db1-4561-4471-80cd-5ac50a272cff)" } 2022-11-24 21:32:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-11-24 21:32:14 |
2022-11-24 21:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-24 21:32:14 | ------------------------------------ 2022-11-24 21:32:14 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-2ab95db1-4561-4471-80cd-5ac50a272cff", "jids": [ "admin@test-domain.com" ] } 2022-11-24 21:32:14 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.078s |
2022-11-24 21:32:16 |
2022-11-24 21:32:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-24 21:32:16 | ------------------------------------ 2022-11-24 21:32:16 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-2ab95db1-4561-4471-80cd-5ac50a272cff", "jids": [ "admin@test-domain.com" ] } 2022-11-24 21:32:16 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |