Test duration : 8.856s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.128s |
2022-02-01 21:58:11 |
2022-02-01 21:58:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:58:11 | ------------------------------------ 2022-02-01 21:58:11 | [Mutex] waiting for: [configured:node:node-05471322-1402-4e0c-8d85-b6295fb8a3ea:node-004c9fcb-1196-4a64-9848-fb16e8e98b20] 2022-02-01 21:58:11 | [Mutex] received everything. 2022-02-01 21:58:11 | [Mutex] isItemNotified: configured:node:node-05471322-1402-4e0c-8d85-b6295fb8a3ea:node-004c9fcb-1196-4a64-9848-fb16e8e98b20 :: true 2022-02-01 21:58:12 | [Mutex] waiting for: [received:nodes:1192ed14-0455-4cad-85cc-f9b9e9aa82a1:localhost] 2022-02-01 21:58:12 | [Mutex] received everything. 2022-02-01 21:58:12 | [Mutex] isItemNotified: received:node:1192ed14-0455-4cad-85cc-f9b9e9aa82a1:localhost:node-05471322-1402-4e0c-8d85-b6295fb8a3ea:Node 05471322-1402-4e0c-8d85-b6295fb8a3ea :: true 2022-02-01 21:58:12 | [Mutex] waiting for: [received:nodes:22043bb6-0ad5-4e27-9845-dc1ec69fe0bd:localhost] 2022-02-01 21:58:12 | [Mutex] waiting for: [received:nodes:22043bb6-0ad5-4e27-9845-dc1ec69fe0bd:localhost] 2022-02-01 21:58:12 | [Mutex] received everything. 2022-02-01 21:58:12 | [Mutex] isItemNotified: received:node:22043bb6-0ad5-4e27-9845-dc1ec69fe0bd:localhost:node-05471322-1402-4e0c-8d85-b6295fb8a3ea:Node 05471322-1402-4e0c-8d85-b6295fb8a3ea :: false |
createNodes | 1.523s |
2022-02-01 21:58:08 |
2022-02-01 21:58:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:58:08 | ------------------------------------ 2022-02-01 21:58:09 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-05471322-1402-4e0c-8d85-b6295fb8a3ea", "pubsub#title": "Node 05471322-1402-4e0c-8d85-b6295fb8a3ea" } 2022-02-01 21:58:09 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-01 21:58:10 | [Mutex] waiting for: [received:nodes:22e2adb3-fee5-4dba-b8b4-810d59c6ed8b:localhost] 2022-02-01 21:58:10 | [Mutex] received everything. 2022-02-01 21:58:10 | [Mutex] isItemNotified: received:node:22e2adb3-fee5-4dba-b8b4-810d59c6ed8b:localhost:node-05471322-1402-4e0c-8d85-b6295fb8a3ea:Node 05471322-1402-4e0c-8d85-b6295fb8a3ea :: true |
createSubnodes | 1.034s |
2022-02-01 21:58:10 |
2022-02-01 21:58:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:58:10 | ------------------------------------ 2022-02-01 21:58:10 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-004c9fcb-1196-4a64-9848-fb16e8e98b20", "pubsub#title": "Node 004c9fcb-1196-4a64-9848-fb16e8e98b20" } 2022-02-01 21:58:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-01 21:58:11 | [Mutex] waiting for: [received:nodes:690816a5-8988-4981-9f0f-f47d3e74a473:localhost] 2022-02-01 21:58:11 | [Mutex] waiting for: [received:nodes:690816a5-8988-4981-9f0f-f47d3e74a473:localhost] 2022-02-01 21:58:11 | [Mutex] received everything. 2022-02-01 21:58:11 | [Mutex] isItemNotified: received:node:690816a5-8988-4981-9f0f-f47d3e74a473:localhost:node-004c9fcb-1196-4a64-9848-fb16e8e98b20:Node 004c9fcb-1196-4a64-9848-fb16e8e98b20 :: true |
deleteNodes | 1.028s |
2022-02-01 21:58:16 |
2022-02-01 21:58:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:58:16 | ------------------------------------ 2022-02-01 21:58:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-004c9fcb-1196-4a64-9848-fb16e8e98b20" } 2022-02-01 21:58:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-01 21:58:17 | [Mutex] waiting for: [received:nodes:03d56a32-240e-4202-b374-c7c6117b9a81:localhost] 2022-02-01 21:58:17 | [Mutex] waiting for: [received:nodes:03d56a32-240e-4202-b374-c7c6117b9a81:localhost] 2022-02-01 21:58:17 | [Mutex] received everything. 2022-02-01 21:58:17 | [Mutex] isItemNotified: received:node:03d56a32-240e-4202-b374-c7c6117b9a81:localhost:node-004c9fcb-1196-4a64-9848-fb16e8e98b20:Node 004c9fcb-1196-4a64-9848-fb16e8e98b20 :: false |
deleteSubnodes | 1.031s |
2022-02-01 21:58:15 |
2022-02-01 21:58:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:58:15 | ------------------------------------ 2022-02-01 21:58:15 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-05471322-1402-4e0c-8d85-b6295fb8a3ea" } 2022-02-01 21:58:15 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-01 21:58:16 | [Mutex] waiting for: [received:nodes:a06c6646-0331-4251-8b43-c22932e8f408:localhost] 2022-02-01 21:58:16 | [Mutex] received everything. 2022-02-01 21:58:16 | [Mutex] isItemNotified: received:node:a06c6646-0331-4251-8b43-c22932e8f408:localhost:node-05471322-1402-4e0c-8d85-b6295fb8a3ea:Node 05471322-1402-4e0c-8d85-b6295fb8a3ea :: false 2022-02-01 21:58:16 | [Mutex] waiting for: [received:nodes:7bd1f1a5-16d1-4121-b93f-eb6d4a58195a:localhost] 2022-02-01 21:58:16 | [Mutex] received everything. 2022-02-01 21:58:16 | [Mutex] isItemNotified: received:node:7bd1f1a5-16d1-4121-b93f-eb6d4a58195a:localhost:node-05471322-1402-4e0c-8d85-b6295fb8a3ea:Node 05471322-1402-4e0c-8d85-b6295fb8a3ea :: false |
publishItemsToNodes | 0.050s |
2022-02-01 21:58:13 |
2022-02-01 21:58:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:58:13 | ------------------------------------ 2022-02-01 21:58:13 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-05471322-1402-4e0c-8d85-b6295fb8a3ea", "entry": "<test>item-19cbafea-304e-4c24-8eed-1f9eb7715f64</test>", "item-id": "item-19cbafea-304e-4c24-8eed-1f9eb7715f64" } 2022-02-01 21:58:13 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-19cbafea-304e-4c24-8eed-1f9eb7715f64" } 2022-02-01 21:58:13 | [Mutex] waiting for: [published:item:notifieditem-19cbafea-304e-4c24-8eed-1f9eb7715f64:admin@test-domain.com] 2022-02-01 21:58:13 | [Mutex] received everything. 2022-02-01 21:58:13 | [Mutex] isItemNotified: published:item:notifieditem-19cbafea-304e-4c24-8eed-1f9eb7715f64:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2022-02-01 21:58:13 |
2022-02-01 21:58:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:58:13 | ------------------------------------ 2022-02-01 21:58:13 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-05471322-1402-4e0c-8d85-b6295fb8a3ea", "item-id": "item-19cbafea-304e-4c24-8eed-1f9eb7715f64" } 2022-02-01 21:58:13 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-19cbafea-304e-4c24-8eed-1f9eb7715f64" } 2022-02-01 21:58:13 | [Mutex] waiting for: [retracted:item:notifieditem-19cbafea-304e-4c24-8eed-1f9eb7715f64:admin@test-domain.com] 2022-02-01 21:58:13 | [Mutex] received everything. 2022-02-01 21:58:13 | [Mutex] isItemNotified: retracted:item:notifieditem-19cbafea-304e-4c24-8eed-1f9eb7715f64:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.085s |
2022-02-01 21:58:13 |
2022-02-01 21:58:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:58:13 | ------------------------------------ 2022-02-01 21:58:13 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-05471322-1402-4e0c-8d85-b6295fb8a3ea", "item-id": "item-19cbafea-304e-4c24-8eed-1f9eb7715f64" } 2022-02-01 21:58:13 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-05471322-1402-4e0c-8d85-b6295fb8a3ea", "item-id": "item-19cbafea-304e-4c24-8eed-1f9eb7715f64", "item": [ "<item id=\"item-19cbafea-304e-4c24-8eed-1f9eb7715f64\"><test>item-19cbafea-304e-4c24-8eed-1f9eb7715f64</test></item>" ] } 2022-02-01 21:58:13 | [Mutex] notify: [retrieved:item:item-19cbafea-304e-4c24-8eed-1f9eb7715f64:payload-matches:true:localhost] 2022-02-01 21:58:13 | [Mutex] received everything. 2022-02-01 21:58:13 | [Mutex] isItemNotified: retrieved:item:item-19cbafea-304e-4c24-8eed-1f9eb7715f64:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2022-02-01 21:58:13 |
2022-02-01 21:58:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:58:13 | ------------------------------------ 2022-02-01 21:58:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-01 21:58:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-004c9fcb-1196-4a64-9848-fb16e8e98b20", "test", "node-05471322-1402-4e0c-8d85-b6295fb8a3ea" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-02-01 21:58:13 |
2022-02-01 21:58:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:58:13 | ------------------------------------ 2022-02-01 21:58:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-05471322-1402-4e0c-8d85-b6295fb8a3ea)" } 2022-02-01 21:58:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-02-01 21:58:12 |
2022-02-01 21:58:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:58:12 | ------------------------------------ 2022-02-01 21:58:12 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-05471322-1402-4e0c-8d85-b6295fb8a3ea", "jids": [ "admin@test-domain.com" ] } 2022-02-01 21:58:12 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.074s |
2022-02-01 21:58:13 |
2022-02-01 21:58:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-01 21:58:13 | ------------------------------------ 2022-02-01 21:58:13 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-05471322-1402-4e0c-8d85-b6295fb8a3ea", "jids": [ "admin@test-domain.com" ] } 2022-02-01 21:58:14 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |