Test duration : 9.047s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.088s |
2021-05-25 22:59:16 |
2021-05-25 22:59:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:59:16 | ------------------------------------ 2021-05-25 22:59:16 | [Mutex] waiting for: [configured:node:node-00e8a192-983f-43e2-ac26-3fc94f7a08b2:node-02c49c92-4d60-46f6-8b82-4a159bee9cfe] 2021-05-25 22:59:16 | [Mutex] received everything. 2021-05-25 22:59:16 | [Mutex] isItemNotified: configured:node:node-00e8a192-983f-43e2-ac26-3fc94f7a08b2:node-02c49c92-4d60-46f6-8b82-4a159bee9cfe :: true 2021-05-25 22:59:17 | [Mutex] waiting for: [received:nodes:af042935-535a-4351-bb8c-b56582a2797b:localhost] 2021-05-25 22:59:17 | [Mutex] received everything. 2021-05-25 22:59:17 | [Mutex] isItemNotified: received:node:af042935-535a-4351-bb8c-b56582a2797b:localhost:node-00e8a192-983f-43e2-ac26-3fc94f7a08b2:Node 00e8a192-983f-43e2-ac26-3fc94f7a08b2 :: true 2021-05-25 22:59:17 | [Mutex] waiting for: [received:nodes:0bede196-1435-4c69-a25a-8942c1091a55:localhost] 2021-05-25 22:59:17 | [Mutex] received everything. 2021-05-25 22:59:17 | [Mutex] isItemNotified: received:node:0bede196-1435-4c69-a25a-8942c1091a55:localhost:node-00e8a192-983f-43e2-ac26-3fc94f7a08b2:Node 00e8a192-983f-43e2-ac26-3fc94f7a08b2 :: false |
createNodes | 1.719s |
2021-05-25 22:59:13 |
2021-05-25 22:59:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:59:13 | ------------------------------------ 2021-05-25 22:59:14 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-00e8a192-983f-43e2-ac26-3fc94f7a08b2", "pubsub#title": "Node 00e8a192-983f-43e2-ac26-3fc94f7a08b2" } 2021-05-25 22:59:14 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-25 22:59:15 | [Mutex] waiting for: [received:nodes:a1c7b264-cfcc-4115-b9b8-ab68f02d76bb:localhost] 2021-05-25 22:59:15 | [Mutex] waiting for: [received:nodes:a1c7b264-cfcc-4115-b9b8-ab68f02d76bb:localhost] 2021-05-25 22:59:15 | [Mutex] waiting for: [received:nodes:a1c7b264-cfcc-4115-b9b8-ab68f02d76bb:localhost] 2021-05-25 22:59:15 | [Mutex] received everything. 2021-05-25 22:59:15 | [Mutex] isItemNotified: received:node:a1c7b264-cfcc-4115-b9b8-ab68f02d76bb:localhost:node-00e8a192-983f-43e2-ac26-3fc94f7a08b2:Node 00e8a192-983f-43e2-ac26-3fc94f7a08b2 :: true |
createSubnodes | 1.031s |
2021-05-25 22:59:15 |
2021-05-25 22:59:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:59:15 | ------------------------------------ 2021-05-25 22:59:15 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-02c49c92-4d60-46f6-8b82-4a159bee9cfe", "pubsub#title": "Node 02c49c92-4d60-46f6-8b82-4a159bee9cfe" } 2021-05-25 22:59:15 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-25 22:59:16 | [Mutex] waiting for: [received:nodes:330a4030-c2d1-489a-addc-03494d6bd148:localhost] 2021-05-25 22:59:16 | [Mutex] received everything. 2021-05-25 22:59:16 | [Mutex] isItemNotified: received:node:330a4030-c2d1-489a-addc-03494d6bd148:localhost:node-02c49c92-4d60-46f6-8b82-4a159bee9cfe:Node 02c49c92-4d60-46f6-8b82-4a159bee9cfe :: true |
deleteNodes | 1.024s |
2021-05-25 22:59:21 |
2021-05-25 22:59:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:59:21 | ------------------------------------ 2021-05-25 22:59:21 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-02c49c92-4d60-46f6-8b82-4a159bee9cfe" } 2021-05-25 22:59:21 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-25 22:59:22 | [Mutex] waiting for: [received:nodes:e9b243d2-f779-429a-bb01-c2b81425077a:localhost] 2021-05-25 22:59:22 | [Mutex] waiting for: [received:nodes:e9b243d2-f779-429a-bb01-c2b81425077a:localhost] 2021-05-25 22:59:22 | [Mutex] received everything. 2021-05-25 22:59:22 | [Mutex] isItemNotified: received:node:e9b243d2-f779-429a-bb01-c2b81425077a:localhost:node-02c49c92-4d60-46f6-8b82-4a159bee9cfe:Node 02c49c92-4d60-46f6-8b82-4a159bee9cfe :: false |
deleteSubnodes | 1.032s |
2021-05-25 22:59:20 |
2021-05-25 22:59:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:59:20 | ------------------------------------ 2021-05-25 22:59:20 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-00e8a192-983f-43e2-ac26-3fc94f7a08b2" } 2021-05-25 22:59:20 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-25 22:59:21 | [Mutex] waiting for: [received:nodes:49f11058-df78-442d-ab4f-a6cadedcfb07:localhost] 2021-05-25 22:59:21 | [Mutex] waiting for: [received:nodes:49f11058-df78-442d-ab4f-a6cadedcfb07:localhost] 2021-05-25 22:59:21 | [Mutex] received everything. 2021-05-25 22:59:21 | [Mutex] isItemNotified: received:node:49f11058-df78-442d-ab4f-a6cadedcfb07:localhost:node-00e8a192-983f-43e2-ac26-3fc94f7a08b2:Node 00e8a192-983f-43e2-ac26-3fc94f7a08b2 :: false 2021-05-25 22:59:21 | [Mutex] waiting for: [received:nodes:86919d7b-3fc2-4906-9cdd-29cc61d253a5:localhost] 2021-05-25 22:59:21 | [Mutex] received everything. 2021-05-25 22:59:21 | [Mutex] isItemNotified: received:node:86919d7b-3fc2-4906-9cdd-29cc61d253a5:localhost:node-00e8a192-983f-43e2-ac26-3fc94f7a08b2:Node 00e8a192-983f-43e2-ac26-3fc94f7a08b2 :: false |
publishItemsToNodes | 0.051s |
2021-05-25 22:59:18 |
2021-05-25 22:59:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:59:18 | ------------------------------------ 2021-05-25 22:59:18 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-00e8a192-983f-43e2-ac26-3fc94f7a08b2", "entry": "<test>item-f7fc7824-3404-43ea-a581-3fb7be984c68</test>", "item-id": "item-f7fc7824-3404-43ea-a581-3fb7be984c68" } 2021-05-25 22:59:18 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f7fc7824-3404-43ea-a581-3fb7be984c68" } 2021-05-25 22:59:18 | [Mutex] received everything. 2021-05-25 22:59:18 | [Mutex] isItemNotified: published:item:notifieditem-f7fc7824-3404-43ea-a581-3fb7be984c68:admin@test-domain.com :: true |
retractItemsFromNodes | 0.071s |
2021-05-25 22:59:18 |
2021-05-25 22:59:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:59:18 | ------------------------------------ 2021-05-25 22:59:18 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-00e8a192-983f-43e2-ac26-3fc94f7a08b2", "item-id": "item-f7fc7824-3404-43ea-a581-3fb7be984c68" } 2021-05-25 22:59:19 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f7fc7824-3404-43ea-a581-3fb7be984c68" } 2021-05-25 22:59:19 | [Mutex] received everything. 2021-05-25 22:59:19 | [Mutex] isItemNotified: retracted:item:notifieditem-f7fc7824-3404-43ea-a581-3fb7be984c68:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.059s |
2021-05-25 22:59:18 |
2021-05-25 22:59:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:59:18 | ------------------------------------ 2021-05-25 22:59:18 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-00e8a192-983f-43e2-ac26-3fc94f7a08b2", "item-id": "item-f7fc7824-3404-43ea-a581-3fb7be984c68" } 2021-05-25 22:59:18 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-00e8a192-983f-43e2-ac26-3fc94f7a08b2", "item-id": "item-f7fc7824-3404-43ea-a581-3fb7be984c68", "item": [ "<item id=\"item-f7fc7824-3404-43ea-a581-3fb7be984c68\"><test>item-f7fc7824-3404-43ea-a581-3fb7be984c68</test></item>" ] } 2021-05-25 22:59:18 | [Mutex] notify: [retrieved:item:item-f7fc7824-3404-43ea-a581-3fb7be984c68:payload-matches:true:localhost] 2021-05-25 22:59:18 | [Mutex] received everything. 2021-05-25 22:59:18 | [Mutex] isItemNotified: retrieved:item:item-f7fc7824-3404-43ea-a581-3fb7be984c68:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2021-05-25 22:59:18 |
2021-05-25 22:59:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:59:18 | ------------------------------------ 2021-05-25 22:59:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-05-25 22:59:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-00e8a192-983f-43e2-ac26-3fc94f7a08b2", "node-02c49c92-4d60-46f6-8b82-4a159bee9cfe" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-05-25 22:59:18 |
2021-05-25 22:59:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:59:18 | ------------------------------------ 2021-05-25 22:59:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-00e8a192-983f-43e2-ac26-3fc94f7a08b2)" } 2021-05-25 22:59:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2021-05-25 22:59:17 |
2021-05-25 22:59:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:59:17 | ------------------------------------ 2021-05-25 22:59:17 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-00e8a192-983f-43e2-ac26-3fc94f7a08b2", "jids": [ "admin@test-domain.com" ] } 2021-05-25 22:59:17 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.096s |
2021-05-25 22:59:19 |
2021-05-25 22:59:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:59:19 | ------------------------------------ 2021-05-25 22:59:19 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-00e8a192-983f-43e2-ac26-3fc94f7a08b2", "jids": [ "admin@test-domain.com" ] } 2021-05-25 22:59:19 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |