Test duration : 8.570s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.086s |
2022-07-03 22:52:24 |
2022-07-03 22:52:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-03 22:52:24 | ------------------------------------ 2022-07-03 22:52:24 | [Mutex] waiting for: [configured:node:node-5a25fb06-f6a4-4676-8450-fa94f0d07430:node-1d44fcef-c465-41b9-99a6-0b92963bae75] 2022-07-03 22:52:24 | [Mutex] received everything. 2022-07-03 22:52:24 | [Mutex] isItemNotified: configured:node:node-5a25fb06-f6a4-4676-8450-fa94f0d07430:node-1d44fcef-c465-41b9-99a6-0b92963bae75 :: true 2022-07-03 22:52:25 | [Mutex] waiting for: [received:nodes:a47727ee-8d0b-4434-aa5a-535e4d04e0b6:localhost] 2022-07-03 22:52:25 | [Mutex] received everything. 2022-07-03 22:52:25 | [Mutex] isItemNotified: received:node:a47727ee-8d0b-4434-aa5a-535e4d04e0b6:localhost:node-5a25fb06-f6a4-4676-8450-fa94f0d07430:Node 5a25fb06-f6a4-4676-8450-fa94f0d07430 :: true 2022-07-03 22:52:25 | [Mutex] waiting for: [received:nodes:3b6e0b73-7315-48e7-a0c0-199e02532fcb:localhost] 2022-07-03 22:52:25 | [Mutex] received everything. 2022-07-03 22:52:25 | [Mutex] isItemNotified: received:node:3b6e0b73-7315-48e7-a0c0-199e02532fcb:localhost:node-5a25fb06-f6a4-4676-8450-fa94f0d07430:Node 5a25fb06-f6a4-4676-8450-fa94f0d07430 :: false |
createNodes | 1.535s |
2022-07-03 22:52:21 |
2022-07-03 22:52:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-03 22:52:21 | ------------------------------------ 2022-07-03 22:52:22 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-5a25fb06-f6a4-4676-8450-fa94f0d07430", "pubsub#title": "Node 5a25fb06-f6a4-4676-8450-fa94f0d07430" } 2022-07-03 22:52:22 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-03 22:52:23 | [Mutex] waiting for: [received:nodes:77fa9354-6c88-44b5-9e55-25f774774143:localhost] 2022-07-03 22:52:23 | [Mutex] waiting for: [received:nodes:77fa9354-6c88-44b5-9e55-25f774774143:localhost] 2022-07-03 22:52:23 | [Mutex] waiting for: [received:nodes:77fa9354-6c88-44b5-9e55-25f774774143:localhost] 2022-07-03 22:52:23 | [Mutex] waiting for: [received:nodes:77fa9354-6c88-44b5-9e55-25f774774143:localhost] 2022-07-03 22:52:23 | [Mutex] received everything. 2022-07-03 22:52:23 | [Mutex] isItemNotified: received:node:77fa9354-6c88-44b5-9e55-25f774774143:localhost:node-5a25fb06-f6a4-4676-8450-fa94f0d07430:Node 5a25fb06-f6a4-4676-8450-fa94f0d07430 :: true |
createSubnodes | 1.029s |
2022-07-03 22:52:23 |
2022-07-03 22:52:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-03 22:52:23 | ------------------------------------ 2022-07-03 22:52:23 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-1d44fcef-c465-41b9-99a6-0b92963bae75", "pubsub#title": "Node 1d44fcef-c465-41b9-99a6-0b92963bae75" } 2022-07-03 22:52:23 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-03 22:52:24 | [Mutex] waiting for: [received:nodes:47a9ad15-4fba-4aed-b51d-fee63c6dc2df:localhost] 2022-07-03 22:52:24 | [Mutex] received everything. 2022-07-03 22:52:24 | [Mutex] isItemNotified: received:node:47a9ad15-4fba-4aed-b51d-fee63c6dc2df:localhost:node-1d44fcef-c465-41b9-99a6-0b92963bae75:Node 1d44fcef-c465-41b9-99a6-0b92963bae75 :: true |
deleteNodes | 1.028s |
2022-07-03 22:52:28 |
2022-07-03 22:52:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-03 22:52:28 | ------------------------------------ 2022-07-03 22:52:28 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1d44fcef-c465-41b9-99a6-0b92963bae75" } 2022-07-03 22:52:28 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-03 22:52:29 | [Mutex] waiting for: [received:nodes:4a1cc74d-e6a5-46f2-907b-2e044b000394:localhost] 2022-07-03 22:52:29 | [Mutex] waiting for: [received:nodes:4a1cc74d-e6a5-46f2-907b-2e044b000394:localhost] 2022-07-03 22:52:29 | [Mutex] waiting for: [received:nodes:4a1cc74d-e6a5-46f2-907b-2e044b000394:localhost] 2022-07-03 22:52:29 | [Mutex] received everything. 2022-07-03 22:52:29 | [Mutex] isItemNotified: received:node:4a1cc74d-e6a5-46f2-907b-2e044b000394:localhost:node-1d44fcef-c465-41b9-99a6-0b92963bae75:Node 1d44fcef-c465-41b9-99a6-0b92963bae75 :: false |
deleteSubnodes | 1.027s |
2022-07-03 22:52:27 |
2022-07-03 22:52:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-03 22:52:27 | ------------------------------------ 2022-07-03 22:52:27 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5a25fb06-f6a4-4676-8450-fa94f0d07430" } 2022-07-03 22:52:27 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-03 22:52:28 | [Mutex] waiting for: [received:nodes:8d99d9b8-eb3d-4a7b-9f52-54194ae22532:localhost] 2022-07-03 22:52:28 | [Mutex] waiting for: [received:nodes:8d99d9b8-eb3d-4a7b-9f52-54194ae22532:localhost] 2022-07-03 22:52:28 | [Mutex] waiting for: [received:nodes:8d99d9b8-eb3d-4a7b-9f52-54194ae22532:localhost] 2022-07-03 22:52:28 | [Mutex] received everything. 2022-07-03 22:52:28 | [Mutex] isItemNotified: received:node:8d99d9b8-eb3d-4a7b-9f52-54194ae22532:localhost:node-5a25fb06-f6a4-4676-8450-fa94f0d07430:Node 5a25fb06-f6a4-4676-8450-fa94f0d07430 :: false 2022-07-03 22:52:28 | [Mutex] waiting for: [received:nodes:9753dddd-bf6f-4635-aff4-7d67cce61105:localhost] 2022-07-03 22:52:28 | [Mutex] received everything. 2022-07-03 22:52:28 | [Mutex] isItemNotified: received:node:9753dddd-bf6f-4635-aff4-7d67cce61105:localhost:node-5a25fb06-f6a4-4676-8450-fa94f0d07430:Node 5a25fb06-f6a4-4676-8450-fa94f0d07430 :: false |
publishItemsToNodes | 0.040s |
2022-07-03 22:52:26 |
2022-07-03 22:52:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-03 22:52:26 | ------------------------------------ 2022-07-03 22:52:26 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-5a25fb06-f6a4-4676-8450-fa94f0d07430", "entry": "<test>item-e324e5b5-9940-4b55-b446-a819d3fe8566</test>", "item-id": "item-e324e5b5-9940-4b55-b446-a819d3fe8566" } 2022-07-03 22:52:26 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e324e5b5-9940-4b55-b446-a819d3fe8566" } 2022-07-03 22:52:26 | [Mutex] waiting for: [published:item:notifieditem-e324e5b5-9940-4b55-b446-a819d3fe8566:admin@test-domain.com] 2022-07-03 22:52:26 | [Mutex] received everything. 2022-07-03 22:52:26 | [Mutex] isItemNotified: published:item:notifieditem-e324e5b5-9940-4b55-b446-a819d3fe8566:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-07-03 22:52:26 |
2022-07-03 22:52:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-03 22:52:26 | ------------------------------------ 2022-07-03 22:52:26 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-5a25fb06-f6a4-4676-8450-fa94f0d07430", "item-id": "item-e324e5b5-9940-4b55-b446-a819d3fe8566" } 2022-07-03 22:52:26 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e324e5b5-9940-4b55-b446-a819d3fe8566" } 2022-07-03 22:52:26 | [Mutex] received everything. 2022-07-03 22:52:26 | [Mutex] isItemNotified: retracted:item:notifieditem-e324e5b5-9940-4b55-b446-a819d3fe8566:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.069s |
2022-07-03 22:52:26 |
2022-07-03 22:52:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-03 22:52:26 | ------------------------------------ 2022-07-03 22:52:26 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-5a25fb06-f6a4-4676-8450-fa94f0d07430", "item-id": "item-e324e5b5-9940-4b55-b446-a819d3fe8566" } 2022-07-03 22:52:26 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-5a25fb06-f6a4-4676-8450-fa94f0d07430", "item-id": "item-e324e5b5-9940-4b55-b446-a819d3fe8566", "item": [ "<item id=\"item-e324e5b5-9940-4b55-b446-a819d3fe8566\"><test>item-e324e5b5-9940-4b55-b446-a819d3fe8566</test></item>" ] } 2022-07-03 22:52:26 | [Mutex] notify: [retrieved:item:item-e324e5b5-9940-4b55-b446-a819d3fe8566:payload-matches:true:localhost] 2022-07-03 22:52:26 | [Mutex] received everything. 2022-07-03 22:52:26 | [Mutex] isItemNotified: retrieved:item:item-e324e5b5-9940-4b55-b446-a819d3fe8566:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-07-03 22:52:26 |
2022-07-03 22:52:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-03 22:52:26 | ------------------------------------ 2022-07-03 22:52:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-03 22:52:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-5a25fb06-f6a4-4676-8450-fa94f0d07430", "node-1d44fcef-c465-41b9-99a6-0b92963bae75", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-07-03 22:52:26 |
2022-07-03 22:52:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-03 22:52:26 | ------------------------------------ 2022-07-03 22:52:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-5a25fb06-f6a4-4676-8450-fa94f0d07430)" } 2022-07-03 22:52:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-07-03 22:52:25 |
2022-07-03 22:52:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-03 22:52:25 | ------------------------------------ 2022-07-03 22:52:25 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-5a25fb06-f6a4-4676-8450-fa94f0d07430", "jids": [ "admin@test-domain.com" ] } 2022-07-03 22:52:25 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-07-03 22:52:26 |
2022-07-03 22:52:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-03 22:52:26 | ------------------------------------ 2022-07-03 22:52:26 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-5a25fb06-f6a4-4676-8450-fa94f0d07430", "jids": [ "admin@test-domain.com" ] } 2022-07-03 22:52:26 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |