Test duration : 8.990s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.111s |
2022-02-03 21:45:46 |
2022-02-03 21:45:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:45:46 | ------------------------------------ 2022-02-03 21:45:46 | [Mutex] waiting for: [configured:node:node-7e7ce990-bf61-45ca-ac1f-7b3de9bc566f:node-11f8c83c-d425-4bfd-a14f-8d86c697cb45] 2022-02-03 21:45:46 | [Mutex] received everything. 2022-02-03 21:45:46 | [Mutex] isItemNotified: configured:node:node-7e7ce990-bf61-45ca-ac1f-7b3de9bc566f:node-11f8c83c-d425-4bfd-a14f-8d86c697cb45 :: true 2022-02-03 21:45:47 | [Mutex] waiting for: [received:nodes:10375c5e-dcbf-427c-bcfd-6c3ce339c656:localhost] 2022-02-03 21:45:47 | [Mutex] received everything. 2022-02-03 21:45:47 | [Mutex] isItemNotified: received:node:10375c5e-dcbf-427c-bcfd-6c3ce339c656:localhost:node-7e7ce990-bf61-45ca-ac1f-7b3de9bc566f:Node 7e7ce990-bf61-45ca-ac1f-7b3de9bc566f :: true 2022-02-03 21:45:47 | [Mutex] waiting for: [received:nodes:de9c054f-0738-47e5-9cc1-47106c0775c7:localhost] 2022-02-03 21:45:47 | [Mutex] received everything. 2022-02-03 21:45:47 | [Mutex] isItemNotified: received:node:de9c054f-0738-47e5-9cc1-47106c0775c7:localhost:node-7e7ce990-bf61-45ca-ac1f-7b3de9bc566f:Node 7e7ce990-bf61-45ca-ac1f-7b3de9bc566f :: false |
createNodes | 1.723s |
2022-02-03 21:45:43 |
2022-02-03 21:45:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:45:43 | ------------------------------------ 2022-02-03 21:45:44 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-7e7ce990-bf61-45ca-ac1f-7b3de9bc566f", "pubsub#title": "Node 7e7ce990-bf61-45ca-ac1f-7b3de9bc566f" } 2022-02-03 21:45:44 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-03 21:45:45 | [Mutex] waiting for: [received:nodes:4dcdcfb6-2f6b-4dc2-b71f-3b089ca9020f:localhost] 2022-02-03 21:45:45 | [Mutex] received everything. 2022-02-03 21:45:45 | [Mutex] isItemNotified: received:node:4dcdcfb6-2f6b-4dc2-b71f-3b089ca9020f:localhost:node-7e7ce990-bf61-45ca-ac1f-7b3de9bc566f:Node 7e7ce990-bf61-45ca-ac1f-7b3de9bc566f :: true |
createSubnodes | 1.031s |
2022-02-03 21:45:45 |
2022-02-03 21:45:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:45:45 | ------------------------------------ 2022-02-03 21:45:45 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-11f8c83c-d425-4bfd-a14f-8d86c697cb45", "pubsub#title": "Node 11f8c83c-d425-4bfd-a14f-8d86c697cb45" } 2022-02-03 21:45:45 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-03 21:45:46 | [Mutex] waiting for: [received:nodes:4e247ea8-d476-4317-be1a-9317ac6f0961:localhost] 2022-02-03 21:45:46 | [Mutex] waiting for: [received:nodes:4e247ea8-d476-4317-be1a-9317ac6f0961:localhost] 2022-02-03 21:45:46 | [Mutex] received everything. 2022-02-03 21:45:46 | [Mutex] isItemNotified: received:node:4e247ea8-d476-4317-be1a-9317ac6f0961:localhost:node-11f8c83c-d425-4bfd-a14f-8d86c697cb45:Node 11f8c83c-d425-4bfd-a14f-8d86c697cb45 :: true |
deleteNodes | 1.027s |
2022-02-03 21:45:50 |
2022-02-03 21:45:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:45:50 | ------------------------------------ 2022-02-03 21:45:50 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-11f8c83c-d425-4bfd-a14f-8d86c697cb45" } 2022-02-03 21:45:50 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-03 21:45:51 | [Mutex] waiting for: [received:nodes:cb7d5e2f-61b8-4d6c-8bca-99800cd5fa5c:localhost] 2022-02-03 21:45:51 | [Mutex] waiting for: [received:nodes:cb7d5e2f-61b8-4d6c-8bca-99800cd5fa5c:localhost] 2022-02-03 21:45:51 | [Mutex] received everything. 2022-02-03 21:45:51 | [Mutex] isItemNotified: received:node:cb7d5e2f-61b8-4d6c-8bca-99800cd5fa5c:localhost:node-11f8c83c-d425-4bfd-a14f-8d86c697cb45:Node 11f8c83c-d425-4bfd-a14f-8d86c697cb45 :: false |
deleteSubnodes | 1.034s |
2022-02-03 21:45:49 |
2022-02-03 21:45:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:45:49 | ------------------------------------ 2022-02-03 21:45:49 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7e7ce990-bf61-45ca-ac1f-7b3de9bc566f" } 2022-02-03 21:45:49 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-03 21:45:50 | [Mutex] waiting for: [received:nodes:103560c4-04af-44cc-bade-f176fda583d1:localhost] 2022-02-03 21:45:50 | [Mutex] waiting for: [received:nodes:103560c4-04af-44cc-bade-f176fda583d1:localhost] 2022-02-03 21:45:50 | [Mutex] received everything. 2022-02-03 21:45:50 | [Mutex] isItemNotified: received:node:103560c4-04af-44cc-bade-f176fda583d1:localhost:node-7e7ce990-bf61-45ca-ac1f-7b3de9bc566f:Node 7e7ce990-bf61-45ca-ac1f-7b3de9bc566f :: false 2022-02-03 21:45:50 | [Mutex] waiting for: [received:nodes:a537947b-bf7f-4b71-a76d-42f3e6931619:localhost] 2022-02-03 21:45:50 | [Mutex] received everything. 2022-02-03 21:45:50 | [Mutex] isItemNotified: received:node:a537947b-bf7f-4b71-a76d-42f3e6931619:localhost:node-7e7ce990-bf61-45ca-ac1f-7b3de9bc566f:Node 7e7ce990-bf61-45ca-ac1f-7b3de9bc566f :: false |
publishItemsToNodes | 0.061s |
2022-02-03 21:45:48 |
2022-02-03 21:45:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:45:48 | ------------------------------------ 2022-02-03 21:45:48 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-7e7ce990-bf61-45ca-ac1f-7b3de9bc566f", "entry": "<test>item-e38e1191-b3bf-4963-9873-a0f1290ecfe7</test>", "item-id": "item-e38e1191-b3bf-4963-9873-a0f1290ecfe7" } 2022-02-03 21:45:48 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e38e1191-b3bf-4963-9873-a0f1290ecfe7" } 2022-02-03 21:45:48 | [Mutex] waiting for: [published:item:notifieditem-e38e1191-b3bf-4963-9873-a0f1290ecfe7:admin@test-domain.com] 2022-02-03 21:45:48 | [Mutex] received everything. 2022-02-03 21:45:48 | [Mutex] isItemNotified: published:item:notifieditem-e38e1191-b3bf-4963-9873-a0f1290ecfe7:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-02-03 21:45:48 |
2022-02-03 21:45:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:45:48 | ------------------------------------ 2022-02-03 21:45:48 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-7e7ce990-bf61-45ca-ac1f-7b3de9bc566f", "item-id": "item-e38e1191-b3bf-4963-9873-a0f1290ecfe7" } 2022-02-03 21:45:48 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e38e1191-b3bf-4963-9873-a0f1290ecfe7" } 2022-02-03 21:45:48 | [Mutex] received everything. 2022-02-03 21:45:48 | [Mutex] isItemNotified: retracted:item:notifieditem-e38e1191-b3bf-4963-9873-a0f1290ecfe7:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.020s |
2022-02-03 21:45:48 |
2022-02-03 21:45:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:45:48 | ------------------------------------ 2022-02-03 21:45:48 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-7e7ce990-bf61-45ca-ac1f-7b3de9bc566f", "item-id": "item-e38e1191-b3bf-4963-9873-a0f1290ecfe7" } 2022-02-03 21:45:48 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-7e7ce990-bf61-45ca-ac1f-7b3de9bc566f", "item-id": "item-e38e1191-b3bf-4963-9873-a0f1290ecfe7", "item": [ "<item id=\"item-e38e1191-b3bf-4963-9873-a0f1290ecfe7\"><test>item-e38e1191-b3bf-4963-9873-a0f1290ecfe7</test></item>" ] } 2022-02-03 21:45:48 | [Mutex] notify: [retrieved:item:item-e38e1191-b3bf-4963-9873-a0f1290ecfe7:payload-matches:true:localhost] 2022-02-03 21:45:48 | [Mutex] received everything. 2022-02-03 21:45:48 | [Mutex] isItemNotified: retrieved:item:item-e38e1191-b3bf-4963-9873-a0f1290ecfe7:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-02-03 21:45:48 |
2022-02-03 21:45:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:45:48 | ------------------------------------ 2022-02-03 21:45:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-03 21:45:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-11f8c83c-d425-4bfd-a14f-8d86c697cb45", "test", "node-7e7ce990-bf61-45ca-ac1f-7b3de9bc566f" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-02-03 21:45:48 |
2022-02-03 21:45:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:45:48 | ------------------------------------ 2022-02-03 21:45:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-7e7ce990-bf61-45ca-ac1f-7b3de9bc566f)" } 2022-02-03 21:45:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-02-03 21:45:47 |
2022-02-03 21:45:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:45:47 | ------------------------------------ 2022-02-03 21:45:47 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-7e7ce990-bf61-45ca-ac1f-7b3de9bc566f", "jids": [ "admin@test-domain.com" ] } 2022-02-03 21:45:47 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2022-02-03 21:45:48 |
2022-02-03 21:45:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:45:48 | ------------------------------------ 2022-02-03 21:45:48 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-7e7ce990-bf61-45ca-ac1f-7b3de9bc566f", "jids": [ "admin@test-domain.com" ] } 2022-02-03 21:45:48 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |