Test duration : 8.846s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.109s |
2021-02-18 22:06:47 |
2021-02-18 22:06:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:06:47 | ------------------------------------ 2021-02-18 22:06:47 | [Mutex] waiting for: [configured:node:node-30c0b908-7b1e-4a8e-a3d1-b5b55218fa76:node-f175f921-de6d-440c-9b23-06e27ae38feb] 2021-02-18 22:06:47 | [Mutex] received everything. 2021-02-18 22:06:47 | [Mutex] isItemNotified: configured:node:node-30c0b908-7b1e-4a8e-a3d1-b5b55218fa76:node-f175f921-de6d-440c-9b23-06e27ae38feb :: true 2021-02-18 22:06:48 | [Mutex] waiting for: [received:nodes:668653ed-bcc7-4bc9-9c11-556b34b3315f:localhost] 2021-02-18 22:06:48 | [Mutex] received everything. 2021-02-18 22:06:48 | [Mutex] isItemNotified: received:node:668653ed-bcc7-4bc9-9c11-556b34b3315f:localhost:node-30c0b908-7b1e-4a8e-a3d1-b5b55218fa76:Node 30c0b908-7b1e-4a8e-a3d1-b5b55218fa76 :: true 2021-02-18 22:06:48 | [Mutex] waiting for: [received:nodes:612ff968-9e66-4452-b9b0-e0a832a2d920:localhost] 2021-02-18 22:06:48 | [Mutex] received everything. 2021-02-18 22:06:48 | [Mutex] isItemNotified: received:node:612ff968-9e66-4452-b9b0-e0a832a2d920:localhost:node-30c0b908-7b1e-4a8e-a3d1-b5b55218fa76:Node 30c0b908-7b1e-4a8e-a3d1-b5b55218fa76 :: false |
createNodes | 1.629s |
2021-02-18 22:06:44 |
2021-02-18 22:06:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:06:44 | ------------------------------------ 2021-02-18 22:06:44 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-30c0b908-7b1e-4a8e-a3d1-b5b55218fa76", "pubsub#title": "Node 30c0b908-7b1e-4a8e-a3d1-b5b55218fa76" } 2021-02-18 22:06:45 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-18 22:06:46 | [Mutex] waiting for: [received:nodes:c0338157-3849-4c77-bfd0-69e94725e9e3:localhost] 2021-02-18 22:06:46 | [Mutex] waiting for: [received:nodes:c0338157-3849-4c77-bfd0-69e94725e9e3:localhost] 2021-02-18 22:06:46 | [Mutex] received everything. 2021-02-18 22:06:46 | [Mutex] isItemNotified: received:node:c0338157-3849-4c77-bfd0-69e94725e9e3:localhost:node-30c0b908-7b1e-4a8e-a3d1-b5b55218fa76:Node 30c0b908-7b1e-4a8e-a3d1-b5b55218fa76 :: true |
createSubnodes | 1.024s |
2021-02-18 22:06:46 |
2021-02-18 22:06:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:06:46 | ------------------------------------ 2021-02-18 22:06:46 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-f175f921-de6d-440c-9b23-06e27ae38feb", "pubsub#title": "Node f175f921-de6d-440c-9b23-06e27ae38feb" } 2021-02-18 22:06:46 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-18 22:06:47 | [Mutex] waiting for: [received:nodes:3ebfb888-f519-4ed8-a046-bc9c38702f20:localhost] 2021-02-18 22:06:47 | [Mutex] received everything. 2021-02-18 22:06:47 | [Mutex] isItemNotified: received:node:3ebfb888-f519-4ed8-a046-bc9c38702f20:localhost:node-f175f921-de6d-440c-9b23-06e27ae38feb:Node f175f921-de6d-440c-9b23-06e27ae38feb :: true |
deleteNodes | 1.017s |
2021-02-18 22:06:51 |
2021-02-18 22:06:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:06:51 | ------------------------------------ 2021-02-18 22:06:51 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f175f921-de6d-440c-9b23-06e27ae38feb" } 2021-02-18 22:06:51 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-18 22:06:52 | [Mutex] waiting for: [received:nodes:3ef99584-0e53-48b0-a8d4-cac24dfe0066:localhost] 2021-02-18 22:06:52 | [Mutex] waiting for: [received:nodes:3ef99584-0e53-48b0-a8d4-cac24dfe0066:localhost] 2021-02-18 22:06:52 | [Mutex] waiting for: [received:nodes:3ef99584-0e53-48b0-a8d4-cac24dfe0066:localhost] 2021-02-18 22:06:52 | [Mutex] received everything. 2021-02-18 22:06:52 | [Mutex] isItemNotified: received:node:3ef99584-0e53-48b0-a8d4-cac24dfe0066:localhost:node-f175f921-de6d-440c-9b23-06e27ae38feb:Node f175f921-de6d-440c-9b23-06e27ae38feb :: false |
deleteSubnodes | 1.028s |
2021-02-18 22:06:50 |
2021-02-18 22:06:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:06:50 | ------------------------------------ 2021-02-18 22:06:50 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-30c0b908-7b1e-4a8e-a3d1-b5b55218fa76" } 2021-02-18 22:06:50 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-18 22:06:51 | [Mutex] waiting for: [received:nodes:2b02eb63-c861-474b-9107-45eec7629f64:localhost] 2021-02-18 22:06:51 | [Mutex] received everything. 2021-02-18 22:06:51 | [Mutex] isItemNotified: received:node:2b02eb63-c861-474b-9107-45eec7629f64:localhost:node-30c0b908-7b1e-4a8e-a3d1-b5b55218fa76:Node 30c0b908-7b1e-4a8e-a3d1-b5b55218fa76 :: false 2021-02-18 22:06:51 | [Mutex] waiting for: [received:nodes:14cc23fc-c77e-47f5-abac-0d6357559d1a:localhost] 2021-02-18 22:06:51 | [Mutex] received everything. 2021-02-18 22:06:51 | [Mutex] isItemNotified: received:node:14cc23fc-c77e-47f5-abac-0d6357559d1a:localhost:node-30c0b908-7b1e-4a8e-a3d1-b5b55218fa76:Node 30c0b908-7b1e-4a8e-a3d1-b5b55218fa76 :: false |
publishItemsToNodes | 0.038s |
2021-02-18 22:06:49 |
2021-02-18 22:06:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:06:49 | ------------------------------------ 2021-02-18 22:06:49 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-30c0b908-7b1e-4a8e-a3d1-b5b55218fa76", "entry": "<test>item-4219ae5e-a575-40eb-acce-dd8cdb2c9746</test>", "item-id": "item-4219ae5e-a575-40eb-acce-dd8cdb2c9746" } 2021-02-18 22:06:49 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4219ae5e-a575-40eb-acce-dd8cdb2c9746" } 2021-02-18 22:06:49 | [Mutex] waiting for: [published:item:notifieditem-4219ae5e-a575-40eb-acce-dd8cdb2c9746:admin@test-domain.com] 2021-02-18 22:06:49 | [Mutex] received everything. 2021-02-18 22:06:49 | [Mutex] isItemNotified: published:item:notifieditem-4219ae5e-a575-40eb-acce-dd8cdb2c9746:admin@test-domain.com :: true |
retractItemsFromNodes | 0.135s |
2021-02-18 22:06:49 |
2021-02-18 22:06:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:06:49 | ------------------------------------ 2021-02-18 22:06:49 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-30c0b908-7b1e-4a8e-a3d1-b5b55218fa76", "item-id": "item-4219ae5e-a575-40eb-acce-dd8cdb2c9746" } 2021-02-18 22:06:49 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4219ae5e-a575-40eb-acce-dd8cdb2c9746" } 2021-02-18 22:06:49 | [Mutex] waiting for: [retracted:item:notifieditem-4219ae5e-a575-40eb-acce-dd8cdb2c9746:admin@test-domain.com] 2021-02-18 22:06:49 | [Mutex] received everything. 2021-02-18 22:06:49 | [Mutex] isItemNotified: retracted:item:notifieditem-4219ae5e-a575-40eb-acce-dd8cdb2c9746:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.064s |
2021-02-18 22:06:49 |
2021-02-18 22:06:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:06:49 | ------------------------------------ 2021-02-18 22:06:49 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-30c0b908-7b1e-4a8e-a3d1-b5b55218fa76", "item-id": "item-4219ae5e-a575-40eb-acce-dd8cdb2c9746" } 2021-02-18 22:06:49 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-30c0b908-7b1e-4a8e-a3d1-b5b55218fa76", "item-id": "item-4219ae5e-a575-40eb-acce-dd8cdb2c9746", "item": [ "<item id=\"item-4219ae5e-a575-40eb-acce-dd8cdb2c9746\"><test>item-4219ae5e-a575-40eb-acce-dd8cdb2c9746</test></item>" ] } 2021-02-18 22:06:49 | [Mutex] notify: [retrieved:item:item-4219ae5e-a575-40eb-acce-dd8cdb2c9746:payload-matches:true:localhost] 2021-02-18 22:06:49 | [Mutex] received everything. 2021-02-18 22:06:49 | [Mutex] isItemNotified: retrieved:item:item-4219ae5e-a575-40eb-acce-dd8cdb2c9746:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-02-18 22:06:49 |
2021-02-18 22:06:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:06:49 | ------------------------------------ 2021-02-18 22:06:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-02-18 22:06:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-30c0b908-7b1e-4a8e-a3d1-b5b55218fa76", "node-f175f921-de6d-440c-9b23-06e27ae38feb" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-02-18 22:06:49 |
2021-02-18 22:06:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:06:49 | ------------------------------------ 2021-02-18 22:06:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-30c0b908-7b1e-4a8e-a3d1-b5b55218fa76)" } 2021-02-18 22:06:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2021-02-18 22:06:48 |
2021-02-18 22:06:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:06:48 | ------------------------------------ 2021-02-18 22:06:48 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-30c0b908-7b1e-4a8e-a3d1-b5b55218fa76", "jids": [ "admin@test-domain.com" ] } 2021-02-18 22:06:48 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.018s |
2021-02-18 22:06:49 |
2021-02-18 22:06:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-18 22:06:49 | ------------------------------------ 2021-02-18 22:06:49 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-30c0b908-7b1e-4a8e-a3d1-b5b55218fa76", "jids": [ "admin@test-domain.com" ] } 2021-02-18 22:06:49 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |