Test duration : 8.467s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.103s |
2023-11-06 00:08:30 |
2023-11-06 00:08:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-06 00:08:30 | ------------------------------------ 2023-11-06 00:08:30 | [Mutex] waiting for: [configured:node:node-a7cb39f8-42b1-4f3d-99cc-496f8a2c643e:node-16c60d94-cdc1-4c58-b359-499d05b00967] 2023-11-06 00:08:30 | [Mutex] received everything. 2023-11-06 00:08:30 | [Mutex] isItemNotified: configured:node:node-a7cb39f8-42b1-4f3d-99cc-496f8a2c643e:node-16c60d94-cdc1-4c58-b359-499d05b00967 :: true 2023-11-06 00:08:31 | [Mutex] waiting for: [received:nodes:23486696-12b1-4526-bb86-0f5e87ef808e:localhost] 2023-11-06 00:08:31 | [Mutex] received everything. 2023-11-06 00:08:31 | [Mutex] isItemNotified: received:node:23486696-12b1-4526-bb86-0f5e87ef808e:localhost:node-a7cb39f8-42b1-4f3d-99cc-496f8a2c643e:Node a7cb39f8-42b1-4f3d-99cc-496f8a2c643e :: true 2023-11-06 00:08:31 | [Mutex] waiting for: [received:nodes:9d39e393-d1aa-4316-ad91-6aa1c8bbbc55:localhost] 2023-11-06 00:08:31 | [Mutex] waiting for: [received:nodes:9d39e393-d1aa-4316-ad91-6aa1c8bbbc55:localhost] 2023-11-06 00:08:31 | [Mutex] waiting for: [received:nodes:9d39e393-d1aa-4316-ad91-6aa1c8bbbc55:localhost] 2023-11-06 00:08:31 | [Mutex] received everything. 2023-11-06 00:08:31 | [Mutex] isItemNotified: received:node:9d39e393-d1aa-4316-ad91-6aa1c8bbbc55:localhost:node-a7cb39f8-42b1-4f3d-99cc-496f8a2c643e:Node a7cb39f8-42b1-4f3d-99cc-496f8a2c643e :: false |
createNodes | 1.531s |
2023-11-06 00:08:27 |
2023-11-06 00:08:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-06 00:08:27 | ------------------------------------ 2023-11-06 00:08:28 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-a7cb39f8-42b1-4f3d-99cc-496f8a2c643e", "pubsub#title": "Node a7cb39f8-42b1-4f3d-99cc-496f8a2c643e" } 2023-11-06 00:08:28 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-11-06 00:08:29 | [Mutex] waiting for: [received:nodes:d48d7818-f008-41a4-b126-a556095a38c5:localhost] 2023-11-06 00:08:29 | [Mutex] received everything. 2023-11-06 00:08:29 | [Mutex] isItemNotified: received:node:d48d7818-f008-41a4-b126-a556095a38c5:localhost:node-a7cb39f8-42b1-4f3d-99cc-496f8a2c643e:Node a7cb39f8-42b1-4f3d-99cc-496f8a2c643e :: true |
createSubnodes | 1.021s |
2023-11-06 00:08:29 |
2023-11-06 00:08:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-06 00:08:29 | ------------------------------------ 2023-11-06 00:08:29 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-16c60d94-cdc1-4c58-b359-499d05b00967", "pubsub#title": "Node 16c60d94-cdc1-4c58-b359-499d05b00967" } 2023-11-06 00:08:29 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-11-06 00:08:30 | [Mutex] waiting for: [received:nodes:fd3d85b1-ee3b-473e-9e54-fbafbe63ccda:localhost] 2023-11-06 00:08:30 | [Mutex] waiting for: [received:nodes:fd3d85b1-ee3b-473e-9e54-fbafbe63ccda:localhost] 2023-11-06 00:08:30 | [Mutex] waiting for: [received:nodes:fd3d85b1-ee3b-473e-9e54-fbafbe63ccda:localhost] 2023-11-06 00:08:30 | [Mutex] waiting for: [received:nodes:fd3d85b1-ee3b-473e-9e54-fbafbe63ccda:localhost] 2023-11-06 00:08:30 | [Mutex] received everything. 2023-11-06 00:08:30 | [Mutex] isItemNotified: received:node:fd3d85b1-ee3b-473e-9e54-fbafbe63ccda:localhost:node-16c60d94-cdc1-4c58-b359-499d05b00967:Node 16c60d94-cdc1-4c58-b359-499d05b00967 :: true |
deleteNodes | 1.018s |
2023-11-06 00:08:34 |
2023-11-06 00:08:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-06 00:08:34 | ------------------------------------ 2023-11-06 00:08:34 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-16c60d94-cdc1-4c58-b359-499d05b00967" } 2023-11-06 00:08:34 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-11-06 00:08:35 | [Mutex] waiting for: [received:nodes:961f4244-3360-4cb0-a3e6-cdd09e4e0abd:localhost] 2023-11-06 00:08:35 | [Mutex] waiting for: [received:nodes:961f4244-3360-4cb0-a3e6-cdd09e4e0abd:localhost] 2023-11-06 00:08:35 | [Mutex] waiting for: [received:nodes:961f4244-3360-4cb0-a3e6-cdd09e4e0abd:localhost] 2023-11-06 00:08:35 | [Mutex] waiting for: [received:nodes:961f4244-3360-4cb0-a3e6-cdd09e4e0abd:localhost] 2023-11-06 00:08:35 | [Mutex] received everything. 2023-11-06 00:08:35 | [Mutex] isItemNotified: received:node:961f4244-3360-4cb0-a3e6-cdd09e4e0abd:localhost:node-16c60d94-cdc1-4c58-b359-499d05b00967:Node 16c60d94-cdc1-4c58-b359-499d05b00967 :: false |
deleteSubnodes | 1.026s |
2023-11-06 00:08:33 |
2023-11-06 00:08:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-06 00:08:33 | ------------------------------------ 2023-11-06 00:08:33 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a7cb39f8-42b1-4f3d-99cc-496f8a2c643e" } 2023-11-06 00:08:33 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-11-06 00:08:34 | [Mutex] waiting for: [received:nodes:8df4b701-7288-485c-8cfa-937707a153b7:localhost] 2023-11-06 00:08:34 | [Mutex] waiting for: [received:nodes:8df4b701-7288-485c-8cfa-937707a153b7:localhost] 2023-11-06 00:08:34 | [Mutex] waiting for: [received:nodes:8df4b701-7288-485c-8cfa-937707a153b7:localhost] 2023-11-06 00:08:34 | [Mutex] waiting for: [received:nodes:8df4b701-7288-485c-8cfa-937707a153b7:localhost] 2023-11-06 00:08:34 | [Mutex] received everything. 2023-11-06 00:08:34 | [Mutex] isItemNotified: received:node:8df4b701-7288-485c-8cfa-937707a153b7:localhost:node-a7cb39f8-42b1-4f3d-99cc-496f8a2c643e:Node a7cb39f8-42b1-4f3d-99cc-496f8a2c643e :: false 2023-11-06 00:08:34 | [Mutex] waiting for: [received:nodes:9706e1c6-1e48-4eee-aa46-d6011b48ae62:localhost] 2023-11-06 00:08:34 | [Mutex] received everything. 2023-11-06 00:08:34 | [Mutex] isItemNotified: received:node:9706e1c6-1e48-4eee-aa46-d6011b48ae62:localhost:node-a7cb39f8-42b1-4f3d-99cc-496f8a2c643e:Node a7cb39f8-42b1-4f3d-99cc-496f8a2c643e :: false |
publishItemsToNodes | 0.030s |
2023-11-06 00:08:32 |
2023-11-06 00:08:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-06 00:08:32 | ------------------------------------ 2023-11-06 00:08:32 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-a7cb39f8-42b1-4f3d-99cc-496f8a2c643e", "entry": "<test>item-a80e4ff3-85d7-4925-a348-8902891cecab</test>", "item-id": "item-a80e4ff3-85d7-4925-a348-8902891cecab" } 2023-11-06 00:08:32 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a80e4ff3-85d7-4925-a348-8902891cecab" } 2023-11-06 00:08:32 | [Mutex] waiting for: [published:item:notifieditem-a80e4ff3-85d7-4925-a348-8902891cecab:admin@test-domain.com] 2023-11-06 00:08:32 | [Mutex] received everything. 2023-11-06 00:08:32 | [Mutex] isItemNotified: published:item:notifieditem-a80e4ff3-85d7-4925-a348-8902891cecab:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2023-11-06 00:08:32 |
2023-11-06 00:08:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-06 00:08:32 | ------------------------------------ 2023-11-06 00:08:32 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-a7cb39f8-42b1-4f3d-99cc-496f8a2c643e", "item-id": "item-a80e4ff3-85d7-4925-a348-8902891cecab" } 2023-11-06 00:08:32 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a80e4ff3-85d7-4925-a348-8902891cecab" } 2023-11-06 00:08:32 | [Mutex] received everything. 2023-11-06 00:08:32 | [Mutex] isItemNotified: retracted:item:notifieditem-a80e4ff3-85d7-4925-a348-8902891cecab:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.076s |
2023-11-06 00:08:32 |
2023-11-06 00:08:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-06 00:08:32 | ------------------------------------ 2023-11-06 00:08:32 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-a7cb39f8-42b1-4f3d-99cc-496f8a2c643e", "item-id": "item-a80e4ff3-85d7-4925-a348-8902891cecab" } 2023-11-06 00:08:32 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-a7cb39f8-42b1-4f3d-99cc-496f8a2c643e", "item-id": "item-a80e4ff3-85d7-4925-a348-8902891cecab", "item": [ "<item id=\"item-a80e4ff3-85d7-4925-a348-8902891cecab\"><test>item-a80e4ff3-85d7-4925-a348-8902891cecab</test></item>" ] } 2023-11-06 00:08:32 | [Mutex] notify: [retrieved:item:item-a80e4ff3-85d7-4925-a348-8902891cecab:payload-matches:true:localhost] 2023-11-06 00:08:32 | [Mutex] received everything. 2023-11-06 00:08:32 | [Mutex] isItemNotified: retrieved:item:item-a80e4ff3-85d7-4925-a348-8902891cecab:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-11-06 00:08:32 |
2023-11-06 00:08:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-06 00:08:32 | ------------------------------------ 2023-11-06 00:08:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-11-06 00:08:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-a7cb39f8-42b1-4f3d-99cc-496f8a2c643e", "test", "node-16c60d94-cdc1-4c58-b359-499d05b00967" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2023-11-06 00:08:32 |
2023-11-06 00:08:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-06 00:08:32 | ------------------------------------ 2023-11-06 00:08:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-a7cb39f8-42b1-4f3d-99cc-496f8a2c643e)" } 2023-11-06 00:08:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2023-11-06 00:08:31 |
2023-11-06 00:08:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-06 00:08:31 | ------------------------------------ 2023-11-06 00:08:31 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-a7cb39f8-42b1-4f3d-99cc-496f8a2c643e", "jids": [ "admin@test-domain.com" ] } 2023-11-06 00:08:31 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2023-11-06 00:08:32 |
2023-11-06 00:08:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-06 00:08:32 | ------------------------------------ 2023-11-06 00:08:32 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-a7cb39f8-42b1-4f3d-99cc-496f8a2c643e", "jids": [ "admin@test-domain.com" ] } 2023-11-06 00:08:32 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |