Skip to content
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

Integration test for run_dicom_archive_loader.py #1203

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

maximemulder
Copy link
Contributor

@maximemulder maximemulder commented Oct 18, 2024

This PR mounts the S3 bucket in CI and adds an integration test for run_dicom_archive_loader.py. The design can be improved, notably by testing that the correct data has been added to the database and storing the S3 credentials as secrets (though it is read-only on public data so nothing too dramatic for now), but it works !

@maximemulder maximemulder added the A-CI Area: CI. Issues and pull requests related to CI, including automated tests and static checks label Oct 18, 2024
@maximemulder maximemulder changed the title Use Raisinbread tests in integration tests Use Raisinbread files in integration tests Oct 18, 2024
@maximemulder maximemulder changed the title Use Raisinbread files in integration tests Use imaging files in integration tests Oct 18, 2024
@maximemulder maximemulder force-pushed the 2024-10-18_integration-s3 branch 25 times, most recently from 63dc912 to 25bd52d Compare October 18, 2024 22:15
@maximemulder maximemulder force-pushed the 2024-10-18_integration-s3 branch 21 times, most recently from ec5068a to f0c2278 Compare October 31, 2024 19:36
@maximemulder maximemulder changed the title Use imaging files in integration tests Integration test for run_dicom_archive_loader.py Oct 31, 2024
@maximemulder
Copy link
Contributor Author

Still kind of barebones but better than nothing for now IMO.

@maximemulder maximemulder marked this pull request as ready for review November 6, 2024 21:07
Comment on lines 16 to 17
BUCKET_ACCESS_KEY: lorisadmin-ro
BUCKET_SECRET_KEY: Tn=qP3LupmXnMuc
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maximemulder could this be secrets variables? I know this is for read-only data but still, not ideal to get credentials in the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CI Area: CI. Issues and pull requests related to CI, including automated tests and static checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants