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

More accurate orthanc-anon system test #272

Merged
merged 12 commits into from
Jan 31, 2024

Conversation

jstutters
Copy link
Contributor

Fixes some problems with the DICOM anonymisation process in the test environment (missing envvars, persisting of hashes to DB) and ensures that orthanc-anon has received and stored the test DICOMs.

Required to run tests that hit pixl_dcmd.
pixl_dcmd needs these to persist anonmyised identifierst to postgres.
This fixes an error when trying to store the hash in the database and aligns
with what the hasher endpoints return.
The existing test script checked the orthanc-anon log for receipt of a DICOM but
this was not catching that the received DICOM was not being stored due problems
during anonymisation.  The new check script queries the orthanc-anon API to make
sure it has received and stored the test DICOMs.
Copy link
Contributor

@stefpiatek stefpiatek left a comment

Choose a reason for hiding this comment

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

Delightful, thanks Jon! Looks like you'll have to update the mocks and then hopefully should be good to go

pixl_dcmd/src/pixl_dcmd/main.py Outdated Show resolved Hide resolved
docker-compose.yml Show resolved Hide resolved
test/scripts/check_entry_in_orthanc_anon.py Outdated Show resolved Hide resolved
@jstutters
Copy link
Contributor Author

system-test runs to completion outside Actions so speculative commits incoming.

@jstutters jstutters self-assigned this Jan 31, 2024
@jstutters jstutters merged commit f0c33e0 into main Jan 31, 2024
8 checks passed
@jstutters jstutters deleted the jstutters/205-orthanc-anon-system-test branch January 31, 2024 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants