diff Plugins/DicomWeb/Run.py @ 278:514785dacd6d

fix dicomweb tests with debian
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 04 Mar 2020 14:09:15 +0100
parents 95c47602990c
children 7fa5c7a03137
line wrap: on
line diff
--- a/Plugins/DicomWeb/Run.py	Wed Mar 04 13:10:29 2020 +0100
+++ b/Plugins/DicomWeb/Run.py	Wed Mar 04 14:09:15 2020 +0100
@@ -450,7 +450,7 @@
         self.assertEqual(1, len(a))
         url = a[0]['00081190']['Value'][0]
 
-        prefix = 'http://localhost:8042'
+        prefix = 'http://%s:%s' % (args.server, args.rest)
         self.assertTrue(url.startswith(prefix))
 
         b = DoGet(ORTHANC, url[len(prefix):] + '/metadata')
@@ -488,7 +488,7 @@
         self.assertEqual(1, len(a))
 
         BASE_URI = '/dicom-web/studies/%s/series/%s/instances/%s/bulk' % (study, series, sop)
-        BASE_URL = 'http://localhost:8042%s' % BASE_URI
+        BASE_URL = 'http://%s:%s%s' % (args.server, args.rest, BASE_URI)
 
         self.assertEqual(2, len(a[0]['60031010']['Value']))
         CheckBulk(a[0]['60031010']['Value'][0]['60031011'], '%s/60031010/1/60031011' % BASE_URL)
@@ -579,7 +579,7 @@
 
         url = a[0]['00081190']['Value'][0]
 
-        prefix = 'http://localhost:8042'
+        prefix = 'http://%s:%s' % (args.server, args.rest)
         self.assertTrue(url.startswith(prefix))
         uri = url[len(prefix):]