Test duration : 8.779s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.098s |
2022-10-13 23:06:09 |
2022-10-13 23:06:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 23:06:09 | ------------------------------------ 2022-10-13 23:06:09 | [Mutex] waiting for: [configured:node:node-61cdc20b-aab7-4112-9c31-1fa188733952:node-1513a44a-d6fb-4d0b-a149-40a30a204af0] 2022-10-13 23:06:09 | [Mutex] received everything. 2022-10-13 23:06:09 | [Mutex] isItemNotified: configured:node:node-61cdc20b-aab7-4112-9c31-1fa188733952:node-1513a44a-d6fb-4d0b-a149-40a30a204af0 :: true 2022-10-13 23:06:10 | [Mutex] waiting for: [received:nodes:296ff254-c029-4f42-a4bd-48240a9bc1ee:localhost] 2022-10-13 23:06:10 | [Mutex] received everything. 2022-10-13 23:06:10 | [Mutex] isItemNotified: received:node:296ff254-c029-4f42-a4bd-48240a9bc1ee:localhost:node-61cdc20b-aab7-4112-9c31-1fa188733952:Node 61cdc20b-aab7-4112-9c31-1fa188733952 :: true 2022-10-13 23:06:10 | [Mutex] waiting for: [received:nodes:2d2fff44-0739-4609-a63b-7fbced3affd2:localhost] 2022-10-13 23:06:10 | [Mutex] received everything. 2022-10-13 23:06:10 | [Mutex] isItemNotified: received:node:2d2fff44-0739-4609-a63b-7fbced3affd2:localhost:node-61cdc20b-aab7-4112-9c31-1fa188733952:Node 61cdc20b-aab7-4112-9c31-1fa188733952 :: false |
createNodes | 1.652s |
2022-10-13 23:06:06 |
2022-10-13 23:06:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 23:06:06 | ------------------------------------ 2022-10-13 23:06:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-61cdc20b-aab7-4112-9c31-1fa188733952", "pubsub#title": "Node 61cdc20b-aab7-4112-9c31-1fa188733952" } 2022-10-13 23:06:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-13 23:06:08 | [Mutex] waiting for: [received:nodes:5bf2454d-d132-4d12-9304-cc8484a1290c:localhost] 2022-10-13 23:06:08 | [Mutex] received everything. 2022-10-13 23:06:08 | [Mutex] isItemNotified: received:node:5bf2454d-d132-4d12-9304-cc8484a1290c:localhost:node-61cdc20b-aab7-4112-9c31-1fa188733952:Node 61cdc20b-aab7-4112-9c31-1fa188733952 :: true |
createSubnodes | 1.022s |
2022-10-13 23:06:08 |
2022-10-13 23:06:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 23:06:08 | ------------------------------------ 2022-10-13 23:06:08 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-1513a44a-d6fb-4d0b-a149-40a30a204af0", "pubsub#title": "Node 1513a44a-d6fb-4d0b-a149-40a30a204af0" } 2022-10-13 23:06:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-13 23:06:09 | [Mutex] waiting for: [received:nodes:bc6f7745-bf46-4eff-ba11-3e4866fc8c53:localhost] 2022-10-13 23:06:09 | [Mutex] waiting for: [received:nodes:bc6f7745-bf46-4eff-ba11-3e4866fc8c53:localhost] 2022-10-13 23:06:09 | [Mutex] received everything. 2022-10-13 23:06:09 | [Mutex] isItemNotified: received:node:bc6f7745-bf46-4eff-ba11-3e4866fc8c53:localhost:node-1513a44a-d6fb-4d0b-a149-40a30a204af0:Node 1513a44a-d6fb-4d0b-a149-40a30a204af0 :: true |
deleteNodes | 1.028s |
2022-10-13 23:06:14 |
2022-10-13 23:06:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 23:06:14 | ------------------------------------ 2022-10-13 23:06:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1513a44a-d6fb-4d0b-a149-40a30a204af0" } 2022-10-13 23:06:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-13 23:06:15 | [Mutex] waiting for: [received:nodes:832e1c5f-21b8-48ca-9896-2dd77d9fd23e:localhost] 2022-10-13 23:06:15 | [Mutex] waiting for: [received:nodes:832e1c5f-21b8-48ca-9896-2dd77d9fd23e:localhost] 2022-10-13 23:06:15 | [Mutex] received everything. 2022-10-13 23:06:15 | [Mutex] isItemNotified: received:node:832e1c5f-21b8-48ca-9896-2dd77d9fd23e:localhost:node-1513a44a-d6fb-4d0b-a149-40a30a204af0:Node 1513a44a-d6fb-4d0b-a149-40a30a204af0 :: false |
deleteSubnodes | 1.026s |
2022-10-13 23:06:13 |
2022-10-13 23:06:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 23:06:13 | ------------------------------------ 2022-10-13 23:06:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-61cdc20b-aab7-4112-9c31-1fa188733952" } 2022-10-13 23:06:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-13 23:06:14 | [Mutex] waiting for: [received:nodes:a3aac09d-711c-40a9-b2fb-d22e6cd5e399:localhost] 2022-10-13 23:06:14 | [Mutex] received everything. 2022-10-13 23:06:14 | [Mutex] isItemNotified: received:node:a3aac09d-711c-40a9-b2fb-d22e6cd5e399:localhost:node-61cdc20b-aab7-4112-9c31-1fa188733952:Node 61cdc20b-aab7-4112-9c31-1fa188733952 :: false 2022-10-13 23:06:14 | [Mutex] waiting for: [received:nodes:a41c3480-95be-4014-a436-5a932376db80:localhost] 2022-10-13 23:06:14 | [Mutex] received everything. 2022-10-13 23:06:14 | [Mutex] isItemNotified: received:node:a41c3480-95be-4014-a436-5a932376db80:localhost:node-61cdc20b-aab7-4112-9c31-1fa188733952:Node 61cdc20b-aab7-4112-9c31-1fa188733952 :: false |
publishItemsToNodes | 0.052s |
2022-10-13 23:06:11 |
2022-10-13 23:06:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 23:06:11 | ------------------------------------ 2022-10-13 23:06:11 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-61cdc20b-aab7-4112-9c31-1fa188733952", "entry": "<test>item-c4bf69db-5d75-4053-b810-ca883f9195ce</test>", "item-id": "item-c4bf69db-5d75-4053-b810-ca883f9195ce" } 2022-10-13 23:06:11 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c4bf69db-5d75-4053-b810-ca883f9195ce" } 2022-10-13 23:06:11 | [Mutex] waiting for: [published:item:notifieditem-c4bf69db-5d75-4053-b810-ca883f9195ce:admin@test-domain.com] 2022-10-13 23:06:11 | [Mutex] received everything. 2022-10-13 23:06:11 | [Mutex] isItemNotified: published:item:notifieditem-c4bf69db-5d75-4053-b810-ca883f9195ce:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-10-13 23:06:11 |
2022-10-13 23:06:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 23:06:11 | ------------------------------------ 2022-10-13 23:06:11 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-61cdc20b-aab7-4112-9c31-1fa188733952", "item-id": "item-c4bf69db-5d75-4053-b810-ca883f9195ce" } 2022-10-13 23:06:11 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c4bf69db-5d75-4053-b810-ca883f9195ce" } 2022-10-13 23:06:11 | [Mutex] received everything. 2022-10-13 23:06:11 | [Mutex] isItemNotified: retracted:item:notifieditem-c4bf69db-5d75-4053-b810-ca883f9195ce:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.058s |
2022-10-13 23:06:11 |
2022-10-13 23:06:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 23:06:11 | ------------------------------------ 2022-10-13 23:06:11 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-61cdc20b-aab7-4112-9c31-1fa188733952", "item-id": "item-c4bf69db-5d75-4053-b810-ca883f9195ce" } 2022-10-13 23:06:11 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-61cdc20b-aab7-4112-9c31-1fa188733952", "item-id": "item-c4bf69db-5d75-4053-b810-ca883f9195ce", "item": [ "<item id=\"item-c4bf69db-5d75-4053-b810-ca883f9195ce\"><test>item-c4bf69db-5d75-4053-b810-ca883f9195ce</test></item>" ] } 2022-10-13 23:06:11 | [Mutex] notify: [retrieved:item:item-c4bf69db-5d75-4053-b810-ca883f9195ce:payload-matches:true:localhost] 2022-10-13 23:06:11 | [Mutex] received everything. 2022-10-13 23:06:11 | [Mutex] isItemNotified: retrieved:item:item-c4bf69db-5d75-4053-b810-ca883f9195ce:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.053s |
2022-10-13 23:06:11 |
2022-10-13 23:06:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 23:06:11 | ------------------------------------ 2022-10-13 23:06:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-10-13 23:06:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-1513a44a-d6fb-4d0b-a149-40a30a204af0", "node-61cdc20b-aab7-4112-9c31-1fa188733952" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-10-13 23:06:11 |
2022-10-13 23:06:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 23:06:11 | ------------------------------------ 2022-10-13 23:06:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-61cdc20b-aab7-4112-9c31-1fa188733952)" } 2022-10-13 23:06:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2022-10-13 23:06:10 |
2022-10-13 23:06:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 23:06:10 | ------------------------------------ 2022-10-13 23:06:10 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-61cdc20b-aab7-4112-9c31-1fa188733952", "jids": [ "admin@test-domain.com" ] } 2022-10-13 23:06:10 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.072s |
2022-10-13 23:06:11 |
2022-10-13 23:06:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 23:06:11 | ------------------------------------ 2022-10-13 23:06:11 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-61cdc20b-aab7-4112-9c31-1fa188733952", "jids": [ "admin@test-domain.com" ] } 2022-10-13 23:06:12 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |