Mercurial > hg > orthanc-tests
diff Plugins/DicomWeb/Run.py @ 381:fd6d805eae37
new option "Timeout" in DICOMweb
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 23 Feb 2021 14:11:21 +0100 |
parents | 9d2a63afdb73 |
children | 344dafb7c9ff |
line wrap: on
line diff
--- a/Plugins/DicomWeb/Run.py Tue Feb 16 12:03:27 2021 +0100 +++ b/Plugins/DicomWeb/Run.py Tue Feb 23 14:11:21 2021 +0100 @@ -722,6 +722,7 @@ 'Password' : 'password', 'UserProperty' : 'Test', 'HasDelete' : True, + 'Timeout' : 66 # New in 1.6 }) l = DoGet(ORTHANC, '/dicom-web/servers') @@ -747,7 +748,7 @@ self.assertTrue('delete' in o) # New in 0.7 s = DoGet(ORTHANC, '/dicom-web/servers?expand') - self.assertEqual(7, len(s['hello'])) + self.assertEqual(8, len(s['hello'])) self.assertEqual(url, s['hello']['Url']) self.assertEqual('bob', s['hello']['Username']) self.assertEqual(None, s['hello']['Password']) @@ -756,6 +757,7 @@ self.assertTrue('Hello' in s['hello']['HttpHeaders']) self.assertEqual('Test', s['hello']['UserProperty']) self.assertEqual('1', s['hello']['HasDelete']) + self.assertEqual(66, s['hello']['Timeout']) # New in 1.6 DoDelete(ORTHANC, '/dicom-web/servers/hello')