-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
3 changed files
with
16 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# After pixl has run this script will query the orthanc-anon REST API to check | ||
# that the correct number of instances have been received. | ||
|
||
import json | ||
import shlex | ||
import subprocess | ||
|
||
|
||
instances_cmd = shlex.split('docker exec -it system-test-orthanc-anon-1 curl -u "orthanc_anon_username:orthanc_anon_password" http://orthanc-anon:8042/instances') | ||
instances_output = subprocess.run(instances_cmd, capture_output=True, check=True, text=True) | ||
instances = json.loads(instances_output.stdout) | ||
print("orthanc-anon instances:", instances) | ||
assert len(instances) == 2 |
This file was deleted.
Oops, something went wrong.