Test duration: 8.950s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.088s |
2020-01-15 19:22:05 |
2020-01-15 19:22:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-01-15 19:22:05 | ------------------------------------ 2020-01-15 19:22:05 | [Mutex] waiting for: [configured:node:node-707754ad-0530-467f-b12a-f19f0ce505d1:node-37f88f14-8679-4706-a16c-1eead221c864] 2020-01-15 19:22:06 | [Mutex] received everything. 2020-01-15 19:22:06 | [Mutex] isItemNotified: configured:node:node-707754ad-0530-467f-b12a-f19f0ce505d1:node-37f88f14-8679-4706-a16c-1eead221c864 :: true 2020-01-15 19:22:07 | [Mutex] waiting for: [received:nodes:f402d80e-7a3b-403c-88a9-0d8722466f81:localhost] 2020-01-15 19:22:07 | [Mutex] received everything. 2020-01-15 19:22:07 | [Mutex] isItemNotified: received:node:f402d80e-7a3b-403c-88a9-0d8722466f81:localhost:node-707754ad-0530-467f-b12a-f19f0ce505d1:Node 707754ad-0530-467f-b12a-f19f0ce505d1 :: true 2020-01-15 19:22:07 | [Mutex] waiting for: [received:nodes:ecbae096-aa59-48df-995e-6836354383d9:localhost] 2020-01-15 19:22:07 | [Mutex] received everything. 2020-01-15 19:22:07 | [Mutex] isItemNotified: received:node:ecbae096-aa59-48df-995e-6836354383d9:localhost:node-707754ad-0530-467f-b12a-f19f0ce505d1:Node 707754ad-0530-467f-b12a-f19f0ce505d1 :: false |
createNodes | 1.585s |
2020-01-15 19:22:03 |
2020-01-15 19:22:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-01-15 19:22:03 | ------------------------------------ 2020-01-15 19:22:03 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-707754ad-0530-467f-b12a-f19f0ce505d1", "pubsub#title": "Node 707754ad-0530-467f-b12a-f19f0ce505d1" } 2020-01-15 19:22:03 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-01-15 19:22:04 | [Mutex] waiting for: [received:nodes:3657c6b5-653a-44bd-a45d-0c91378895d7:localhost] 2020-01-15 19:22:04 | [Mutex] received everything. 2020-01-15 19:22:04 | [Mutex] isItemNotified: received:node:3657c6b5-653a-44bd-a45d-0c91378895d7:localhost:node-707754ad-0530-467f-b12a-f19f0ce505d1:Node 707754ad-0530-467f-b12a-f19f0ce505d1 :: true |
createSubnodes | 1.023s |
2020-01-15 19:22:04 |
2020-01-15 19:22:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-01-15 19:22:04 | ------------------------------------ 2020-01-15 19:22:04 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-37f88f14-8679-4706-a16c-1eead221c864", "pubsub#title": "Node 37f88f14-8679-4706-a16c-1eead221c864" } 2020-01-15 19:22:04 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-01-15 19:22:05 | [Mutex] waiting for: [received:nodes:5293b185-55a3-4b2a-bc9f-6e4da326a589:localhost] 2020-01-15 19:22:05 | [Mutex] waiting for: [received:nodes:5293b185-55a3-4b2a-bc9f-6e4da326a589:localhost] 2020-01-15 19:22:05 | [Mutex] received everything. 2020-01-15 19:22:05 | [Mutex] isItemNotified: received:node:5293b185-55a3-4b2a-bc9f-6e4da326a589:localhost:node-37f88f14-8679-4706-a16c-1eead221c864:Node 37f88f14-8679-4706-a16c-1eead221c864 :: true |
deleteNodes | 1.022s |
2020-01-15 19:22:10 |
2020-01-15 19:22:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-01-15 19:22:10 | ------------------------------------ 2020-01-15 19:22:10 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-37f88f14-8679-4706-a16c-1eead221c864" } 2020-01-15 19:22:10 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-01-15 19:22:11 | [Mutex] waiting for: [received:nodes:ec51c082-f80e-4276-8f16-447e86f47026:localhost] 2020-01-15 19:22:11 | [Mutex] received everything. 2020-01-15 19:22:11 | [Mutex] isItemNotified: received:node:ec51c082-f80e-4276-8f16-447e86f47026:localhost:node-37f88f14-8679-4706-a16c-1eead221c864:Node 37f88f14-8679-4706-a16c-1eead221c864 :: false |
deleteSubnodes | 1.036s |
2020-01-15 19:22:09 |
2020-01-15 19:22:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-01-15 19:22:09 | ------------------------------------ 2020-01-15 19:22:09 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-707754ad-0530-467f-b12a-f19f0ce505d1" } 2020-01-15 19:22:09 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-01-15 19:22:10 | [Mutex] waiting for: [received:nodes:8c77d98a-9c61-405b-855e-70c3f63a787e:localhost] 2020-01-15 19:22:10 | [Mutex] received everything. 2020-01-15 19:22:10 | [Mutex] isItemNotified: received:node:8c77d98a-9c61-405b-855e-70c3f63a787e:localhost:node-707754ad-0530-467f-b12a-f19f0ce505d1:Node 707754ad-0530-467f-b12a-f19f0ce505d1 :: false 2020-01-15 19:22:10 | [Mutex] waiting for: [received:nodes:724387b2-c6cf-4fe8-a7a5-c61cf9f563fe:localhost] 2020-01-15 19:22:10 | [Mutex] received everything. 2020-01-15 19:22:10 | [Mutex] isItemNotified: received:node:724387b2-c6cf-4fe8-a7a5-c61cf9f563fe:localhost:node-707754ad-0530-467f-b12a-f19f0ce505d1:Node 707754ad-0530-467f-b12a-f19f0ce505d1 :: false |
publishItemsToNodes | 0.037s |
2020-01-15 19:22:08 |
2020-01-15 19:22:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-01-15 19:22:08 | ------------------------------------ 2020-01-15 19:22:08 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-707754ad-0530-467f-b12a-f19f0ce505d1", "entry": "<test>item-5694f607-45ae-4091-86bf-8ed30773e4d6</test>", "item-id": "item-5694f607-45ae-4091-86bf-8ed30773e4d6" } 2020-01-15 19:22:08 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5694f607-45ae-4091-86bf-8ed30773e4d6" } 2020-01-15 19:22:08 | [Mutex] waiting for: [published:item:notifieditem-5694f607-45ae-4091-86bf-8ed30773e4d6:admin@localhost] 2020-01-15 19:22:08 | [Mutex] received everything. 2020-01-15 19:22:08 | [Mutex] isItemNotified: published:item:notifieditem-5694f607-45ae-4091-86bf-8ed30773e4d6:admin@localhost :: true |
retractItemsFromNodes | 0.052s |
2020-01-15 19:22:08 |
2020-01-15 19:22:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-01-15 19:22:08 | ------------------------------------ 2020-01-15 19:22:08 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-707754ad-0530-467f-b12a-f19f0ce505d1", "item-id": "item-5694f607-45ae-4091-86bf-8ed30773e4d6" } 2020-01-15 19:22:08 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5694f607-45ae-4091-86bf-8ed30773e4d6" } 2020-01-15 19:22:08 | [Mutex] received everything. 2020-01-15 19:22:08 | [Mutex] isItemNotified: retracted:item:notifieditem-5694f607-45ae-4091-86bf-8ed30773e4d6:admin@localhost :: true |
retrieveItemsFromNodes | 0.059s |
2020-01-15 19:22:08 |
2020-01-15 19:22:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-01-15 19:22:08 | ------------------------------------ 2020-01-15 19:22:08 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-707754ad-0530-467f-b12a-f19f0ce505d1", "item-id": "item-5694f607-45ae-4091-86bf-8ed30773e4d6" } 2020-01-15 19:22:08 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-707754ad-0530-467f-b12a-f19f0ce505d1", "item-id": "item-5694f607-45ae-4091-86bf-8ed30773e4d6", "item": [ "<item id=\"item-5694f607-45ae-4091-86bf-8ed30773e4d6\"><test>item-5694f607-45ae-4091-86bf-8ed30773e4d6</test></item>" ] } 2020-01-15 19:22:08 | [Mutex] notify: [retrieved:item:item-5694f607-45ae-4091-86bf-8ed30773e4d6:payload-matches:true:localhost] 2020-01-15 19:22:08 | [Mutex] received everything. 2020-01-15 19:22:08 | [Mutex] isItemNotified: retrieved:item:item-5694f607-45ae-4091-86bf-8ed30773e4d6:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2020-01-15 19:22:08 |
2020-01-15 19:22:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-01-15 19:22:08 | ------------------------------------ 2020-01-15 19:22:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2020-01-15 19:22:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-707754ad-0530-467f-b12a-f19f0ce505d1", "node-37f88f14-8679-4706-a16c-1eead221c864" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-01-15 19:22:08 |
2020-01-15 19:22:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-01-15 19:22:08 | ------------------------------------ 2020-01-15 19:22:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-707754ad-0530-467f-b12a-f19f0ce505d1)" } 2020-01-15 19:22:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2020-01-15 19:22:07 |
2020-01-15 19:22:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-01-15 19:22:07 | ------------------------------------ 2020-01-15 19:22:07 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-707754ad-0530-467f-b12a-f19f0ce505d1", "jids": [ "admin@localhost" ] } 2020-01-15 19:22:07 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2020-01-15 19:22:08 |
2020-01-15 19:22:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-01-15 19:22:08 | ------------------------------------ 2020-01-15 19:22:08 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-707754ad-0530-467f-b12a-f19f0ce505d1", "jids": [ "admin@localhost" ] } 2020-01-15 19:22:08 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |