Add functional tests cases which cover the client DICOM extension models and resource comments
Resource comments introduce changes to the Guru Client, Sonador IO client, and Orthanc/Sonador Cloud Plugin. Because of that, functional tests need to be added to the test suite which cover their base functionality. Functional tests in the Sonador client are implemented using the unittest
framework and placed in the ftests
module. The unit tests can be invoked using the Functional Test Runner.
Test cases:
- Upload a zip archive of data (use the same test archive that
tests_sonadorenv.SonadorEnvironmentTests.testenv_sonador_fileupload
uses) and create comments on the series once it is available in Sonador.- Wait for the upload to complete and for the series to become available in the API.
- Create a new comment (
series.create_comment
) - Retrieve the comment and verify that the text is the same as what was sent (
series.get_comment
) - Send an update to the comment, ensure that it was persisted (
series.get_comment.update
) - Remove the comment (
series.get_comment.delete
), ensure that subsequent requests toseries.get_coment
fail with a 404 error - Remove the series (
series.delete
) and ensure that subsequent requests to the series fail with 404