Test duration : 9.056s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.149s |
2022-02-15 22:03:12 |
2022-02-15 22:03:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-15 22:03:12 | ------------------------------------ 2022-02-15 22:03:12 | [Mutex] waiting for: [configured:node:node-79d23ce9-2ab2-4d77-91fd-00b5e390020d:node-1ec4e187-307c-4ae8-8c35-72add53c48fe] 2022-02-15 22:03:12 | [Mutex] received everything. 2022-02-15 22:03:12 | [Mutex] isItemNotified: configured:node:node-79d23ce9-2ab2-4d77-91fd-00b5e390020d:node-1ec4e187-307c-4ae8-8c35-72add53c48fe :: true 2022-02-15 22:03:13 | [Mutex] waiting for: [received:nodes:8088b2cc-1c43-49cd-950f-505964502ba0:localhost] 2022-02-15 22:03:13 | [Mutex] received everything. 2022-02-15 22:03:13 | [Mutex] isItemNotified: received:node:8088b2cc-1c43-49cd-950f-505964502ba0:localhost:node-79d23ce9-2ab2-4d77-91fd-00b5e390020d:Node 79d23ce9-2ab2-4d77-91fd-00b5e390020d :: true 2022-02-15 22:03:13 | [Mutex] waiting for: [received:nodes:18790ea6-802b-4d77-a62c-247111df418b:localhost] 2022-02-15 22:03:13 | [Mutex] waiting for: [received:nodes:18790ea6-802b-4d77-a62c-247111df418b:localhost] 2022-02-15 22:03:13 | [Mutex] waiting for: [received:nodes:18790ea6-802b-4d77-a62c-247111df418b:localhost] 2022-02-15 22:03:13 | [Mutex] received everything. 2022-02-15 22:03:13 | [Mutex] isItemNotified: received:node:18790ea6-802b-4d77-a62c-247111df418b:localhost:node-79d23ce9-2ab2-4d77-91fd-00b5e390020d:Node 79d23ce9-2ab2-4d77-91fd-00b5e390020d :: false |
createNodes | 1.696s |
2022-02-15 22:03:09 |
2022-02-15 22:03:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-15 22:03:09 | ------------------------------------ 2022-02-15 22:03:10 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-79d23ce9-2ab2-4d77-91fd-00b5e390020d", "pubsub#title": "Node 79d23ce9-2ab2-4d77-91fd-00b5e390020d" } 2022-02-15 22:03:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-15 22:03:11 | [Mutex] waiting for: [received:nodes:c29a1cad-31a5-4615-9582-3e1b4a21b2d0:localhost] 2022-02-15 22:03:11 | [Mutex] received everything. 2022-02-15 22:03:11 | [Mutex] isItemNotified: received:node:c29a1cad-31a5-4615-9582-3e1b4a21b2d0:localhost:node-79d23ce9-2ab2-4d77-91fd-00b5e390020d:Node 79d23ce9-2ab2-4d77-91fd-00b5e390020d :: true |
createSubnodes | 1.044s |
2022-02-15 22:03:11 |
2022-02-15 22:03:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-15 22:03:11 | ------------------------------------ 2022-02-15 22:03:11 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-1ec4e187-307c-4ae8-8c35-72add53c48fe", "pubsub#title": "Node 1ec4e187-307c-4ae8-8c35-72add53c48fe" } 2022-02-15 22:03:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-15 22:03:12 | [Mutex] waiting for: [received:nodes:8379f3d4-d605-4a27-93d5-905ab0fddfa5:localhost] 2022-02-15 22:03:12 | [Mutex] received everything. 2022-02-15 22:03:12 | [Mutex] isItemNotified: received:node:8379f3d4-d605-4a27-93d5-905ab0fddfa5:localhost:node-1ec4e187-307c-4ae8-8c35-72add53c48fe:Node 1ec4e187-307c-4ae8-8c35-72add53c48fe :: true |
deleteNodes | 1.029s |
2022-02-15 22:03:17 |
2022-02-15 22:03:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-15 22:03:17 | ------------------------------------ 2022-02-15 22:03:17 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1ec4e187-307c-4ae8-8c35-72add53c48fe" } 2022-02-15 22:03:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-15 22:03:18 | [Mutex] waiting for: [received:nodes:4d32a1a7-615b-49f1-bba0-125f3c51aa5b:localhost] 2022-02-15 22:03:18 | [Mutex] waiting for: [received:nodes:4d32a1a7-615b-49f1-bba0-125f3c51aa5b:localhost] 2022-02-15 22:03:18 | [Mutex] received everything. 2022-02-15 22:03:18 | [Mutex] isItemNotified: received:node:4d32a1a7-615b-49f1-bba0-125f3c51aa5b:localhost:node-1ec4e187-307c-4ae8-8c35-72add53c48fe:Node 1ec4e187-307c-4ae8-8c35-72add53c48fe :: false |
deleteSubnodes | 1.031s |
2022-02-15 22:03:16 |
2022-02-15 22:03:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-15 22:03:16 | ------------------------------------ 2022-02-15 22:03:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-79d23ce9-2ab2-4d77-91fd-00b5e390020d" } 2022-02-15 22:03:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-15 22:03:17 | [Mutex] waiting for: [received:nodes:b28ed941-2749-4fb5-9e50-f8544ad24232:localhost] 2022-02-15 22:03:17 | [Mutex] received everything. 2022-02-15 22:03:17 | [Mutex] isItemNotified: received:node:b28ed941-2749-4fb5-9e50-f8544ad24232:localhost:node-79d23ce9-2ab2-4d77-91fd-00b5e390020d:Node 79d23ce9-2ab2-4d77-91fd-00b5e390020d :: false 2022-02-15 22:03:17 | [Mutex] waiting for: [received:nodes:daed74f7-17aa-451c-94db-5f99682dc138:localhost] 2022-02-15 22:03:17 | [Mutex] received everything. 2022-02-15 22:03:17 | [Mutex] isItemNotified: received:node:daed74f7-17aa-451c-94db-5f99682dc138:localhost:node-79d23ce9-2ab2-4d77-91fd-00b5e390020d:Node 79d23ce9-2ab2-4d77-91fd-00b5e390020d :: false |
publishItemsToNodes | 0.048s |
2022-02-15 22:03:14 |
2022-02-15 22:03:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-15 22:03:14 | ------------------------------------ 2022-02-15 22:03:14 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-79d23ce9-2ab2-4d77-91fd-00b5e390020d", "entry": "<test>item-c93f2175-df9a-4db5-b30c-7292465a5133</test>", "item-id": "item-c93f2175-df9a-4db5-b30c-7292465a5133" } 2022-02-15 22:03:14 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c93f2175-df9a-4db5-b30c-7292465a5133" } 2022-02-15 22:03:14 | [Mutex] waiting for: [published:item:notifieditem-c93f2175-df9a-4db5-b30c-7292465a5133:admin@test-domain.com] 2022-02-15 22:03:14 | [Mutex] received everything. 2022-02-15 22:03:14 | [Mutex] isItemNotified: published:item:notifieditem-c93f2175-df9a-4db5-b30c-7292465a5133:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-02-15 22:03:15 |
2022-02-15 22:03:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-15 22:03:15 | ------------------------------------ 2022-02-15 22:03:15 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-79d23ce9-2ab2-4d77-91fd-00b5e390020d", "item-id": "item-c93f2175-df9a-4db5-b30c-7292465a5133" } 2022-02-15 22:03:15 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c93f2175-df9a-4db5-b30c-7292465a5133" } 2022-02-15 22:03:15 | [Mutex] received everything. 2022-02-15 22:03:15 | [Mutex] isItemNotified: retracted:item:notifieditem-c93f2175-df9a-4db5-b30c-7292465a5133:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.070s |
2022-02-15 22:03:14 |
2022-02-15 22:03:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-15 22:03:14 | ------------------------------------ 2022-02-15 22:03:14 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-79d23ce9-2ab2-4d77-91fd-00b5e390020d", "item-id": "item-c93f2175-df9a-4db5-b30c-7292465a5133" } 2022-02-15 22:03:15 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-79d23ce9-2ab2-4d77-91fd-00b5e390020d", "item-id": "item-c93f2175-df9a-4db5-b30c-7292465a5133", "item": [ "<item id=\"item-c93f2175-df9a-4db5-b30c-7292465a5133\"><test>item-c93f2175-df9a-4db5-b30c-7292465a5133</test></item>" ] } 2022-02-15 22:03:15 | [Mutex] notify: [retrieved:item:item-c93f2175-df9a-4db5-b30c-7292465a5133:payload-matches:true:localhost] 2022-02-15 22:03:15 | [Mutex] received everything. 2022-02-15 22:03:15 | [Mutex] isItemNotified: retrieved:item:item-c93f2175-df9a-4db5-b30c-7292465a5133:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2022-02-15 22:03:15 |
2022-02-15 22:03:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-15 22:03:15 | ------------------------------------ 2022-02-15 22:03:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-15 22:03:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-1ec4e187-307c-4ae8-8c35-72add53c48fe", "node-79d23ce9-2ab2-4d77-91fd-00b5e390020d" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-02-15 22:03:15 |
2022-02-15 22:03:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-15 22:03:15 | ------------------------------------ 2022-02-15 22:03:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-79d23ce9-2ab2-4d77-91fd-00b5e390020d)" } 2022-02-15 22:03:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2022-02-15 22:03:13 |
2022-02-15 22:03:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-15 22:03:13 | ------------------------------------ 2022-02-15 22:03:13 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-79d23ce9-2ab2-4d77-91fd-00b5e390020d", "jids": [ "admin@test-domain.com" ] } 2022-02-15 22:03:13 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2022-02-15 22:03:15 |
2022-02-15 22:03:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-15 22:03:15 | ------------------------------------ 2022-02-15 22:03:15 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-79d23ce9-2ab2-4d77-91fd-00b5e390020d", "jids": [ "admin@test-domain.com" ] } 2022-02-15 22:03:15 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |