Test duration : 8.529s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.099s |
2022-12-22 22:00:30 |
2022-12-22 22:00:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:00:30 | ------------------------------------ 2022-12-22 22:00:30 | [Mutex] waiting for: [configured:node:node-9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622:node-d2edd4ea-96f0-4cc7-a0b1-35256e901ea0] 2022-12-22 22:00:30 | [Mutex] received everything. 2022-12-22 22:00:30 | [Mutex] isItemNotified: configured:node:node-9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622:node-d2edd4ea-96f0-4cc7-a0b1-35256e901ea0 :: true 2022-12-22 22:00:31 | [Mutex] waiting for: [received:nodes:360cd80f-f378-4ea0-a70c-f705380d7cb4:localhost] 2022-12-22 22:00:31 | [Mutex] received everything. 2022-12-22 22:00:31 | [Mutex] isItemNotified: received:node:360cd80f-f378-4ea0-a70c-f705380d7cb4:localhost:node-9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622:Node 9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622 :: true 2022-12-22 22:00:31 | [Mutex] waiting for: [received:nodes:c3459153-31cd-4dc5-b405-f6313afd67d7:localhost] 2022-12-22 22:00:31 | [Mutex] waiting for: [received:nodes:c3459153-31cd-4dc5-b405-f6313afd67d7:localhost] 2022-12-22 22:00:31 | [Mutex] waiting for: [received:nodes:c3459153-31cd-4dc5-b405-f6313afd67d7:localhost] 2022-12-22 22:00:31 | [Mutex] waiting for: [received:nodes:c3459153-31cd-4dc5-b405-f6313afd67d7:localhost] 2022-12-22 22:00:31 | [Mutex] received everything. 2022-12-22 22:00:31 | [Mutex] isItemNotified: received:node:c3459153-31cd-4dc5-b405-f6313afd67d7:localhost:node-9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622:Node 9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622 :: false |
createNodes | 1.525s |
2022-12-22 22:00:27 |
2022-12-22 22:00:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:00:27 | ------------------------------------ 2022-12-22 22:00:28 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622", "pubsub#title": "Node 9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622" } 2022-12-22 22:00:28 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-22 22:00:29 | [Mutex] waiting for: [received:nodes:c9c98d58-c69a-4ce5-bf8e-6ece1ea24cee:localhost] 2022-12-22 22:00:29 | [Mutex] waiting for: [received:nodes:c9c98d58-c69a-4ce5-bf8e-6ece1ea24cee:localhost] 2022-12-22 22:00:29 | [Mutex] waiting for: [received:nodes:c9c98d58-c69a-4ce5-bf8e-6ece1ea24cee:localhost] 2022-12-22 22:00:29 | [Mutex] waiting for: [received:nodes:c9c98d58-c69a-4ce5-bf8e-6ece1ea24cee:localhost] 2022-12-22 22:00:29 | [Mutex] waiting for: [received:nodes:c9c98d58-c69a-4ce5-bf8e-6ece1ea24cee:localhost] 2022-12-22 22:00:29 | [Mutex] received everything. 2022-12-22 22:00:29 | [Mutex] isItemNotified: received:node:c9c98d58-c69a-4ce5-bf8e-6ece1ea24cee:localhost:node-9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622:Node 9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622 :: true |
createSubnodes | 1.020s |
2022-12-22 22:00:29 |
2022-12-22 22:00:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:00:29 | ------------------------------------ 2022-12-22 22:00:29 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-d2edd4ea-96f0-4cc7-a0b1-35256e901ea0", "pubsub#title": "Node d2edd4ea-96f0-4cc7-a0b1-35256e901ea0" } 2022-12-22 22:00:29 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-22 22:00:30 | [Mutex] waiting for: [received:nodes:9c50d790-9018-4a7c-a262-784e5c8f2dba:localhost] 2022-12-22 22:00:30 | [Mutex] waiting for: [received:nodes:9c50d790-9018-4a7c-a262-784e5c8f2dba:localhost] 2022-12-22 22:00:30 | [Mutex] waiting for: [received:nodes:9c50d790-9018-4a7c-a262-784e5c8f2dba:localhost] 2022-12-22 22:00:30 | [Mutex] received everything. 2022-12-22 22:00:30 | [Mutex] isItemNotified: received:node:9c50d790-9018-4a7c-a262-784e5c8f2dba:localhost:node-d2edd4ea-96f0-4cc7-a0b1-35256e901ea0:Node d2edd4ea-96f0-4cc7-a0b1-35256e901ea0 :: true |
deleteNodes | 1.023s |
2022-12-22 22:00:34 |
2022-12-22 22:00:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:00:34 | ------------------------------------ 2022-12-22 22:00:34 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d2edd4ea-96f0-4cc7-a0b1-35256e901ea0" } 2022-12-22 22:00:34 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-22 22:00:35 | [Mutex] waiting for: [received:nodes:6f499154-ea5c-46e8-9966-09f03e27d2f1:localhost] 2022-12-22 22:00:35 | [Mutex] waiting for: [received:nodes:6f499154-ea5c-46e8-9966-09f03e27d2f1:localhost] 2022-12-22 22:00:35 | [Mutex] waiting for: [received:nodes:6f499154-ea5c-46e8-9966-09f03e27d2f1:localhost] 2022-12-22 22:00:35 | [Mutex] received everything. 2022-12-22 22:00:35 | [Mutex] isItemNotified: received:node:6f499154-ea5c-46e8-9966-09f03e27d2f1:localhost:node-d2edd4ea-96f0-4cc7-a0b1-35256e901ea0:Node d2edd4ea-96f0-4cc7-a0b1-35256e901ea0 :: false |
deleteSubnodes | 1.029s |
2022-12-22 22:00:33 |
2022-12-22 22:00:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:00:33 | ------------------------------------ 2022-12-22 22:00:33 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622" } 2022-12-22 22:00:33 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-22 22:00:34 | [Mutex] waiting for: [received:nodes:1f8642ce-ad74-40dd-9cf6-0b9d3053907e:localhost] 2022-12-22 22:00:34 | [Mutex] received everything. 2022-12-22 22:00:34 | [Mutex] isItemNotified: received:node:1f8642ce-ad74-40dd-9cf6-0b9d3053907e:localhost:node-9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622:Node 9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622 :: false 2022-12-22 22:00:34 | [Mutex] waiting for: [received:nodes:1be151d0-5b2d-446b-8d1d-4e0f6c2f6652:localhost] 2022-12-22 22:00:34 | [Mutex] received everything. 2022-12-22 22:00:34 | [Mutex] isItemNotified: received:node:1be151d0-5b2d-446b-8d1d-4e0f6c2f6652:localhost:node-9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622:Node 9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622 :: false |
publishItemsToNodes | 0.053s |
2022-12-22 22:00:32 |
2022-12-22 22:00:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:00:32 | ------------------------------------ 2022-12-22 22:00:32 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622", "entry": "<test>item-9966c4d6-4731-43d0-bbc6-38be7c7e537a</test>", "item-id": "item-9966c4d6-4731-43d0-bbc6-38be7c7e537a" } 2022-12-22 22:00:32 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9966c4d6-4731-43d0-bbc6-38be7c7e537a" } 2022-12-22 22:00:32 | [Mutex] waiting for: [published:item:notifieditem-9966c4d6-4731-43d0-bbc6-38be7c7e537a:admin@test-domain.com] 2022-12-22 22:00:32 | [Mutex] received everything. 2022-12-22 22:00:32 | [Mutex] isItemNotified: published:item:notifieditem-9966c4d6-4731-43d0-bbc6-38be7c7e537a:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-12-22 22:00:32 |
2022-12-22 22:00:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:00:32 | ------------------------------------ 2022-12-22 22:00:32 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622", "item-id": "item-9966c4d6-4731-43d0-bbc6-38be7c7e537a" } 2022-12-22 22:00:32 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9966c4d6-4731-43d0-bbc6-38be7c7e537a" } 2022-12-22 22:00:32 | [Mutex] received everything. 2022-12-22 22:00:32 | [Mutex] isItemNotified: retracted:item:notifieditem-9966c4d6-4731-43d0-bbc6-38be7c7e537a:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.030s |
2022-12-22 22:00:32 |
2022-12-22 22:00:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:00:32 | ------------------------------------ 2022-12-22 22:00:32 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622", "item-id": "item-9966c4d6-4731-43d0-bbc6-38be7c7e537a" } 2022-12-22 22:00:32 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622", "item-id": "item-9966c4d6-4731-43d0-bbc6-38be7c7e537a", "item": [ "<item id=\"item-9966c4d6-4731-43d0-bbc6-38be7c7e537a\"><test>item-9966c4d6-4731-43d0-bbc6-38be7c7e537a</test></item>" ] } 2022-12-22 22:00:32 | [Mutex] notify: [retrieved:item:item-9966c4d6-4731-43d0-bbc6-38be7c7e537a:payload-matches:true:localhost] 2022-12-22 22:00:32 | [Mutex] received everything. 2022-12-22 22:00:32 | [Mutex] isItemNotified: retrieved:item:item-9966c4d6-4731-43d0-bbc6-38be7c7e537a:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2022-12-22 22:00:32 |
2022-12-22 22:00:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:00:32 | ------------------------------------ 2022-12-22 22:00:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-12-22 22:00:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622", "node-d2edd4ea-96f0-4cc7-a0b1-35256e901ea0", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-12-22 22:00:32 |
2022-12-22 22:00:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:00:32 | ------------------------------------ 2022-12-22 22:00:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622)" } 2022-12-22 22:00:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2022-12-22 22:00:31 |
2022-12-22 22:00:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:00:31 | ------------------------------------ 2022-12-22 22:00:31 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622", "jids": [ "admin@test-domain.com" ] } 2022-12-22 22:00:31 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2022-12-22 22:00:32 |
2022-12-22 22:00:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:00:32 | ------------------------------------ 2022-12-22 22:00:32 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-9c7c942d-4ee8-4e77-9d13-ccc3a0bb1622", "jids": [ "admin@test-domain.com" ] } 2022-12-22 22:00:32 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |