Test duration : 8.767s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.138s |
2022-05-24 23:15:17 |
2022-05-24 23:15:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 23:15:17 | ------------------------------------ 2022-05-24 23:15:17 | [Mutex] waiting for: [configured:node:node-be6f8026-8059-459a-8ae0-88e2a10ad798:node-ee222ecc-6936-47cb-9ed7-8f9ffb815c73] 2022-05-24 23:15:17 | [Mutex] received everything. 2022-05-24 23:15:17 | [Mutex] isItemNotified: configured:node:node-be6f8026-8059-459a-8ae0-88e2a10ad798:node-ee222ecc-6936-47cb-9ed7-8f9ffb815c73 :: true 2022-05-24 23:15:18 | [Mutex] waiting for: [received:nodes:6a75bd14-707a-40c3-bf8a-1d8238491793:localhost] 2022-05-24 23:15:18 | [Mutex] received everything. 2022-05-24 23:15:18 | [Mutex] isItemNotified: received:node:6a75bd14-707a-40c3-bf8a-1d8238491793:localhost:node-be6f8026-8059-459a-8ae0-88e2a10ad798:Node be6f8026-8059-459a-8ae0-88e2a10ad798 :: true 2022-05-24 23:15:18 | [Mutex] waiting for: [received:nodes:95b03b49-fdbe-4414-bba4-bae8a5d9e35e:localhost] 2022-05-24 23:15:18 | [Mutex] received everything. 2022-05-24 23:15:18 | [Mutex] isItemNotified: received:node:95b03b49-fdbe-4414-bba4-bae8a5d9e35e:localhost:node-be6f8026-8059-459a-8ae0-88e2a10ad798:Node be6f8026-8059-459a-8ae0-88e2a10ad798 :: false |
createNodes | 1.615s |
2022-05-24 23:15:14 |
2022-05-24 23:15:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 23:15:14 | ------------------------------------ 2022-05-24 23:15:15 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-be6f8026-8059-459a-8ae0-88e2a10ad798", "pubsub#title": "Node be6f8026-8059-459a-8ae0-88e2a10ad798" } 2022-05-24 23:15:15 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-24 23:15:16 | [Mutex] waiting for: [received:nodes:9c705476-d315-4b1d-a1d4-526966417940:localhost] 2022-05-24 23:15:16 | [Mutex] received everything. 2022-05-24 23:15:16 | [Mutex] isItemNotified: received:node:9c705476-d315-4b1d-a1d4-526966417940:localhost:node-be6f8026-8059-459a-8ae0-88e2a10ad798:Node be6f8026-8059-459a-8ae0-88e2a10ad798 :: true |
createSubnodes | 1.022s |
2022-05-24 23:15:16 |
2022-05-24 23:15:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 23:15:16 | ------------------------------------ 2022-05-24 23:15:16 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-ee222ecc-6936-47cb-9ed7-8f9ffb815c73", "pubsub#title": "Node ee222ecc-6936-47cb-9ed7-8f9ffb815c73" } 2022-05-24 23:15:16 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-24 23:15:17 | [Mutex] waiting for: [received:nodes:91694a2b-20f2-4167-8f35-1798d43134e4:localhost] 2022-05-24 23:15:17 | [Mutex] received everything. 2022-05-24 23:15:17 | [Mutex] isItemNotified: received:node:91694a2b-20f2-4167-8f35-1798d43134e4:localhost:node-ee222ecc-6936-47cb-9ed7-8f9ffb815c73:Node ee222ecc-6936-47cb-9ed7-8f9ffb815c73 :: true |
deleteNodes | 1.018s |
2022-05-24 23:15:21 |
2022-05-24 23:15:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 23:15:21 | ------------------------------------ 2022-05-24 23:15:21 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ee222ecc-6936-47cb-9ed7-8f9ffb815c73" } 2022-05-24 23:15:21 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-24 23:15:22 | [Mutex] waiting for: [received:nodes:16f130b3-ee3c-4fc1-8361-f91c402f9602:localhost] 2022-05-24 23:15:22 | [Mutex] waiting for: [received:nodes:16f130b3-ee3c-4fc1-8361-f91c402f9602:localhost] 2022-05-24 23:15:22 | [Mutex] waiting for: [received:nodes:16f130b3-ee3c-4fc1-8361-f91c402f9602:localhost] 2022-05-24 23:15:22 | [Mutex] received everything. 2022-05-24 23:15:22 | [Mutex] isItemNotified: received:node:16f130b3-ee3c-4fc1-8361-f91c402f9602:localhost:node-ee222ecc-6936-47cb-9ed7-8f9ffb815c73:Node ee222ecc-6936-47cb-9ed7-8f9ffb815c73 :: false |
deleteSubnodes | 1.034s |
2022-05-24 23:15:20 |
2022-05-24 23:15:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 23:15:20 | ------------------------------------ 2022-05-24 23:15:20 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-be6f8026-8059-459a-8ae0-88e2a10ad798" } 2022-05-24 23:15:20 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-24 23:15:21 | [Mutex] waiting for: [received:nodes:34d5b477-7810-4ecb-8662-c855ca73c480:localhost] 2022-05-24 23:15:21 | [Mutex] received everything. 2022-05-24 23:15:21 | [Mutex] isItemNotified: received:node:34d5b477-7810-4ecb-8662-c855ca73c480:localhost:node-be6f8026-8059-459a-8ae0-88e2a10ad798:Node be6f8026-8059-459a-8ae0-88e2a10ad798 :: false 2022-05-24 23:15:21 | [Mutex] waiting for: [received:nodes:925f0c77-ffc2-42f2-bc37-060de843faf1:localhost] 2022-05-24 23:15:21 | [Mutex] received everything. 2022-05-24 23:15:21 | [Mutex] isItemNotified: received:node:925f0c77-ffc2-42f2-bc37-060de843faf1:localhost:node-be6f8026-8059-459a-8ae0-88e2a10ad798:Node be6f8026-8059-459a-8ae0-88e2a10ad798 :: false |
publishItemsToNodes | 0.066s |
2022-05-24 23:15:19 |
2022-05-24 23:15:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 23:15:19 | ------------------------------------ 2022-05-24 23:15:19 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-be6f8026-8059-459a-8ae0-88e2a10ad798", "entry": "<test>item-ae76cce1-dcc8-4a79-bbcd-a10ab095c1d7</test>", "item-id": "item-ae76cce1-dcc8-4a79-bbcd-a10ab095c1d7" } 2022-05-24 23:15:19 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ae76cce1-dcc8-4a79-bbcd-a10ab095c1d7" } 2022-05-24 23:15:19 | [Mutex] waiting for: [published:item:notifieditem-ae76cce1-dcc8-4a79-bbcd-a10ab095c1d7:admin@test-domain.com] 2022-05-24 23:15:19 | [Mutex] received everything. 2022-05-24 23:15:19 | [Mutex] isItemNotified: published:item:notifieditem-ae76cce1-dcc8-4a79-bbcd-a10ab095c1d7:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2022-05-24 23:15:19 |
2022-05-24 23:15:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 23:15:19 | ------------------------------------ 2022-05-24 23:15:19 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-be6f8026-8059-459a-8ae0-88e2a10ad798", "item-id": "item-ae76cce1-dcc8-4a79-bbcd-a10ab095c1d7" } 2022-05-24 23:15:19 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ae76cce1-dcc8-4a79-bbcd-a10ab095c1d7" } 2022-05-24 23:15:19 | [Mutex] received everything. 2022-05-24 23:15:19 | [Mutex] isItemNotified: retracted:item:notifieditem-ae76cce1-dcc8-4a79-bbcd-a10ab095c1d7:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.044s |
2022-05-24 23:15:19 |
2022-05-24 23:15:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 23:15:19 | ------------------------------------ 2022-05-24 23:15:19 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-be6f8026-8059-459a-8ae0-88e2a10ad798", "item-id": "item-ae76cce1-dcc8-4a79-bbcd-a10ab095c1d7" } 2022-05-24 23:15:19 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-be6f8026-8059-459a-8ae0-88e2a10ad798", "item-id": "item-ae76cce1-dcc8-4a79-bbcd-a10ab095c1d7", "item": [ "<item id=\"item-ae76cce1-dcc8-4a79-bbcd-a10ab095c1d7\"><test>item-ae76cce1-dcc8-4a79-bbcd-a10ab095c1d7</test></item>" ] } 2022-05-24 23:15:19 | [Mutex] notify: [retrieved:item:item-ae76cce1-dcc8-4a79-bbcd-a10ab095c1d7:payload-matches:true:localhost] 2022-05-24 23:15:19 | [Mutex] received everything. 2022-05-24 23:15:19 | [Mutex] isItemNotified: retrieved:item:item-ae76cce1-dcc8-4a79-bbcd-a10ab095c1d7:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2022-05-24 23:15:19 |
2022-05-24 23:15:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 23:15:19 | ------------------------------------ 2022-05-24 23:15:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-24 23:15:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-ee222ecc-6936-47cb-9ed7-8f9ffb815c73", "node-be6f8026-8059-459a-8ae0-88e2a10ad798", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-05-24 23:15:19 |
2022-05-24 23:15:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 23:15:19 | ------------------------------------ 2022-05-24 23:15:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-be6f8026-8059-459a-8ae0-88e2a10ad798)" } 2022-05-24 23:15:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-05-24 23:15:18 |
2022-05-24 23:15:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 23:15:18 | ------------------------------------ 2022-05-24 23:15:18 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-be6f8026-8059-459a-8ae0-88e2a10ad798", "jids": [ "admin@test-domain.com" ] } 2022-05-24 23:15:18 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-05-24 23:15:19 |
2022-05-24 23:15:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 23:15:19 | ------------------------------------ 2022-05-24 23:15:19 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-be6f8026-8059-459a-8ae0-88e2a10ad798", "jids": [ "admin@test-domain.com" ] } 2022-05-24 23:15:19 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |