# HG changeset patch # User Alain Mazy # Date 1706099009 -3600 # Node ID ba06331ac8dd618a8832f27e1384e870118fe718 # Parent d743c210cbc8a4000f7a8463f8ca27fb2965f743 new test for issue 219 diff -r d743c210cbc8 -r ba06331ac8dd Plugins/DicomWeb/Run.py --- 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') diff -r d743c210cbc8 -r ba06331ac8dd README --- 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