Test duration : 9.169s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.120s |
2020-11-19 21:36:33 |
2020-11-19 21:36:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:36:33 | ------------------------------------ 2020-11-19 21:36:33 | [Mutex] waiting for: [configured:node:node-8c42e2f2-d28e-4320-99f0-30430e902adc:node-27f687d6-9b85-4df5-9fa9-d237efb2c2bd] 2020-11-19 21:36:33 | [Mutex] received everything. 2020-11-19 21:36:33 | [Mutex] isItemNotified: configured:node:node-8c42e2f2-d28e-4320-99f0-30430e902adc:node-27f687d6-9b85-4df5-9fa9-d237efb2c2bd :: true 2020-11-19 21:36:34 | [Mutex] waiting for: [received:nodes:726f433d-bfb9-448d-b9a4-c38fcb18d809:localhost] 2020-11-19 21:36:34 | [Mutex] received everything. 2020-11-19 21:36:34 | [Mutex] isItemNotified: received:node:726f433d-bfb9-448d-b9a4-c38fcb18d809:localhost:node-8c42e2f2-d28e-4320-99f0-30430e902adc:Node 8c42e2f2-d28e-4320-99f0-30430e902adc :: true 2020-11-19 21:36:34 | [Mutex] waiting for: [received:nodes:a46c372d-f649-4436-8729-8f08528675c8:localhost] 2020-11-19 21:36:34 | [Mutex] received everything. 2020-11-19 21:36:34 | [Mutex] isItemNotified: received:node:a46c372d-f649-4436-8729-8f08528675c8:localhost:node-8c42e2f2-d28e-4320-99f0-30430e902adc:Node 8c42e2f2-d28e-4320-99f0-30430e902adc :: false |
createNodes | 1.695s |
2020-11-19 21:36:30 |
2020-11-19 21:36:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:36:30 | ------------------------------------ 2020-11-19 21:36:31 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-8c42e2f2-d28e-4320-99f0-30430e902adc", "pubsub#title": "Node 8c42e2f2-d28e-4320-99f0-30430e902adc" } 2020-11-19 21:36:31 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-19 21:36:32 | [Mutex] waiting for: [received:nodes:81c71c41-2fed-4186-9ad6-c663f45497e0:localhost] 2020-11-19 21:36:32 | [Mutex] received everything. 2020-11-19 21:36:32 | [Mutex] isItemNotified: received:node:81c71c41-2fed-4186-9ad6-c663f45497e0:localhost:node-8c42e2f2-d28e-4320-99f0-30430e902adc:Node 8c42e2f2-d28e-4320-99f0-30430e902adc :: true |
createSubnodes | 1.032s |
2020-11-19 21:36:32 |
2020-11-19 21:36:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:36:32 | ------------------------------------ 2020-11-19 21:36:32 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-27f687d6-9b85-4df5-9fa9-d237efb2c2bd", "pubsub#title": "Node 27f687d6-9b85-4df5-9fa9-d237efb2c2bd" } 2020-11-19 21:36:32 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-19 21:36:33 | [Mutex] waiting for: [received:nodes:6a2db37d-da9f-4423-a95e-2e4b41d5228a:localhost] 2020-11-19 21:36:33 | [Mutex] received everything. 2020-11-19 21:36:33 | [Mutex] isItemNotified: received:node:6a2db37d-da9f-4423-a95e-2e4b41d5228a:localhost:node-27f687d6-9b85-4df5-9fa9-d237efb2c2bd:Node 27f687d6-9b85-4df5-9fa9-d237efb2c2bd :: true |
deleteNodes | 1.027s |
2020-11-19 21:36:37 |
2020-11-19 21:36:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:36:37 | ------------------------------------ 2020-11-19 21:36:37 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-27f687d6-9b85-4df5-9fa9-d237efb2c2bd" } 2020-11-19 21:36:37 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-19 21:36:38 | [Mutex] waiting for: [received:nodes:912ca455-85c9-4feb-afff-98bcc075f40e:localhost] 2020-11-19 21:36:38 | [Mutex] received everything. 2020-11-19 21:36:38 | [Mutex] isItemNotified: received:node:912ca455-85c9-4feb-afff-98bcc075f40e:localhost:node-27f687d6-9b85-4df5-9fa9-d237efb2c2bd:Node 27f687d6-9b85-4df5-9fa9-d237efb2c2bd :: false |
deleteSubnodes | 1.028s |
2020-11-19 21:36:36 |
2020-11-19 21:36:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:36:36 | ------------------------------------ 2020-11-19 21:36:36 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8c42e2f2-d28e-4320-99f0-30430e902adc" } 2020-11-19 21:36:36 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-19 21:36:37 | [Mutex] waiting for: [received:nodes:7687a5d5-9277-474a-9a7d-699bc9a66bd8:localhost] 2020-11-19 21:36:37 | [Mutex] received everything. 2020-11-19 21:36:37 | [Mutex] isItemNotified: received:node:7687a5d5-9277-474a-9a7d-699bc9a66bd8:localhost:node-8c42e2f2-d28e-4320-99f0-30430e902adc:Node 8c42e2f2-d28e-4320-99f0-30430e902adc :: false 2020-11-19 21:36:37 | [Mutex] waiting for: [received:nodes:dd1aac9a-ccb2-4586-8f05-d3fce018944b:localhost] 2020-11-19 21:36:37 | [Mutex] received everything. 2020-11-19 21:36:37 | [Mutex] isItemNotified: received:node:dd1aac9a-ccb2-4586-8f05-d3fce018944b:localhost:node-8c42e2f2-d28e-4320-99f0-30430e902adc:Node 8c42e2f2-d28e-4320-99f0-30430e902adc :: false |
publishItemsToNodes | 0.039s |
2020-11-19 21:36:35 |
2020-11-19 21:36:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:36:35 | ------------------------------------ 2020-11-19 21:36:35 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-8c42e2f2-d28e-4320-99f0-30430e902adc", "entry": "<test>item-b5375df5-2103-4daf-83b3-d93749590572</test>", "item-id": "item-b5375df5-2103-4daf-83b3-d93749590572" } 2020-11-19 21:36:35 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b5375df5-2103-4daf-83b3-d93749590572" } 2020-11-19 21:36:35 | [Mutex] waiting for: [published:item:notifieditem-b5375df5-2103-4daf-83b3-d93749590572:admin@test-domain.com] 2020-11-19 21:36:35 | [Mutex] received everything. 2020-11-19 21:36:35 | [Mutex] isItemNotified: published:item:notifieditem-b5375df5-2103-4daf-83b3-d93749590572:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2020-11-19 21:36:35 |
2020-11-19 21:36:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:36:35 | ------------------------------------ 2020-11-19 21:36:35 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-8c42e2f2-d28e-4320-99f0-30430e902adc", "item-id": "item-b5375df5-2103-4daf-83b3-d93749590572" } 2020-11-19 21:36:35 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b5375df5-2103-4daf-83b3-d93749590572" } 2020-11-19 21:36:35 | [Mutex] received everything. 2020-11-19 21:36:35 | [Mutex] isItemNotified: retracted:item:notifieditem-b5375df5-2103-4daf-83b3-d93749590572:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.093s |
2020-11-19 21:36:35 |
2020-11-19 21:36:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:36:35 | ------------------------------------ 2020-11-19 21:36:35 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-8c42e2f2-d28e-4320-99f0-30430e902adc", "item-id": "item-b5375df5-2103-4daf-83b3-d93749590572" } 2020-11-19 21:36:35 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-8c42e2f2-d28e-4320-99f0-30430e902adc", "item-id": "item-b5375df5-2103-4daf-83b3-d93749590572", "item": [ "<item id=\"item-b5375df5-2103-4daf-83b3-d93749590572\"><test>item-b5375df5-2103-4daf-83b3-d93749590572</test></item>" ] } 2020-11-19 21:36:35 | [Mutex] notify: [retrieved:item:item-b5375df5-2103-4daf-83b3-d93749590572:payload-matches:true:localhost] 2020-11-19 21:36:35 | [Mutex] received everything. 2020-11-19 21:36:35 | [Mutex] isItemNotified: retrieved:item:item-b5375df5-2103-4daf-83b3-d93749590572:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-11-19 21:36:35 |
2020-11-19 21:36:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:36:35 | ------------------------------------ 2020-11-19 21:36:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-11-19 21:36:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-8c42e2f2-d28e-4320-99f0-30430e902adc", "test", "node-27f687d6-9b85-4df5-9fa9-d237efb2c2bd" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2020-11-19 21:36:35 |
2020-11-19 21:36:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:36:35 | ------------------------------------ 2020-11-19 21:36:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-8c42e2f2-d28e-4320-99f0-30430e902adc)" } 2020-11-19 21:36:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2020-11-19 21:36:34 |
2020-11-19 21:36:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:36:34 | ------------------------------------ 2020-11-19 21:36:34 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-8c42e2f2-d28e-4320-99f0-30430e902adc", "jids": [ "admin@test-domain.com" ] } 2020-11-19 21:36:34 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.103s |
2020-11-19 21:36:35 |
2020-11-19 21:36:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-19 21:36:35 | ------------------------------------ 2020-11-19 21:36:35 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-8c42e2f2-d28e-4320-99f0-30430e902adc", "jids": [ "admin@test-domain.com" ] } 2020-11-19 21:36:35 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |