Test duration : 8.769s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.088s |
2023-03-05 21:59:14 |
2023-03-05 21:59:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-05 21:59:14 | ------------------------------------ 2023-03-05 21:59:14 | [Mutex] waiting for: [configured:node:node-7da5f718-e62a-46fb-8347-1d595adb1ace:node-b18068f6-ecbc-48a9-8e45-1d20a147dd8b] 2023-03-05 21:59:14 | [Mutex] received everything. 2023-03-05 21:59:14 | [Mutex] isItemNotified: configured:node:node-7da5f718-e62a-46fb-8347-1d595adb1ace:node-b18068f6-ecbc-48a9-8e45-1d20a147dd8b :: true 2023-03-05 21:59:15 | [Mutex] waiting for: [received:nodes:34a871dd-8335-40c5-b123-123101dc261c:localhost] 2023-03-05 21:59:15 | [Mutex] received everything. 2023-03-05 21:59:15 | [Mutex] isItemNotified: received:node:34a871dd-8335-40c5-b123-123101dc261c:localhost:node-7da5f718-e62a-46fb-8347-1d595adb1ace:Node 7da5f718-e62a-46fb-8347-1d595adb1ace :: true 2023-03-05 21:59:15 | [Mutex] waiting for: [received:nodes:64539870-f7f7-41e6-9365-226d4abcc690:localhost] 2023-03-05 21:59:15 | [Mutex] waiting for: [received:nodes:64539870-f7f7-41e6-9365-226d4abcc690:localhost] 2023-03-05 21:59:15 | [Mutex] waiting for: [received:nodes:64539870-f7f7-41e6-9365-226d4abcc690:localhost] 2023-03-05 21:59:15 | [Mutex] waiting for: [received:nodes:64539870-f7f7-41e6-9365-226d4abcc690:localhost] 2023-03-05 21:59:15 | [Mutex] received everything. 2023-03-05 21:59:15 | [Mutex] isItemNotified: received:node:64539870-f7f7-41e6-9365-226d4abcc690:localhost:node-7da5f718-e62a-46fb-8347-1d595adb1ace:Node 7da5f718-e62a-46fb-8347-1d595adb1ace :: false |
createNodes | 1.692s |
2023-03-05 21:59:12 |
2023-03-05 21:59:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-05 21:59:12 | ------------------------------------ 2023-03-05 21:59:12 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-7da5f718-e62a-46fb-8347-1d595adb1ace", "pubsub#title": "Node 7da5f718-e62a-46fb-8347-1d595adb1ace" } 2023-03-05 21:59:12 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-05 21:59:13 | [Mutex] waiting for: [received:nodes:e04fca6d-50cc-4110-b2bc-61dbb69b4c66:localhost] 2023-03-05 21:59:13 | [Mutex] waiting for: [received:nodes:e04fca6d-50cc-4110-b2bc-61dbb69b4c66:localhost] 2023-03-05 21:59:13 | [Mutex] waiting for: [received:nodes:e04fca6d-50cc-4110-b2bc-61dbb69b4c66:localhost] 2023-03-05 21:59:13 | [Mutex] received everything. 2023-03-05 21:59:13 | [Mutex] isItemNotified: received:node:e04fca6d-50cc-4110-b2bc-61dbb69b4c66:localhost:node-7da5f718-e62a-46fb-8347-1d595adb1ace:Node 7da5f718-e62a-46fb-8347-1d595adb1ace :: true |
createSubnodes | 1.037s |
2023-03-05 21:59:13 |
2023-03-05 21:59:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-05 21:59:13 | ------------------------------------ 2023-03-05 21:59:13 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-b18068f6-ecbc-48a9-8e45-1d20a147dd8b", "pubsub#title": "Node b18068f6-ecbc-48a9-8e45-1d20a147dd8b" } 2023-03-05 21:59:13 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-05 21:59:14 | [Mutex] waiting for: [received:nodes:e972d8b8-dd41-4bb7-8a49-b1c3af257e19:localhost] 2023-03-05 21:59:14 | [Mutex] waiting for: [received:nodes:e972d8b8-dd41-4bb7-8a49-b1c3af257e19:localhost] 2023-03-05 21:59:14 | [Mutex] waiting for: [received:nodes:e972d8b8-dd41-4bb7-8a49-b1c3af257e19:localhost] 2023-03-05 21:59:14 | [Mutex] waiting for: [received:nodes:e972d8b8-dd41-4bb7-8a49-b1c3af257e19:localhost] 2023-03-05 21:59:14 | [Mutex] waiting for: [received:nodes:e972d8b8-dd41-4bb7-8a49-b1c3af257e19:localhost] 2023-03-05 21:59:14 | [Mutex] received everything. 2023-03-05 21:59:14 | [Mutex] isItemNotified: received:node:e972d8b8-dd41-4bb7-8a49-b1c3af257e19:localhost:node-b18068f6-ecbc-48a9-8e45-1d20a147dd8b:Node b18068f6-ecbc-48a9-8e45-1d20a147dd8b :: true |
deleteNodes | 1.026s |
2023-03-05 21:59:19 |
2023-03-05 21:59:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-05 21:59:19 | ------------------------------------ 2023-03-05 21:59:19 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b18068f6-ecbc-48a9-8e45-1d20a147dd8b" } 2023-03-05 21:59:19 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-05 21:59:20 | [Mutex] waiting for: [received:nodes:deb657c2-b267-40e1-9d22-3e068ebb5836:localhost] 2023-03-05 21:59:20 | [Mutex] received everything. 2023-03-05 21:59:20 | [Mutex] isItemNotified: received:node:deb657c2-b267-40e1-9d22-3e068ebb5836:localhost:node-b18068f6-ecbc-48a9-8e45-1d20a147dd8b:Node b18068f6-ecbc-48a9-8e45-1d20a147dd8b :: false |
deleteSubnodes | 1.033s |
2023-03-05 21:59:18 |
2023-03-05 21:59:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-05 21:59:18 | ------------------------------------ 2023-03-05 21:59:18 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7da5f718-e62a-46fb-8347-1d595adb1ace" } 2023-03-05 21:59:18 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-05 21:59:19 | [Mutex] waiting for: [received:nodes:9e2c9bdf-9312-493d-8352-3d6edd7b0ea4:localhost] 2023-03-05 21:59:19 | [Mutex] waiting for: [received:nodes:9e2c9bdf-9312-493d-8352-3d6edd7b0ea4:localhost] 2023-03-05 21:59:19 | [Mutex] waiting for: [received:nodes:9e2c9bdf-9312-493d-8352-3d6edd7b0ea4:localhost] 2023-03-05 21:59:19 | [Mutex] received everything. 2023-03-05 21:59:19 | [Mutex] isItemNotified: received:node:9e2c9bdf-9312-493d-8352-3d6edd7b0ea4:localhost:node-7da5f718-e62a-46fb-8347-1d595adb1ace:Node 7da5f718-e62a-46fb-8347-1d595adb1ace :: false 2023-03-05 21:59:19 | [Mutex] waiting for: [received:nodes:a90c77a7-c806-404d-a39b-5ade21681195:localhost] 2023-03-05 21:59:19 | [Mutex] received everything. 2023-03-05 21:59:19 | [Mutex] isItemNotified: received:node:a90c77a7-c806-404d-a39b-5ade21681195:localhost:node-7da5f718-e62a-46fb-8347-1d595adb1ace:Node 7da5f718-e62a-46fb-8347-1d595adb1ace :: false |
publishItemsToNodes | 0.023s |
2023-03-05 21:59:16 |
2023-03-05 21:59:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-05 21:59:16 | ------------------------------------ 2023-03-05 21:59:16 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-7da5f718-e62a-46fb-8347-1d595adb1ace", "entry": "<test>item-13b6c246-75ac-44a7-9527-77f0f68eefb2</test>", "item-id": "item-13b6c246-75ac-44a7-9527-77f0f68eefb2" } 2023-03-05 21:59:16 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-13b6c246-75ac-44a7-9527-77f0f68eefb2" } 2023-03-05 21:59:16 | [Mutex] waiting for: [published:item:notifieditem-13b6c246-75ac-44a7-9527-77f0f68eefb2:admin@test-domain.com] 2023-03-05 21:59:16 | [Mutex] received everything. 2023-03-05 21:59:16 | [Mutex] isItemNotified: published:item:notifieditem-13b6c246-75ac-44a7-9527-77f0f68eefb2:admin@test-domain.com :: true |
retractItemsFromNodes | 0.054s |
2023-03-05 21:59:17 |
2023-03-05 21:59:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-05 21:59:17 | ------------------------------------ 2023-03-05 21:59:17 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-7da5f718-e62a-46fb-8347-1d595adb1ace", "item-id": "item-13b6c246-75ac-44a7-9527-77f0f68eefb2" } 2023-03-05 21:59:17 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-13b6c246-75ac-44a7-9527-77f0f68eefb2" } 2023-03-05 21:59:17 | [Mutex] received everything. 2023-03-05 21:59:17 | [Mutex] isItemNotified: retracted:item:notifieditem-13b6c246-75ac-44a7-9527-77f0f68eefb2:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.095s |
2023-03-05 21:59:16 |
2023-03-05 21:59:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-05 21:59:16 | ------------------------------------ 2023-03-05 21:59:16 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-7da5f718-e62a-46fb-8347-1d595adb1ace", "item-id": "item-13b6c246-75ac-44a7-9527-77f0f68eefb2" } 2023-03-05 21:59:16 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-7da5f718-e62a-46fb-8347-1d595adb1ace", "item-id": "item-13b6c246-75ac-44a7-9527-77f0f68eefb2", "item": [ "<item id=\"item-13b6c246-75ac-44a7-9527-77f0f68eefb2\"><test>item-13b6c246-75ac-44a7-9527-77f0f68eefb2</test></item>" ] } 2023-03-05 21:59:16 | [Mutex] notify: [retrieved:item:item-13b6c246-75ac-44a7-9527-77f0f68eefb2:payload-matches:true:localhost] 2023-03-05 21:59:16 | [Mutex] received everything. 2023-03-05 21:59:16 | [Mutex] isItemNotified: retrieved:item:item-13b6c246-75ac-44a7-9527-77f0f68eefb2:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-03-05 21:59:16 |
2023-03-05 21:59:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-05 21:59:16 | ------------------------------------ 2023-03-05 21:59:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-03-05 21:59:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-7da5f718-e62a-46fb-8347-1d595adb1ace", "node-b18068f6-ecbc-48a9-8e45-1d20a147dd8b" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-03-05 21:59:17 |
2023-03-05 21:59:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-05 21:59:17 | ------------------------------------ 2023-03-05 21:59:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-7da5f718-e62a-46fb-8347-1d595adb1ace)" } 2023-03-05 21:59:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2023-03-05 21:59:15 |
2023-03-05 21:59:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-05 21:59:15 | ------------------------------------ 2023-03-05 21:59:15 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-7da5f718-e62a-46fb-8347-1d595adb1ace", "jids": [ "admin@test-domain.com" ] } 2023-03-05 21:59:15 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.138s |
2023-03-05 21:59:17 |
2023-03-05 21:59:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-05 21:59:17 | ------------------------------------ 2023-03-05 21:59:17 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-7da5f718-e62a-46fb-8347-1d595adb1ace", "jids": [ "admin@test-domain.com" ] } 2023-03-05 21:59:17 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |