Mercurial > hg > orthanc-tests
comparison Plugins/DicomWeb/Run.py @ 533:c5291d97ed54
fix
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 25 Apr 2023 08:27:40 +0200 |
parents | f96c023ce523 |
children | 23d577e9a32f |
comparison
equal
deleted
inserted
replaced
532:f96c023ce523 | 533:c5291d97ed54 |
---|---|
1651 def test_forwarded_headers(self): | 1651 def test_forwarded_headers(self): |
1652 study = UploadInstance(ORTHANC, 'ColorTestImageJ.dcm')['ParentStudy'] | 1652 study = UploadInstance(ORTHANC, 'ColorTestImageJ.dcm')['ParentStudy'] |
1653 studyId = DoGet(ORTHANC, '/studies/%s' % study)['MainDicomTags']['StudyInstanceUID'] | 1653 studyId = DoGet(ORTHANC, '/studies/%s' % study)['MainDicomTags']['StudyInstanceUID'] |
1654 | 1654 |
1655 m = DoGet(ORTHANC, '/dicom-web/studies/%s/metadata' % studyId) | 1655 m = DoGet(ORTHANC, '/dicom-web/studies/%s/metadata' % studyId) |
1656 self.assertIn("http://localhost:8042/dicom-web", m[0][u'7FE00010']['BulkDataURI']) | 1656 self.assertIn(ORTHANC['Url'], m[0][u'7FE00010']['BulkDataURI']) |
1657 | 1657 |
1658 m = DoGet(ORTHANC, '/dicom-web/studies/%s/metadata' % studyId, headers= { | 1658 m = DoGet(ORTHANC, '/dicom-web/studies/%s/metadata' % studyId, headers= { |
1659 'host': 'my-domain' | 1659 'host': 'my-domain' |
1660 }) | 1660 }) |
1661 self.assertIn("http://my-domain/dicom-web", m[0][u'7FE00010']['BulkDataURI']) | 1661 self.assertIn("http://my-domain/dicom-web", m[0][u'7FE00010']['BulkDataURI']) |