Test duration : 9.118s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.099s |
2020-09-18 11:05:18 |
2020-09-18 11:05:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:05:18 | ------------------------------------ 2020-09-18 11:05:18 | [Mutex] waiting for: [configured:node:node-4fbe198d-e45e-40df-b5f4-2a1288074b41:node-f72b8a7b-6c19-40fe-8ba7-f82c0ee58ecf] 2020-09-18 11:05:18 | [Mutex] received everything. 2020-09-18 11:05:18 | [Mutex] isItemNotified: configured:node:node-4fbe198d-e45e-40df-b5f4-2a1288074b41:node-f72b8a7b-6c19-40fe-8ba7-f82c0ee58ecf :: true 2020-09-18 11:05:19 | [Mutex] waiting for: [received:nodes:6992e0bc-f4e7-474a-bd51-d90f057a0d22:localhost] 2020-09-18 11:05:19 | [Mutex] received everything. 2020-09-18 11:05:19 | [Mutex] isItemNotified: received:node:6992e0bc-f4e7-474a-bd51-d90f057a0d22:localhost:node-4fbe198d-e45e-40df-b5f4-2a1288074b41:Node 4fbe198d-e45e-40df-b5f4-2a1288074b41 :: true 2020-09-18 11:05:19 | [Mutex] waiting for: [received:nodes:f9a9fc20-19a6-4859-85a7-1fbaeb0b01ba:localhost] 2020-09-18 11:05:19 | [Mutex] received everything. 2020-09-18 11:05:19 | [Mutex] isItemNotified: received:node:f9a9fc20-19a6-4859-85a7-1fbaeb0b01ba:localhost:node-4fbe198d-e45e-40df-b5f4-2a1288074b41:Node 4fbe198d-e45e-40df-b5f4-2a1288074b41 :: false |
createNodes | 1.768s |
2020-09-18 11:05:15 |
2020-09-18 11:05:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:05:15 | ------------------------------------ 2020-09-18 11:05:16 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-4fbe198d-e45e-40df-b5f4-2a1288074b41", "pubsub#title": "Node 4fbe198d-e45e-40df-b5f4-2a1288074b41" } 2020-09-18 11:05:16 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 11:05:17 | [Mutex] waiting for: [received:nodes:c66c6d61-134c-4c3a-9067-8a7a0c106536:localhost] 2020-09-18 11:05:17 | [Mutex] received everything. 2020-09-18 11:05:17 | [Mutex] isItemNotified: received:node:c66c6d61-134c-4c3a-9067-8a7a0c106536:localhost:node-4fbe198d-e45e-40df-b5f4-2a1288074b41:Node 4fbe198d-e45e-40df-b5f4-2a1288074b41 :: true |
createSubnodes | 1.041s |
2020-09-18 11:05:17 |
2020-09-18 11:05:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:05:17 | ------------------------------------ 2020-09-18 11:05:17 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-f72b8a7b-6c19-40fe-8ba7-f82c0ee58ecf", "pubsub#title": "Node f72b8a7b-6c19-40fe-8ba7-f82c0ee58ecf" } 2020-09-18 11:05:17 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 11:05:18 | [Mutex] waiting for: [received:nodes:17b0e55c-b173-48ff-9ce5-be070eff4a1d:localhost] 2020-09-18 11:05:18 | [Mutex] received everything. 2020-09-18 11:05:18 | [Mutex] isItemNotified: received:node:17b0e55c-b173-48ff-9ce5-be070eff4a1d:localhost:node-f72b8a7b-6c19-40fe-8ba7-f82c0ee58ecf:Node f72b8a7b-6c19-40fe-8ba7-f82c0ee58ecf :: true |
deleteNodes | 1.026s |
2020-09-18 11:05:22 |
2020-09-18 11:05:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:05:22 | ------------------------------------ 2020-09-18 11:05:22 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f72b8a7b-6c19-40fe-8ba7-f82c0ee58ecf" } 2020-09-18 11:05:22 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 11:05:23 | [Mutex] waiting for: [received:nodes:2d599287-96df-4053-8884-a6cc48507e7f:localhost] 2020-09-18 11:05:23 | [Mutex] received everything. 2020-09-18 11:05:23 | [Mutex] isItemNotified: received:node:2d599287-96df-4053-8884-a6cc48507e7f:localhost:node-f72b8a7b-6c19-40fe-8ba7-f82c0ee58ecf:Node f72b8a7b-6c19-40fe-8ba7-f82c0ee58ecf :: false |
deleteSubnodes | 1.038s |
2020-09-18 11:05:21 |
2020-09-18 11:05:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:05:21 | ------------------------------------ 2020-09-18 11:05:21 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4fbe198d-e45e-40df-b5f4-2a1288074b41" } 2020-09-18 11:05:21 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 11:05:22 | [Mutex] waiting for: [received:nodes:5064b8c9-b6fc-48aa-a409-5f5499c21854:localhost] 2020-09-18 11:05:22 | [Mutex] received everything. 2020-09-18 11:05:22 | [Mutex] isItemNotified: received:node:5064b8c9-b6fc-48aa-a409-5f5499c21854:localhost:node-4fbe198d-e45e-40df-b5f4-2a1288074b41:Node 4fbe198d-e45e-40df-b5f4-2a1288074b41 :: false 2020-09-18 11:05:22 | [Mutex] waiting for: [received:nodes:e66cdf0b-e595-4f00-a7f5-a5e5125ef56f:localhost] 2020-09-18 11:05:22 | [Mutex] received everything. 2020-09-18 11:05:22 | [Mutex] isItemNotified: received:node:e66cdf0b-e595-4f00-a7f5-a5e5125ef56f:localhost:node-4fbe198d-e45e-40df-b5f4-2a1288074b41:Node 4fbe198d-e45e-40df-b5f4-2a1288074b41 :: false |
publishItemsToNodes | 0.059s |
2020-09-18 11:05:20 |
2020-09-18 11:05:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:05:20 | ------------------------------------ 2020-09-18 11:05:20 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-4fbe198d-e45e-40df-b5f4-2a1288074b41", "entry": "<test>item-f77f68d8-4473-4281-81e4-c154c7c60157</test>", "item-id": "item-f77f68d8-4473-4281-81e4-c154c7c60157" } 2020-09-18 11:05:20 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f77f68d8-4473-4281-81e4-c154c7c60157" } 2020-09-18 11:05:20 | [Mutex] waiting for: [published:item:notifieditem-f77f68d8-4473-4281-81e4-c154c7c60157:admin@test-domain.com] 2020-09-18 11:05:20 | [Mutex] received everything. 2020-09-18 11:05:20 | [Mutex] isItemNotified: published:item:notifieditem-f77f68d8-4473-4281-81e4-c154c7c60157:admin@test-domain.com :: true |
retractItemsFromNodes | 0.090s |
2020-09-18 11:05:20 |
2020-09-18 11:05:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:05:20 | ------------------------------------ 2020-09-18 11:05:20 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-4fbe198d-e45e-40df-b5f4-2a1288074b41", "item-id": "item-f77f68d8-4473-4281-81e4-c154c7c60157" } 2020-09-18 11:05:20 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f77f68d8-4473-4281-81e4-c154c7c60157" } 2020-09-18 11:05:20 | [Mutex] received everything. 2020-09-18 11:05:20 | [Mutex] isItemNotified: retracted:item:notifieditem-f77f68d8-4473-4281-81e4-c154c7c60157:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.086s |
2020-09-18 11:05:20 |
2020-09-18 11:05:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:05:20 | ------------------------------------ 2020-09-18 11:05:20 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-4fbe198d-e45e-40df-b5f4-2a1288074b41", "item-id": "item-f77f68d8-4473-4281-81e4-c154c7c60157" } 2020-09-18 11:05:20 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-4fbe198d-e45e-40df-b5f4-2a1288074b41", "item-id": "item-f77f68d8-4473-4281-81e4-c154c7c60157", "item": [ "<item id=\"item-f77f68d8-4473-4281-81e4-c154c7c60157\"><test>item-f77f68d8-4473-4281-81e4-c154c7c60157</test></item>" ] } 2020-09-18 11:05:20 | [Mutex] notify: [retrieved:item:item-f77f68d8-4473-4281-81e4-c154c7c60157:payload-matches:true:localhost] 2020-09-18 11:05:20 | [Mutex] received everything. 2020-09-18 11:05:20 | [Mutex] isItemNotified: retrieved:item:item-f77f68d8-4473-4281-81e4-c154c7c60157:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-09-18 11:05:20 |
2020-09-18 11:05:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:05:20 | ------------------------------------ 2020-09-18 11:05:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-18 11:05:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-4fbe198d-e45e-40df-b5f4-2a1288074b41", "node-f72b8a7b-6c19-40fe-8ba7-f82c0ee58ecf" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-09-18 11:05:20 |
2020-09-18 11:05:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:05:20 | ------------------------------------ 2020-09-18 11:05:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-4fbe198d-e45e-40df-b5f4-2a1288074b41)" } 2020-09-18 11:05:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.020s |
2020-09-18 11:05:19 |
2020-09-18 11:05:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:05:19 | ------------------------------------ 2020-09-18 11:05:19 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-4fbe198d-e45e-40df-b5f4-2a1288074b41", "jids": [ "admin@test-domain.com" ] } 2020-09-18 11:05:19 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.058s |
2020-09-18 11:05:20 |
2020-09-18 11:05:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:05:20 | ------------------------------------ 2020-09-18 11:05:20 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-4fbe198d-e45e-40df-b5f4-2a1288074b41", "jids": [ "admin@test-domain.com" ] } 2020-09-18 11:05:20 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |