Test duration : 8.617s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.096s |
2022-08-15 23:00:23 |
2022-08-15 23:00:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-15 23:00:23 | ------------------------------------ 2022-08-15 23:00:23 | [Mutex] waiting for: [configured:node:node-73ec5c1d-d57f-4743-9fd3-1f614abd3508:node-177f39eb-ccc4-4b99-b089-b12e84ba0fc8] 2022-08-15 23:00:23 | [Mutex] received everything. 2022-08-15 23:00:23 | [Mutex] isItemNotified: configured:node:node-73ec5c1d-d57f-4743-9fd3-1f614abd3508:node-177f39eb-ccc4-4b99-b089-b12e84ba0fc8 :: true 2022-08-15 23:00:24 | [Mutex] waiting for: [received:nodes:48694777-03aa-4af9-a64b-f187b53ad92c:localhost] 2022-08-15 23:00:24 | [Mutex] received everything. 2022-08-15 23:00:24 | [Mutex] isItemNotified: received:node:48694777-03aa-4af9-a64b-f187b53ad92c:localhost:node-73ec5c1d-d57f-4743-9fd3-1f614abd3508:Node 73ec5c1d-d57f-4743-9fd3-1f614abd3508 :: true 2022-08-15 23:00:24 | [Mutex] waiting for: [received:nodes:072a181b-6ea1-4104-b8ba-254e06afdab6:localhost] 2022-08-15 23:00:24 | [Mutex] received everything. 2022-08-15 23:00:24 | [Mutex] isItemNotified: received:node:072a181b-6ea1-4104-b8ba-254e06afdab6:localhost:node-73ec5c1d-d57f-4743-9fd3-1f614abd3508:Node 73ec5c1d-d57f-4743-9fd3-1f614abd3508 :: false |
createNodes | 1.597s |
2022-08-15 23:00:20 |
2022-08-15 23:00:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-15 23:00:20 | ------------------------------------ 2022-08-15 23:00:21 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-73ec5c1d-d57f-4743-9fd3-1f614abd3508", "pubsub#title": "Node 73ec5c1d-d57f-4743-9fd3-1f614abd3508" } 2022-08-15 23:00:21 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-15 23:00:22 | [Mutex] waiting for: [received:nodes:f6dc6814-ab82-477d-be50-ec50b74693bf:localhost] 2022-08-15 23:00:22 | [Mutex] received everything. 2022-08-15 23:00:22 | [Mutex] isItemNotified: received:node:f6dc6814-ab82-477d-be50-ec50b74693bf:localhost:node-73ec5c1d-d57f-4743-9fd3-1f614abd3508:Node 73ec5c1d-d57f-4743-9fd3-1f614abd3508 :: true |
createSubnodes | 1.022s |
2022-08-15 23:00:22 |
2022-08-15 23:00:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-15 23:00:22 | ------------------------------------ 2022-08-15 23:00:22 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-177f39eb-ccc4-4b99-b089-b12e84ba0fc8", "pubsub#title": "Node 177f39eb-ccc4-4b99-b089-b12e84ba0fc8" } 2022-08-15 23:00:22 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-15 23:00:23 | [Mutex] waiting for: [received:nodes:43c47a99-caf6-477d-a2a4-55cc8fbb6252:localhost] 2022-08-15 23:00:23 | [Mutex] waiting for: [received:nodes:43c47a99-caf6-477d-a2a4-55cc8fbb6252:localhost] 2022-08-15 23:00:23 | [Mutex] received everything. 2022-08-15 23:00:23 | [Mutex] isItemNotified: received:node:43c47a99-caf6-477d-a2a4-55cc8fbb6252:localhost:node-177f39eb-ccc4-4b99-b089-b12e84ba0fc8:Node 177f39eb-ccc4-4b99-b089-b12e84ba0fc8 :: true |
deleteNodes | 1.025s |
2022-08-15 23:00:27 |
2022-08-15 23:00:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-15 23:00:27 | ------------------------------------ 2022-08-15 23:00:27 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-177f39eb-ccc4-4b99-b089-b12e84ba0fc8" } 2022-08-15 23:00:27 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-15 23:00:28 | [Mutex] waiting for: [received:nodes:5cdc4342-1c9a-4f56-b2f3-200aeb098ee7:localhost] 2022-08-15 23:00:28 | [Mutex] received everything. 2022-08-15 23:00:28 | [Mutex] isItemNotified: received:node:5cdc4342-1c9a-4f56-b2f3-200aeb098ee7:localhost:node-177f39eb-ccc4-4b99-b089-b12e84ba0fc8:Node 177f39eb-ccc4-4b99-b089-b12e84ba0fc8 :: false |
deleteSubnodes | 1.032s |
2022-08-15 23:00:26 |
2022-08-15 23:00:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-15 23:00:26 | ------------------------------------ 2022-08-15 23:00:26 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-73ec5c1d-d57f-4743-9fd3-1f614abd3508" } 2022-08-15 23:00:26 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-15 23:00:27 | [Mutex] waiting for: [received:nodes:70dabd76-8423-4fe5-ae69-15bb06428273:localhost] 2022-08-15 23:00:27 | [Mutex] received everything. 2022-08-15 23:00:27 | [Mutex] isItemNotified: received:node:70dabd76-8423-4fe5-ae69-15bb06428273:localhost:node-73ec5c1d-d57f-4743-9fd3-1f614abd3508:Node 73ec5c1d-d57f-4743-9fd3-1f614abd3508 :: false 2022-08-15 23:00:27 | [Mutex] waiting for: [received:nodes:2b060fda-40fb-465a-8d94-c4c4389c8406:localhost] 2022-08-15 23:00:27 | [Mutex] received everything. 2022-08-15 23:00:27 | [Mutex] isItemNotified: received:node:2b060fda-40fb-465a-8d94-c4c4389c8406:localhost:node-73ec5c1d-d57f-4743-9fd3-1f614abd3508:Node 73ec5c1d-d57f-4743-9fd3-1f614abd3508 :: false |
publishItemsToNodes | 0.066s |
2022-08-15 23:00:25 |
2022-08-15 23:00:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-15 23:00:25 | ------------------------------------ 2022-08-15 23:00:25 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-73ec5c1d-d57f-4743-9fd3-1f614abd3508", "entry": "<test>item-fcb6287f-acb4-49e7-9163-f82227dc474e</test>", "item-id": "item-fcb6287f-acb4-49e7-9163-f82227dc474e" } 2022-08-15 23:00:25 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-fcb6287f-acb4-49e7-9163-f82227dc474e" } 2022-08-15 23:00:25 | [Mutex] waiting for: [published:item:notifieditem-fcb6287f-acb4-49e7-9163-f82227dc474e:admin@test-domain.com] 2022-08-15 23:00:25 | [Mutex] received everything. 2022-08-15 23:00:25 | [Mutex] isItemNotified: published:item:notifieditem-fcb6287f-acb4-49e7-9163-f82227dc474e:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2022-08-15 23:00:25 |
2022-08-15 23:00:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-15 23:00:25 | ------------------------------------ 2022-08-15 23:00:25 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-73ec5c1d-d57f-4743-9fd3-1f614abd3508", "item-id": "item-fcb6287f-acb4-49e7-9163-f82227dc474e" } 2022-08-15 23:00:25 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-fcb6287f-acb4-49e7-9163-f82227dc474e" } 2022-08-15 23:00:25 | [Mutex] received everything. 2022-08-15 23:00:25 | [Mutex] isItemNotified: retracted:item:notifieditem-fcb6287f-acb4-49e7-9163-f82227dc474e:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.021s |
2022-08-15 23:00:25 |
2022-08-15 23:00:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-15 23:00:25 | ------------------------------------ 2022-08-15 23:00:25 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-73ec5c1d-d57f-4743-9fd3-1f614abd3508", "item-id": "item-fcb6287f-acb4-49e7-9163-f82227dc474e" } 2022-08-15 23:00:25 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-73ec5c1d-d57f-4743-9fd3-1f614abd3508", "item-id": "item-fcb6287f-acb4-49e7-9163-f82227dc474e", "item": [ "<item id=\"item-fcb6287f-acb4-49e7-9163-f82227dc474e\"><test>item-fcb6287f-acb4-49e7-9163-f82227dc474e</test></item>" ] } 2022-08-15 23:00:25 | [Mutex] notify: [retrieved:item:item-fcb6287f-acb4-49e7-9163-f82227dc474e:payload-matches:true:localhost] 2022-08-15 23:00:25 | [Mutex] received everything. 2022-08-15 23:00:25 | [Mutex] isItemNotified: retrieved:item:item-fcb6287f-acb4-49e7-9163-f82227dc474e:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.053s |
2022-08-15 23:00:25 |
2022-08-15 23:00:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-15 23:00:25 | ------------------------------------ 2022-08-15 23:00:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-15 23:00:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-73ec5c1d-d57f-4743-9fd3-1f614abd3508", "node-177f39eb-ccc4-4b99-b089-b12e84ba0fc8" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-08-15 23:00:25 |
2022-08-15 23:00:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-15 23:00:25 | ------------------------------------ 2022-08-15 23:00:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-73ec5c1d-d57f-4743-9fd3-1f614abd3508)" } 2022-08-15 23:00:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-08-15 23:00:24 |
2022-08-15 23:00:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-15 23:00:24 | ------------------------------------ 2022-08-15 23:00:24 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-73ec5c1d-d57f-4743-9fd3-1f614abd3508", "jids": [ "admin@test-domain.com" ] } 2022-08-15 23:00:24 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2022-08-15 23:00:25 |
2022-08-15 23:00:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-15 23:00:25 | ------------------------------------ 2022-08-15 23:00:25 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-73ec5c1d-d57f-4743-9fd3-1f614abd3508", "jids": [ "admin@test-domain.com" ] } 2022-08-15 23:00:25 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |