Add functional test cases which cover the DICOMweb comments interface
The Sonador Orthanc Cloud Plugin provides a DICOM extension model for comments (refer to orthanc-sonador#28 (closed) for schema). The primary implementation and associated test cases (sonador-client#22 (closed)) utilize the Orthanc native APIs, but to be usable from the OHIF and the new study list's comment interface (refer to imaging-development-env#40 and ohif-viewers#50) will require a DICOMweb interface (refer to orthanc-sonador#31 (closed)).
Because the interface is an important part of Sonador's frontend, the backend should be covered by a functional test-cases.
Test cases:
- Upload a zip archive of data and add a comment to the resulting resource.
- Utilize the DICOMweb upload endpoint.
- Wait for the upload to complete and for the series to become available in the API.
- Create a new comment via a POST request to the DICOMweb compatible endpoint.
- Send an update to the comment via a PUT request to the DICOMweb compatible endpoint.
- Remove the comment via a DELETE request.
- Remove the series.
Implementation notes:
-
The test methods should be implemented directly via theImplemented via a method switch to allow for the user to specify which Sonador API should be used (Orthanc internal or DICOMweb).requests
module, rather than via thesonador
client. There are already test cases which cover the comments implementation in the Sonador IO client. The tests should be added to a new test module within the functional test suite. Maybe calledintegration
?