-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gateway tests: remove logic downloading public DV files for testing #443
base: master
Are you sure you want to change the base?
Conversation
Sounds like a good idea. Could we bundle a tiny text ome.xml image into the repo to test Channel wavelengths? Or maybe just skip it if no other option? |
0883934
to
2fd45b5
Compare
https://merge-ci.openmicroscopy.org/jenkins/job/OMERO-test-integration/297 3 failures this morning |
In addition to the 2 tests I reported initially which I was expecting to fail after my last changes, I could use some guidance on how you want to proceed with next steps. Translating the DV into OME-XML as suggested in #443 (comment) is an interesting idea as it would preserve the metadata. I had initially tried this route but realised these OME-XML files must be packaged as part of |
Adding a test resources similar to the one in omero-common could be an option but that means that we will have 2 packages providing test files. In terms of maintenance this is not ideal |
Excluding this PR until a solution is implemented |
Fine to exclude for now.
Extending fake reader is doable but it would be good to define exactly what needs to happen before committing to any work. One quick thought is that the reader could make additional use of the XMLMockObjects API to create richer OME-XML metadata. |
This is in the same spirit that what has been done in https://github.com/ome/openmicroscopy/blob/develop/components/tools/OmeroJava/test/integration/ModelMockFactory.java |
Opening as a draft initially as the initial implementation will fail some integration tests and this could use feedback from the OME team.
The OMERO.py gateway tests have historically been relying on downloading public DV samples as part of the fixture set-up. Recent connections issues between OME CI and OME downloads have exposed the fragility of this requirement.
This PR proposes to update the test set-up to use
fake
files exclusively and remove all downloads from an external source.Having tested it locally, most gateway tests passed except for a few specific ones which rely on the metadata fields within the sample files
Plane
elements using thePositionX
metadata of similarOn the other hand, there is no provisioning for storing the channel wavelength.