Before running the tests, make sure every time that the fields IsCandidateInfoValidated and IsTarchiveValidated has been set to 0 if the pipeline was already run on the upload you are testing.
[x] run run_dicom_archive_validation.py -h
=> should print the help of the script. Make sure the help documentation is up to date.
[x] run run_dicom_archive_validation.py -p database_config.py -u <UPLOADID>
=> should return [ERROR ] argument --tarchive_path is required and the script help details
[x] run run_dicom_archive_validation.py -p database_config.py -t <TARCHIVE PATH>
=> should return [ERROR ] argument --upload_id is required and the script help details
[x] run run_dicom_archive_validation.py -p database_config.py -t <INVALID PATH> -u <VALID UPLOADID>
=> should return [ERROR ] <INVALID PATH> does not exist. Please provide a valid path for --tarchive_path
[x] run run_dicom_archive_validation.py -p database_config.py -u <UPLOADID> -t <TARCHIVE PATH> using valid upload ID and a valid tarchive path but wrong combination of upload ID and tarchive path (a.k.a. tarchive path not corresponding to the tarchive linked to the upload ID)
=> should return [ERROR ] UploadID <UPLOAD ID> and ArchiveLocation <TARCHIVE PATH> do not refer to the same upload
[x] run run_dicom_archive_validation.py -p database_config.py -u <UPLOADID> -t <TARCHIVE PATH> using inexistant upload ID and random tarchive path
=> should return [ERROR ] Did not find an entry in mri_upload associated with 'UploadID' 16666
[x] run run_dicom_archive_validation.py -p database_config.py -u <UPLOADID> -t <TARCHIVE PATH> using valid upload ID, tarchive path and valid combination of upload ID and tarchive path
=> run smoothly and update fields IsTarchiveValidated and IsCandidateInfoValidated to 1 in the mri_upload table for the Upload ID that has been run.
Before running the tests, make sure every time that the fields
IsCandidateInfoValidated
andIsTarchiveValidated
has been set to0
if the pipeline was already run on the upload you are testing.run_dicom_archive_validation.py -h
=> should print the help of the script. Make sure the help documentation is up to date.run_dicom_archive_validation.py -p database_config.py -u <UPLOADID>
=> should return[ERROR ] argument --tarchive_path is required
and the script help detailsrun_dicom_archive_validation.py -p database_config.py -t <TARCHIVE PATH>
=> should return[ERROR ] argument --upload_id is required
and the script help detailsrun_dicom_archive_validation.py -p database_config.py -t <INVALID PATH> -u <VALID UPLOADID>
=> should return[ERROR ] <INVALID PATH> does not exist. Please provide a valid path for --tarchive_path
run_dicom_archive_validation.py -p database_config.py -u <UPLOADID> -t <TARCHIVE PATH>
using valid upload ID and a valid tarchive path but wrong combination of upload ID and tarchive path (a.k.a. tarchive path not corresponding to the tarchive linked to the upload ID) => should return[ERROR ] UploadID <UPLOAD ID> and ArchiveLocation <TARCHIVE PATH> do not refer to the same upload
run_dicom_archive_validation.py -p database_config.py -u <UPLOADID> -t <TARCHIVE PATH>
using inexistant upload ID and random tarchive path => should return[ERROR ] Did not find an entry in mri_upload associated with 'UploadID' 16666
run_dicom_archive_validation.py -p database_config.py -u <UPLOADID> -t <TARCHIVE PATH>
using valid upload ID, tarchive path and valid combination of upload ID and tarchive path=> run smoothly and update fields
IsTarchiveValidated
andIsCandidateInfoValidated
to 1 in themri_upload
table for the Upload ID that has been run.Issues found