Test duration : 8.594s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.095s |
2022-12-16 05:01:24 |
2022-12-16 05:01:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 05:01:24 | ------------------------------------ 2022-12-16 05:01:24 | [Mutex] waiting for: [configured:node:node-ffdcce9a-069f-4939-b34a-630b51e2a723:node-1b54cc45-6b01-4105-b922-592227940aa5] 2022-12-16 05:01:24 | [Mutex] received everything. 2022-12-16 05:01:24 | [Mutex] isItemNotified: configured:node:node-ffdcce9a-069f-4939-b34a-630b51e2a723:node-1b54cc45-6b01-4105-b922-592227940aa5 :: true 2022-12-16 05:01:25 | [Mutex] waiting for: [received:nodes:c5a17fe3-ea0d-4dbf-a1f2-b6300733056e:localhost] 2022-12-16 05:01:25 | [Mutex] received everything. 2022-12-16 05:01:25 | [Mutex] isItemNotified: received:node:c5a17fe3-ea0d-4dbf-a1f2-b6300733056e:localhost:node-ffdcce9a-069f-4939-b34a-630b51e2a723:Node ffdcce9a-069f-4939-b34a-630b51e2a723 :: true 2022-12-16 05:01:25 | [Mutex] waiting for: [received:nodes:f4c1b56f-af78-406f-b7f8-ed44931e599f:localhost] 2022-12-16 05:01:25 | [Mutex] waiting for: [received:nodes:f4c1b56f-af78-406f-b7f8-ed44931e599f:localhost] 2022-12-16 05:01:25 | [Mutex] waiting for: [received:nodes:f4c1b56f-af78-406f-b7f8-ed44931e599f:localhost] 2022-12-16 05:01:25 | [Mutex] waiting for: [received:nodes:f4c1b56f-af78-406f-b7f8-ed44931e599f:localhost] 2022-12-16 05:01:25 | [Mutex] received everything. 2022-12-16 05:01:25 | [Mutex] isItemNotified: received:node:f4c1b56f-af78-406f-b7f8-ed44931e599f:localhost:node-ffdcce9a-069f-4939-b34a-630b51e2a723:Node ffdcce9a-069f-4939-b34a-630b51e2a723 :: false |
createNodes | 1.524s |
2022-12-16 05:01:21 |
2022-12-16 05:01:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 05:01:21 | ------------------------------------ 2022-12-16 05:01:22 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ffdcce9a-069f-4939-b34a-630b51e2a723", "pubsub#title": "Node ffdcce9a-069f-4939-b34a-630b51e2a723" } 2022-12-16 05:01:22 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-16 05:01:23 | [Mutex] waiting for: [received:nodes:025a1f1d-30bb-4de5-a3cc-6d4e444de6b7:localhost] 2022-12-16 05:01:23 | [Mutex] waiting for: [received:nodes:025a1f1d-30bb-4de5-a3cc-6d4e444de6b7:localhost] 2022-12-16 05:01:23 | [Mutex] waiting for: [received:nodes:025a1f1d-30bb-4de5-a3cc-6d4e444de6b7:localhost] 2022-12-16 05:01:23 | [Mutex] waiting for: [received:nodes:025a1f1d-30bb-4de5-a3cc-6d4e444de6b7:localhost] 2022-12-16 05:01:23 | [Mutex] received everything. 2022-12-16 05:01:23 | [Mutex] isItemNotified: received:node:025a1f1d-30bb-4de5-a3cc-6d4e444de6b7:localhost:node-ffdcce9a-069f-4939-b34a-630b51e2a723:Node ffdcce9a-069f-4939-b34a-630b51e2a723 :: true |
createSubnodes | 1.023s |
2022-12-16 05:01:23 |
2022-12-16 05:01:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 05:01:23 | ------------------------------------ 2022-12-16 05:01:23 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-1b54cc45-6b01-4105-b922-592227940aa5", "pubsub#title": "Node 1b54cc45-6b01-4105-b922-592227940aa5" } 2022-12-16 05:01:23 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-16 05:01:24 | [Mutex] waiting for: [received:nodes:95e06569-4ec8-4937-8018-0746aaa41ed4:localhost] 2022-12-16 05:01:24 | [Mutex] waiting for: [received:nodes:95e06569-4ec8-4937-8018-0746aaa41ed4:localhost] 2022-12-16 05:01:24 | [Mutex] waiting for: [received:nodes:95e06569-4ec8-4937-8018-0746aaa41ed4:localhost] 2022-12-16 05:01:24 | [Mutex] waiting for: [received:nodes:95e06569-4ec8-4937-8018-0746aaa41ed4:localhost] 2022-12-16 05:01:24 | [Mutex] received everything. 2022-12-16 05:01:24 | [Mutex] isItemNotified: received:node:95e06569-4ec8-4937-8018-0746aaa41ed4:localhost:node-1b54cc45-6b01-4105-b922-592227940aa5:Node 1b54cc45-6b01-4105-b922-592227940aa5 :: true |
deleteNodes | 1.021s |
2022-12-16 05:01:28 |
2022-12-16 05:01:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 05:01:28 | ------------------------------------ 2022-12-16 05:01:28 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1b54cc45-6b01-4105-b922-592227940aa5" } 2022-12-16 05:01:28 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-16 05:01:29 | [Mutex] waiting for: [received:nodes:846e0ba4-3ef7-419c-807d-32bbc3ff0929:localhost] 2022-12-16 05:01:29 | [Mutex] waiting for: [received:nodes:846e0ba4-3ef7-419c-807d-32bbc3ff0929:localhost] 2022-12-16 05:01:29 | [Mutex] waiting for: [received:nodes:846e0ba4-3ef7-419c-807d-32bbc3ff0929:localhost] 2022-12-16 05:01:29 | [Mutex] received everything. 2022-12-16 05:01:29 | [Mutex] isItemNotified: received:node:846e0ba4-3ef7-419c-807d-32bbc3ff0929:localhost:node-1b54cc45-6b01-4105-b922-592227940aa5:Node 1b54cc45-6b01-4105-b922-592227940aa5 :: false |
deleteSubnodes | 1.026s |
2022-12-16 05:01:27 |
2022-12-16 05:01:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 05:01:27 | ------------------------------------ 2022-12-16 05:01:27 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ffdcce9a-069f-4939-b34a-630b51e2a723" } 2022-12-16 05:01:27 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-16 05:01:28 | [Mutex] waiting for: [received:nodes:b1596d1e-3b7c-4bdf-b366-63203e253892:localhost] 2022-12-16 05:01:28 | [Mutex] waiting for: [received:nodes:b1596d1e-3b7c-4bdf-b366-63203e253892:localhost] 2022-12-16 05:01:28 | [Mutex] waiting for: [received:nodes:b1596d1e-3b7c-4bdf-b366-63203e253892:localhost] 2022-12-16 05:01:28 | [Mutex] waiting for: [received:nodes:b1596d1e-3b7c-4bdf-b366-63203e253892:localhost] 2022-12-16 05:01:28 | [Mutex] received everything. 2022-12-16 05:01:28 | [Mutex] isItemNotified: received:node:b1596d1e-3b7c-4bdf-b366-63203e253892:localhost:node-ffdcce9a-069f-4939-b34a-630b51e2a723:Node ffdcce9a-069f-4939-b34a-630b51e2a723 :: false 2022-12-16 05:01:28 | [Mutex] waiting for: [received:nodes:8f16ae4e-35fa-476b-ab14-ae805933637d:localhost] 2022-12-16 05:01:28 | [Mutex] received everything. 2022-12-16 05:01:28 | [Mutex] isItemNotified: received:node:8f16ae4e-35fa-476b-ab14-ae805933637d:localhost:node-ffdcce9a-069f-4939-b34a-630b51e2a723:Node ffdcce9a-069f-4939-b34a-630b51e2a723 :: false |
publishItemsToNodes | 0.052s |
2022-12-16 05:01:26 |
2022-12-16 05:01:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 05:01:26 | ------------------------------------ 2022-12-16 05:01:26 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ffdcce9a-069f-4939-b34a-630b51e2a723", "entry": "<test>item-381426d9-b22e-4f26-841d-6074e7e62152</test>", "item-id": "item-381426d9-b22e-4f26-841d-6074e7e62152" } 2022-12-16 05:01:26 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-381426d9-b22e-4f26-841d-6074e7e62152" } 2022-12-16 05:01:26 | [Mutex] waiting for: [published:item:notifieditem-381426d9-b22e-4f26-841d-6074e7e62152:admin@test-domain.com] 2022-12-16 05:01:26 | [Mutex] received everything. 2022-12-16 05:01:26 | [Mutex] isItemNotified: published:item:notifieditem-381426d9-b22e-4f26-841d-6074e7e62152:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-12-16 05:01:26 |
2022-12-16 05:01:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 05:01:26 | ------------------------------------ 2022-12-16 05:01:26 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ffdcce9a-069f-4939-b34a-630b51e2a723", "item-id": "item-381426d9-b22e-4f26-841d-6074e7e62152" } 2022-12-16 05:01:26 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-381426d9-b22e-4f26-841d-6074e7e62152" } 2022-12-16 05:01:26 | [Mutex] received everything. 2022-12-16 05:01:26 | [Mutex] isItemNotified: retracted:item:notifieditem-381426d9-b22e-4f26-841d-6074e7e62152:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.023s |
2022-12-16 05:01:26 |
2022-12-16 05:01:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 05:01:26 | ------------------------------------ 2022-12-16 05:01:26 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ffdcce9a-069f-4939-b34a-630b51e2a723", "item-id": "item-381426d9-b22e-4f26-841d-6074e7e62152" } 2022-12-16 05:01:26 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ffdcce9a-069f-4939-b34a-630b51e2a723", "item-id": "item-381426d9-b22e-4f26-841d-6074e7e62152", "item": [ "<item id=\"item-381426d9-b22e-4f26-841d-6074e7e62152\"><test>item-381426d9-b22e-4f26-841d-6074e7e62152</test></item>" ] } 2022-12-16 05:01:26 | [Mutex] notify: [retrieved:item:item-381426d9-b22e-4f26-841d-6074e7e62152:payload-matches:true:localhost] 2022-12-16 05:01:26 | [Mutex] received everything. 2022-12-16 05:01:26 | [Mutex] isItemNotified: retrieved:item:item-381426d9-b22e-4f26-841d-6074e7e62152:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.068s |
2022-12-16 05:01:26 |
2022-12-16 05:01:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 05:01:26 | ------------------------------------ 2022-12-16 05:01:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-12-16 05:01:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-ffdcce9a-069f-4939-b34a-630b51e2a723", "node-1b54cc45-6b01-4105-b922-592227940aa5", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-12-16 05:01:26 |
2022-12-16 05:01:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 05:01:26 | ------------------------------------ 2022-12-16 05:01:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ffdcce9a-069f-4939-b34a-630b51e2a723)" } 2022-12-16 05:01:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2022-12-16 05:01:25 |
2022-12-16 05:01:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 05:01:25 | ------------------------------------ 2022-12-16 05:01:25 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ffdcce9a-069f-4939-b34a-630b51e2a723", "jids": [ "admin@test-domain.com" ] } 2022-12-16 05:01:25 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.123s |
2022-12-16 05:01:26 |
2022-12-16 05:01:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 05:01:26 | ------------------------------------ 2022-12-16 05:01:26 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ffdcce9a-069f-4939-b34a-630b51e2a723", "jids": [ "admin@test-domain.com" ] } 2022-12-16 05:01:26 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |