Test duration : 8.677s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.111s |
2022-09-26 22:35:17 |
2022-09-26 22:35:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:17 | ------------------------------------ 2022-09-26 22:35:17 | [Mutex] waiting for: [configured:node:node-b66a9090-59fc-467d-8dd1-6f48cbb0ec2d:node-faf8a566-60f4-4050-8ad0-459f74f396ac] 2022-09-26 22:35:18 | [Mutex] received everything. 2022-09-26 22:35:18 | [Mutex] isItemNotified: configured:node:node-b66a9090-59fc-467d-8dd1-6f48cbb0ec2d:node-faf8a566-60f4-4050-8ad0-459f74f396ac :: true 2022-09-26 22:35:19 | [Mutex] waiting for: [received:nodes:1da9d800-fc16-42b7-9c7f-d641bbaf6511:localhost] 2022-09-26 22:35:19 | [Mutex] waiting for: [received:nodes:1da9d800-fc16-42b7-9c7f-d641bbaf6511:localhost] 2022-09-26 22:35:19 | [Mutex] received everything. 2022-09-26 22:35:19 | [Mutex] isItemNotified: received:node:1da9d800-fc16-42b7-9c7f-d641bbaf6511:localhost:node-b66a9090-59fc-467d-8dd1-6f48cbb0ec2d:Node b66a9090-59fc-467d-8dd1-6f48cbb0ec2d :: true 2022-09-26 22:35:19 | [Mutex] waiting for: [received:nodes:f871196b-41a5-4864-98b3-97ccf5a29c45:localhost] 2022-09-26 22:35:19 | [Mutex] received everything. 2022-09-26 22:35:19 | [Mutex] isItemNotified: received:node:f871196b-41a5-4864-98b3-97ccf5a29c45:localhost:node-b66a9090-59fc-467d-8dd1-6f48cbb0ec2d:Node b66a9090-59fc-467d-8dd1-6f48cbb0ec2d :: false |
createNodes | 1.596s |
2022-09-26 22:35:15 |
2022-09-26 22:35:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:15 | ------------------------------------ 2022-09-26 22:35:15 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-b66a9090-59fc-467d-8dd1-6f48cbb0ec2d", "pubsub#title": "Node b66a9090-59fc-467d-8dd1-6f48cbb0ec2d" } 2022-09-26 22:35:15 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-26 22:35:16 | [Mutex] waiting for: [received:nodes:40fd2bdc-d847-4ede-81d5-3254fcc8beee:localhost] 2022-09-26 22:35:16 | [Mutex] waiting for: [received:nodes:40fd2bdc-d847-4ede-81d5-3254fcc8beee:localhost] 2022-09-26 22:35:16 | [Mutex] received everything. 2022-09-26 22:35:16 | [Mutex] isItemNotified: received:node:40fd2bdc-d847-4ede-81d5-3254fcc8beee:localhost:node-b66a9090-59fc-467d-8dd1-6f48cbb0ec2d:Node b66a9090-59fc-467d-8dd1-6f48cbb0ec2d :: true |
createSubnodes | 1.025s |
2022-09-26 22:35:16 |
2022-09-26 22:35:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:16 | ------------------------------------ 2022-09-26 22:35:16 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-faf8a566-60f4-4050-8ad0-459f74f396ac", "pubsub#title": "Node faf8a566-60f4-4050-8ad0-459f74f396ac" } 2022-09-26 22:35:16 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-26 22:35:17 | [Mutex] waiting for: [received:nodes:6234576b-4944-4c16-8530-84efe0c8bad9:localhost] 2022-09-26 22:35:17 | [Mutex] received everything. 2022-09-26 22:35:17 | [Mutex] isItemNotified: received:node:6234576b-4944-4c16-8530-84efe0c8bad9:localhost:node-faf8a566-60f4-4050-8ad0-459f74f396ac:Node faf8a566-60f4-4050-8ad0-459f74f396ac :: true |
deleteNodes | 1.022s |
2022-09-26 22:35:22 |
2022-09-26 22:35:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:22 | ------------------------------------ 2022-09-26 22:35:22 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-faf8a566-60f4-4050-8ad0-459f74f396ac" } 2022-09-26 22:35:22 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-26 22:35:23 | [Mutex] waiting for: [received:nodes:ac1c3122-77b0-4182-820b-bc2d2f7a1f9b:localhost] 2022-09-26 22:35:23 | [Mutex] received everything. 2022-09-26 22:35:23 | [Mutex] isItemNotified: received:node:ac1c3122-77b0-4182-820b-bc2d2f7a1f9b:localhost:node-faf8a566-60f4-4050-8ad0-459f74f396ac:Node faf8a566-60f4-4050-8ad0-459f74f396ac :: false |
deleteSubnodes | 1.029s |
2022-09-26 22:35:21 |
2022-09-26 22:35:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:21 | ------------------------------------ 2022-09-26 22:35:21 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b66a9090-59fc-467d-8dd1-6f48cbb0ec2d" } 2022-09-26 22:35:21 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-26 22:35:22 | [Mutex] waiting for: [received:nodes:07027e97-2ae1-4466-9220-9a8365f731d1:localhost] 2022-09-26 22:35:22 | [Mutex] waiting for: [received:nodes:07027e97-2ae1-4466-9220-9a8365f731d1:localhost] 2022-09-26 22:35:22 | [Mutex] received everything. 2022-09-26 22:35:22 | [Mutex] isItemNotified: received:node:07027e97-2ae1-4466-9220-9a8365f731d1:localhost:node-b66a9090-59fc-467d-8dd1-6f48cbb0ec2d:Node b66a9090-59fc-467d-8dd1-6f48cbb0ec2d :: false 2022-09-26 22:35:22 | [Mutex] waiting for: [received:nodes:d736674e-9d03-469c-bb2b-dab57d5c24e4:localhost] 2022-09-26 22:35:22 | [Mutex] received everything. 2022-09-26 22:35:22 | [Mutex] isItemNotified: received:node:d736674e-9d03-469c-bb2b-dab57d5c24e4:localhost:node-b66a9090-59fc-467d-8dd1-6f48cbb0ec2d:Node b66a9090-59fc-467d-8dd1-6f48cbb0ec2d :: false |
publishItemsToNodes | 0.032s |
2022-09-26 22:35:20 |
2022-09-26 22:35:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:20 | ------------------------------------ 2022-09-26 22:35:20 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-b66a9090-59fc-467d-8dd1-6f48cbb0ec2d", "entry": "<test>item-54b86ee6-69a1-4e54-9a21-b5ee3825d148</test>", "item-id": "item-54b86ee6-69a1-4e54-9a21-b5ee3825d148" } 2022-09-26 22:35:20 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-54b86ee6-69a1-4e54-9a21-b5ee3825d148" } 2022-09-26 22:35:20 | [Mutex] waiting for: [published:item:notifieditem-54b86ee6-69a1-4e54-9a21-b5ee3825d148:admin@test-domain.com] 2022-09-26 22:35:20 | [Mutex] received everything. 2022-09-26 22:35:20 | [Mutex] isItemNotified: published:item:notifieditem-54b86ee6-69a1-4e54-9a21-b5ee3825d148:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-09-26 22:35:20 |
2022-09-26 22:35:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:20 | ------------------------------------ 2022-09-26 22:35:20 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-b66a9090-59fc-467d-8dd1-6f48cbb0ec2d", "item-id": "item-54b86ee6-69a1-4e54-9a21-b5ee3825d148" } 2022-09-26 22:35:20 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-54b86ee6-69a1-4e54-9a21-b5ee3825d148" } 2022-09-26 22:35:20 | [Mutex] received everything. 2022-09-26 22:35:20 | [Mutex] isItemNotified: retracted:item:notifieditem-54b86ee6-69a1-4e54-9a21-b5ee3825d148:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.072s |
2022-09-26 22:35:20 |
2022-09-26 22:35:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:20 | ------------------------------------ 2022-09-26 22:35:20 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-b66a9090-59fc-467d-8dd1-6f48cbb0ec2d", "item-id": "item-54b86ee6-69a1-4e54-9a21-b5ee3825d148" } 2022-09-26 22:35:20 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-b66a9090-59fc-467d-8dd1-6f48cbb0ec2d", "item-id": "item-54b86ee6-69a1-4e54-9a21-b5ee3825d148", "item": [ "<item id=\"item-54b86ee6-69a1-4e54-9a21-b5ee3825d148\"><test>item-54b86ee6-69a1-4e54-9a21-b5ee3825d148</test></item>" ] } 2022-09-26 22:35:20 | [Mutex] notify: [retrieved:item:item-54b86ee6-69a1-4e54-9a21-b5ee3825d148:payload-matches:true:localhost] 2022-09-26 22:35:20 | [Mutex] received everything. 2022-09-26 22:35:20 | [Mutex] isItemNotified: retrieved:item:item-54b86ee6-69a1-4e54-9a21-b5ee3825d148:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-09-26 22:35:20 |
2022-09-26 22:35:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:20 | ------------------------------------ 2022-09-26 22:35:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-09-26 22:35:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-b66a9090-59fc-467d-8dd1-6f48cbb0ec2d", "node-faf8a566-60f4-4050-8ad0-459f74f396ac" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-09-26 22:35:20 |
2022-09-26 22:35:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:20 | ------------------------------------ 2022-09-26 22:35:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-b66a9090-59fc-467d-8dd1-6f48cbb0ec2d)" } 2022-09-26 22:35:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-09-26 22:35:19 |
2022-09-26 22:35:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:19 | ------------------------------------ 2022-09-26 22:35:19 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-b66a9090-59fc-467d-8dd1-6f48cbb0ec2d", "jids": [ "admin@test-domain.com" ] } 2022-09-26 22:35:19 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.083s |
2022-09-26 22:35:20 |
2022-09-26 22:35:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-26 22:35:20 | ------------------------------------ 2022-09-26 22:35:20 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-b66a9090-59fc-467d-8dd1-6f48cbb0ec2d", "jids": [ "admin@test-domain.com" ] } 2022-09-26 22:35:20 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |