Test duration : 9.081s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.128s |
2021-03-18 23:07:21 |
2021-03-18 23:07:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:07:21 | ------------------------------------ 2021-03-18 23:07:21 | [Mutex] waiting for: [configured:node:node-cde19f2b-d7d8-4e02-8920-d1cbf507c851:node-c6a81a0b-ddfa-417c-bc7a-048e48dc171d] 2021-03-18 23:07:21 | [Mutex] received everything. 2021-03-18 23:07:21 | [Mutex] isItemNotified: configured:node:node-cde19f2b-d7d8-4e02-8920-d1cbf507c851:node-c6a81a0b-ddfa-417c-bc7a-048e48dc171d :: true 2021-03-18 23:07:22 | [Mutex] waiting for: [received:nodes:16279840-08b0-4191-a1de-d51c7721a960:localhost] 2021-03-18 23:07:22 | [Mutex] received everything. 2021-03-18 23:07:22 | [Mutex] isItemNotified: received:node:16279840-08b0-4191-a1de-d51c7721a960:localhost:node-cde19f2b-d7d8-4e02-8920-d1cbf507c851:Node cde19f2b-d7d8-4e02-8920-d1cbf507c851 :: true 2021-03-18 23:07:22 | [Mutex] waiting for: [received:nodes:b4b171d1-6d96-41aa-8ef9-79a8b6306c57:localhost] 2021-03-18 23:07:22 | [Mutex] received everything. 2021-03-18 23:07:22 | [Mutex] isItemNotified: received:node:b4b171d1-6d96-41aa-8ef9-79a8b6306c57:localhost:node-cde19f2b-d7d8-4e02-8920-d1cbf507c851:Node cde19f2b-d7d8-4e02-8920-d1cbf507c851 :: false |
createNodes | 1.657s |
2021-03-18 23:07:18 |
2021-03-18 23:07:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:07:18 | ------------------------------------ 2021-03-18 23:07:19 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-cde19f2b-d7d8-4e02-8920-d1cbf507c851", "pubsub#title": "Node cde19f2b-d7d8-4e02-8920-d1cbf507c851" } 2021-03-18 23:07:19 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-18 23:07:20 | [Mutex] waiting for: [received:nodes:2acb86b0-bc2c-455a-bee2-dacd82beb5ce:localhost] 2021-03-18 23:07:20 | [Mutex] received everything. 2021-03-18 23:07:20 | [Mutex] isItemNotified: received:node:2acb86b0-bc2c-455a-bee2-dacd82beb5ce:localhost:node-cde19f2b-d7d8-4e02-8920-d1cbf507c851:Node cde19f2b-d7d8-4e02-8920-d1cbf507c851 :: true |
createSubnodes | 1.031s |
2021-03-18 23:07:20 |
2021-03-18 23:07:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:07:20 | ------------------------------------ 2021-03-18 23:07:20 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-c6a81a0b-ddfa-417c-bc7a-048e48dc171d", "pubsub#title": "Node c6a81a0b-ddfa-417c-bc7a-048e48dc171d" } 2021-03-18 23:07:20 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-18 23:07:21 | [Mutex] waiting for: [received:nodes:ca49c8ed-3ec3-4363-9b26-8ec149c356cf:localhost] 2021-03-18 23:07:21 | [Mutex] received everything. 2021-03-18 23:07:21 | [Mutex] isItemNotified: received:node:ca49c8ed-3ec3-4363-9b26-8ec149c356cf:localhost:node-c6a81a0b-ddfa-417c-bc7a-048e48dc171d:Node c6a81a0b-ddfa-417c-bc7a-048e48dc171d :: true |
deleteNodes | 1.023s |
2021-03-18 23:07:26 |
2021-03-18 23:07:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:07:26 | ------------------------------------ 2021-03-18 23:07:26 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c6a81a0b-ddfa-417c-bc7a-048e48dc171d" } 2021-03-18 23:07:26 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-18 23:07:27 | [Mutex] waiting for: [received:nodes:a55bade2-f6ae-4e18-ba00-37bb18ddf4b3:localhost] 2021-03-18 23:07:27 | [Mutex] received everything. 2021-03-18 23:07:27 | [Mutex] isItemNotified: received:node:a55bade2-f6ae-4e18-ba00-37bb18ddf4b3:localhost:node-c6a81a0b-ddfa-417c-bc7a-048e48dc171d:Node c6a81a0b-ddfa-417c-bc7a-048e48dc171d :: false |
deleteSubnodes | 1.029s |
2021-03-18 23:07:25 |
2021-03-18 23:07:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:07:25 | ------------------------------------ 2021-03-18 23:07:25 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-cde19f2b-d7d8-4e02-8920-d1cbf507c851" } 2021-03-18 23:07:25 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-18 23:07:26 | [Mutex] waiting for: [received:nodes:af18d075-c6eb-4f24-8ad8-0b1c63775469:localhost] 2021-03-18 23:07:26 | [Mutex] received everything. 2021-03-18 23:07:26 | [Mutex] isItemNotified: received:node:af18d075-c6eb-4f24-8ad8-0b1c63775469:localhost:node-cde19f2b-d7d8-4e02-8920-d1cbf507c851:Node cde19f2b-d7d8-4e02-8920-d1cbf507c851 :: false 2021-03-18 23:07:26 | [Mutex] waiting for: [received:nodes:b4bf077f-c40d-466e-8c46-6eeea56d7208:localhost] 2021-03-18 23:07:26 | [Mutex] received everything. 2021-03-18 23:07:26 | [Mutex] isItemNotified: received:node:b4bf077f-c40d-466e-8c46-6eeea56d7208:localhost:node-cde19f2b-d7d8-4e02-8920-d1cbf507c851:Node cde19f2b-d7d8-4e02-8920-d1cbf507c851 :: false |
publishItemsToNodes | 0.102s |
2021-03-18 23:07:23 |
2021-03-18 23:07:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:07:23 | ------------------------------------ 2021-03-18 23:07:23 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-cde19f2b-d7d8-4e02-8920-d1cbf507c851", "entry": "<test>item-cab86949-e16d-4557-b159-47b295fd3645</test>", "item-id": "item-cab86949-e16d-4557-b159-47b295fd3645" } 2021-03-18 23:07:23 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-cab86949-e16d-4557-b159-47b295fd3645" } 2021-03-18 23:07:23 | [Mutex] waiting for: [published:item:notifieditem-cab86949-e16d-4557-b159-47b295fd3645:admin@test-domain.com] 2021-03-18 23:07:23 | [Mutex] received everything. 2021-03-18 23:07:23 | [Mutex] isItemNotified: published:item:notifieditem-cab86949-e16d-4557-b159-47b295fd3645:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2021-03-18 23:07:23 |
2021-03-18 23:07:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:07:23 | ------------------------------------ 2021-03-18 23:07:23 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-cde19f2b-d7d8-4e02-8920-d1cbf507c851", "item-id": "item-cab86949-e16d-4557-b159-47b295fd3645" } 2021-03-18 23:07:23 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-cab86949-e16d-4557-b159-47b295fd3645" } 2021-03-18 23:07:23 | [Mutex] waiting for: [retracted:item:notifieditem-cab86949-e16d-4557-b159-47b295fd3645:admin@test-domain.com] 2021-03-18 23:07:23 | [Mutex] received everything. 2021-03-18 23:07:23 | [Mutex] isItemNotified: retracted:item:notifieditem-cab86949-e16d-4557-b159-47b295fd3645:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.036s |
2021-03-18 23:07:23 |
2021-03-18 23:07:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:07:23 | ------------------------------------ 2021-03-18 23:07:23 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-cde19f2b-d7d8-4e02-8920-d1cbf507c851", "item-id": "item-cab86949-e16d-4557-b159-47b295fd3645" } 2021-03-18 23:07:23 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-cde19f2b-d7d8-4e02-8920-d1cbf507c851", "item-id": "item-cab86949-e16d-4557-b159-47b295fd3645", "item": [ "<item id=\"item-cab86949-e16d-4557-b159-47b295fd3645\"><test>item-cab86949-e16d-4557-b159-47b295fd3645</test></item>" ] } 2021-03-18 23:07:23 | [Mutex] notify: [retrieved:item:item-cab86949-e16d-4557-b159-47b295fd3645:payload-matches:true:localhost] 2021-03-18 23:07:23 | [Mutex] received everything. 2021-03-18 23:07:23 | [Mutex] isItemNotified: retrieved:item:item-cab86949-e16d-4557-b159-47b295fd3645:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.057s |
2021-03-18 23:07:23 |
2021-03-18 23:07:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:07:23 | ------------------------------------ 2021-03-18 23:07:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-03-18 23:07:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-cde19f2b-d7d8-4e02-8920-d1cbf507c851", "node-c6a81a0b-ddfa-417c-bc7a-048e48dc171d" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-03-18 23:07:23 |
2021-03-18 23:07:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:07:23 | ------------------------------------ 2021-03-18 23:07:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-cde19f2b-d7d8-4e02-8920-d1cbf507c851)" } 2021-03-18 23:07:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2021-03-18 23:07:22 |
2021-03-18 23:07:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:07:22 | ------------------------------------ 2021-03-18 23:07:22 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-cde19f2b-d7d8-4e02-8920-d1cbf507c851", "jids": [ "admin@test-domain.com" ] } 2021-03-18 23:07:22 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.085s |
2021-03-18 23:07:23 |
2021-03-18 23:07:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 23:07:23 | ------------------------------------ 2021-03-18 23:07:23 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-cde19f2b-d7d8-4e02-8920-d1cbf507c851", "jids": [ "admin@test-domain.com" ] } 2021-03-18 23:07:24 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |