Fix the tests to really call the ElasticSearch's constructor with
no indexes configuration
Related to T3076
Differential D5196
Allow to instantiate the service with default indexes configuration vsellier on Mar 4 2021, 3:21 PM. Authored by
Details
Fix the tests to really call the ElasticSearch's constructor with Related to T3076
Diff Detail
Event TimelineComment Actions Build has FAILED Patch application report for D5196 (id=18598)Rebasing onto 9e0db2bd4f... Current branch diff-target is up to date. Changes applied before testcommit 9e89f2c6c89c177522084825d52f41cf31c49246 Author: Vincent SELLIER <vincent.sellier@softwareheritage.org> Date: Thu Mar 4 15:16:16 2021 +0100 Allow to instantiate the service with default indexes configuration Fix the tests to really call the ElasticSearch's constructor with no indexes configuration Related to T3076 Link to build: https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/103/ Comment Actions Remove the tests because the flask application is not reinitialized The package needs to be refactored to manage the app like in swh-objstorage/swh-vault Comment Actions Build is green Patch application report for D5196 (id=18603)Rebasing onto 9e0db2bd4f... Current branch diff-target is up to date. Changes applied before testcommit 84801b3036c20bd633d718c2069018786737fed7 Author: Vincent SELLIER <vincent.sellier@softwareheritage.org> Date: Thu Mar 4 15:50:38 2021 +0100 Allow to instantiate the service with default indexes configuration Related to T3076 See https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/104/ for more details. Comment Actions
yes, those module variable "app" and the decorators working alongside does not help. Agreed on the needed refactoring to make that code more testable and clear as the modules you mentioned. |