Test duration : 8.595s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.100s |
2022-05-29 23:15:39 |
2022-05-29 23:15:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 23:15:39 | ------------------------------------ 2022-05-29 23:15:39 | [Mutex] waiting for: [configured:node:node-abd55482-733a-443d-a259-9c24cf192d54:node-02ebda1d-04bd-48fd-9cea-a988d7b9fff0] 2022-05-29 23:15:39 | [Mutex] received everything. 2022-05-29 23:15:39 | [Mutex] isItemNotified: configured:node:node-abd55482-733a-443d-a259-9c24cf192d54:node-02ebda1d-04bd-48fd-9cea-a988d7b9fff0 :: true 2022-05-29 23:15:40 | [Mutex] waiting for: [received:nodes:f27c0de1-529b-45ca-b8bc-e6d119d1eb02:localhost] 2022-05-29 23:15:40 | [Mutex] received everything. 2022-05-29 23:15:40 | [Mutex] isItemNotified: received:node:f27c0de1-529b-45ca-b8bc-e6d119d1eb02:localhost:node-abd55482-733a-443d-a259-9c24cf192d54:Node abd55482-733a-443d-a259-9c24cf192d54 :: true 2022-05-29 23:15:40 | [Mutex] waiting for: [received:nodes:b085123f-cbb8-4ade-bca0-9aa89e2cfbc4:localhost] 2022-05-29 23:15:40 | [Mutex] received everything. 2022-05-29 23:15:40 | [Mutex] isItemNotified: received:node:b085123f-cbb8-4ade-bca0-9aa89e2cfbc4:localhost:node-abd55482-733a-443d-a259-9c24cf192d54:Node abd55482-733a-443d-a259-9c24cf192d54 :: false |
createNodes | 1.549s |
2022-05-29 23:15:36 |
2022-05-29 23:15:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 23:15:36 | ------------------------------------ 2022-05-29 23:15:37 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-abd55482-733a-443d-a259-9c24cf192d54", "pubsub#title": "Node abd55482-733a-443d-a259-9c24cf192d54" } 2022-05-29 23:15:37 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-29 23:15:38 | [Mutex] waiting for: [received:nodes:d7c970f1-9243-4469-8acb-8cdf9ba689e8:localhost] 2022-05-29 23:15:38 | [Mutex] waiting for: [received:nodes:d7c970f1-9243-4469-8acb-8cdf9ba689e8:localhost] 2022-05-29 23:15:38 | [Mutex] waiting for: [received:nodes:d7c970f1-9243-4469-8acb-8cdf9ba689e8:localhost] 2022-05-29 23:15:38 | [Mutex] received everything. 2022-05-29 23:15:38 | [Mutex] isItemNotified: received:node:d7c970f1-9243-4469-8acb-8cdf9ba689e8:localhost:node-abd55482-733a-443d-a259-9c24cf192d54:Node abd55482-733a-443d-a259-9c24cf192d54 :: true |
createSubnodes | 1.021s |
2022-05-29 23:15:38 |
2022-05-29 23:15:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 23:15:38 | ------------------------------------ 2022-05-29 23:15:38 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-02ebda1d-04bd-48fd-9cea-a988d7b9fff0", "pubsub#title": "Node 02ebda1d-04bd-48fd-9cea-a988d7b9fff0" } 2022-05-29 23:15:38 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-29 23:15:39 | [Mutex] waiting for: [received:nodes:9ba93f5a-074e-4667-860e-970dab031ed5:localhost] 2022-05-29 23:15:39 | [Mutex] waiting for: [received:nodes:9ba93f5a-074e-4667-860e-970dab031ed5:localhost] 2022-05-29 23:15:39 | [Mutex] received everything. 2022-05-29 23:15:39 | [Mutex] isItemNotified: received:node:9ba93f5a-074e-4667-860e-970dab031ed5:localhost:node-02ebda1d-04bd-48fd-9cea-a988d7b9fff0:Node 02ebda1d-04bd-48fd-9cea-a988d7b9fff0 :: true |
deleteNodes | 1.018s |
2022-05-29 23:15:43 |
2022-05-29 23:15:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 23:15:43 | ------------------------------------ 2022-05-29 23:15:43 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-02ebda1d-04bd-48fd-9cea-a988d7b9fff0" } 2022-05-29 23:15:43 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-29 23:15:44 | [Mutex] waiting for: [received:nodes:c747304b-7887-40e8-b752-bbb30e287fe2:localhost] 2022-05-29 23:15:44 | [Mutex] waiting for: [received:nodes:c747304b-7887-40e8-b752-bbb30e287fe2:localhost] 2022-05-29 23:15:44 | [Mutex] received everything. 2022-05-29 23:15:44 | [Mutex] isItemNotified: received:node:c747304b-7887-40e8-b752-bbb30e287fe2:localhost:node-02ebda1d-04bd-48fd-9cea-a988d7b9fff0:Node 02ebda1d-04bd-48fd-9cea-a988d7b9fff0 :: false |
deleteSubnodes | 1.025s |
2022-05-29 23:15:42 |
2022-05-29 23:15:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 23:15:42 | ------------------------------------ 2022-05-29 23:15:42 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-abd55482-733a-443d-a259-9c24cf192d54" } 2022-05-29 23:15:42 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-29 23:15:43 | [Mutex] waiting for: [received:nodes:a1daefbf-2486-496b-bfc6-a1f55afbac45:localhost] 2022-05-29 23:15:43 | [Mutex] received everything. 2022-05-29 23:15:43 | [Mutex] isItemNotified: received:node:a1daefbf-2486-496b-bfc6-a1f55afbac45:localhost:node-abd55482-733a-443d-a259-9c24cf192d54:Node abd55482-733a-443d-a259-9c24cf192d54 :: false 2022-05-29 23:15:43 | [Mutex] waiting for: [received:nodes:a8f956f4-e019-48d1-ac7c-99bfaf36b47e:localhost] 2022-05-29 23:15:43 | [Mutex] received everything. 2022-05-29 23:15:43 | [Mutex] isItemNotified: received:node:a8f956f4-e019-48d1-ac7c-99bfaf36b47e:localhost:node-abd55482-733a-443d-a259-9c24cf192d54:Node abd55482-733a-443d-a259-9c24cf192d54 :: false |
publishItemsToNodes | 0.050s |
2022-05-29 23:15:41 |
2022-05-29 23:15:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 23:15:41 | ------------------------------------ 2022-05-29 23:15:41 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-abd55482-733a-443d-a259-9c24cf192d54", "entry": "<test>item-e470f3f1-28d3-4dad-a33a-72e8abc01b78</test>", "item-id": "item-e470f3f1-28d3-4dad-a33a-72e8abc01b78" } 2022-05-29 23:15:41 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e470f3f1-28d3-4dad-a33a-72e8abc01b78" } 2022-05-29 23:15:41 | [Mutex] waiting for: [published:item:notifieditem-e470f3f1-28d3-4dad-a33a-72e8abc01b78:admin@test-domain.com] 2022-05-29 23:15:41 | [Mutex] received everything. 2022-05-29 23:15:41 | [Mutex] isItemNotified: published:item:notifieditem-e470f3f1-28d3-4dad-a33a-72e8abc01b78:admin@test-domain.com :: true |
retractItemsFromNodes | 0.087s |
2022-05-29 23:15:41 |
2022-05-29 23:15:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 23:15:41 | ------------------------------------ 2022-05-29 23:15:41 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-abd55482-733a-443d-a259-9c24cf192d54", "item-id": "item-e470f3f1-28d3-4dad-a33a-72e8abc01b78" } 2022-05-29 23:15:41 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e470f3f1-28d3-4dad-a33a-72e8abc01b78" } 2022-05-29 23:15:41 | [Mutex] received everything. 2022-05-29 23:15:41 | [Mutex] isItemNotified: retracted:item:notifieditem-e470f3f1-28d3-4dad-a33a-72e8abc01b78:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.019s |
2022-05-29 23:15:41 |
2022-05-29 23:15:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 23:15:41 | ------------------------------------ 2022-05-29 23:15:41 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-abd55482-733a-443d-a259-9c24cf192d54", "item-id": "item-e470f3f1-28d3-4dad-a33a-72e8abc01b78" } 2022-05-29 23:15:41 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-abd55482-733a-443d-a259-9c24cf192d54", "item-id": "item-e470f3f1-28d3-4dad-a33a-72e8abc01b78", "item": [ "<item id=\"item-e470f3f1-28d3-4dad-a33a-72e8abc01b78\"><test>item-e470f3f1-28d3-4dad-a33a-72e8abc01b78</test></item>" ] } 2022-05-29 23:15:41 | [Mutex] notify: [retrieved:item:item-e470f3f1-28d3-4dad-a33a-72e8abc01b78:payload-matches:true:localhost] 2022-05-29 23:15:41 | [Mutex] received everything. 2022-05-29 23:15:41 | [Mutex] isItemNotified: retrieved:item:item-e470f3f1-28d3-4dad-a33a-72e8abc01b78:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.077s |
2022-05-29 23:15:41 |
2022-05-29 23:15:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 23:15:41 | ------------------------------------ 2022-05-29 23:15:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-29 23:15:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-abd55482-733a-443d-a259-9c24cf192d54", "node-02ebda1d-04bd-48fd-9cea-a988d7b9fff0" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-05-29 23:15:41 |
2022-05-29 23:15:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 23:15:41 | ------------------------------------ 2022-05-29 23:15:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-abd55482-733a-443d-a259-9c24cf192d54)" } 2022-05-29 23:15:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-05-29 23:15:40 |
2022-05-29 23:15:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 23:15:40 | ------------------------------------ 2022-05-29 23:15:40 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-abd55482-733a-443d-a259-9c24cf192d54", "jids": [ "admin@test-domain.com" ] } 2022-05-29 23:15:40 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2022-05-29 23:15:41 |
2022-05-29 23:15:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 23:15:41 | ------------------------------------ 2022-05-29 23:15:41 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-abd55482-733a-443d-a259-9c24cf192d54", "jids": [ "admin@test-domain.com" ] } 2022-05-29 23:15:41 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |