Mercurial > hg > orthanc-tests
changeset 608:ba06331ac8dd
new test for issue #219
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 24 Jan 2024 13:23:29 +0100 |
parents | d743c210cbc8 |
children | a8e49d30f634 |
files | Plugins/DicomWeb/Run.py README |
diffstat | 2 files changed, 15 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/DicomWeb/Run.py Wed Jan 24 10:34:07 2024 +0100 +++ b/Plugins/DicomWeb/Run.py Wed Jan 24 13:23:29 2024 +0100 @@ -649,6 +649,18 @@ headers = { 'Accept' : 'nope' })) + def test_bugzilla_219(self): + # WADO-RS RetrieveFrames shall transcode ExplicitBigEndian to ExplicitLittleEndian + # https://orthanc.uclouvain.be/bugs/show_bug.cgi?id=219 + + if IsPluginVersionAbove(ORTHANC, "dicom-web", 1, 17, 0): + + UploadInstance(ORTHANC, 'TransferSyntaxes/1.2.840.10008.1.2.2.dcm') + + r = DoGetMultipart(ORTHANC, '/dicom-web/studies/1.2.840.113619.2.21.848.246800003.0.1952805748.3/series/1.2.840.113619.2.21.24680000.700.0.1952805748.3.0/instances/1.2.840.1136190195280574824680000700.3.0.1.19970424140438/frames/1', {}, True ) + self.assertIn('transfer-syntax=1.2.840.10008.1.2.1', r[0][1]['Content-Type']) + + def test_qido_fields(self): UploadInstance(ORTHANC, 'DummyCT.dcm')
--- a/README Wed Jan 24 10:34:07 2024 +0100 +++ b/README Wed Jan 24 13:23:29 2024 +0100 @@ -126,11 +126,11 @@ # python ./Tests/Run.py To run a single test with by fixing the Orthanc 0.8.6 executable path: -# python2 ./Tests/Run.py --orthanc /home/alain/Releases/Orthanc-0.8.6/Build/Orthanc Orthanc.test_peer_store_straight +# python2 ./Tests/Run.py --force --orthanc /home/alain/Releases/Orthanc-0.8.6/Build/Orthanc Orthanc.test_peer_store_straight To run a plugin test (no need for Orthanc 0.8.6) -# python ./Plugins/DicomWeb/Run.py -# python ./Plugins/DicomWeb/Run.py Orthanc.test_forwarded_headers +# python2 ./Plugins/DicomWeb/Run.py --force +# python2 ./Plugins/DicomWeb/Run.py --force Orthanc.test_forwarded_headers Use the flag "--help" to get the full list of arguments. These arguments will notably allow you to specify the network parameters