comparison 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
comparison
equal deleted inserted replaced
380:b9adc7d06347 381:fd6d805eae37
720 }, 720 },
721 'Username' : 'bob', 721 'Username' : 'bob',
722 'Password' : 'password', 722 'Password' : 'password',
723 'UserProperty' : 'Test', 723 'UserProperty' : 'Test',
724 'HasDelete' : True, 724 'HasDelete' : True,
725 'Timeout' : 66 # New in 1.6
725 }) 726 })
726 727
727 l = DoGet(ORTHANC, '/dicom-web/servers') 728 l = DoGet(ORTHANC, '/dicom-web/servers')
728 self.assertEqual(2, len(l)) 729 self.assertEqual(2, len(l))
729 self.assertTrue('sample' in l) 730 self.assertTrue('sample' in l)
745 self.assertTrue('wado' in o) # New in 0.7 746 self.assertTrue('wado' in o) # New in 0.7
746 self.assertTrue('qido' in o) # New in 0.7 747 self.assertTrue('qido' in o) # New in 0.7
747 self.assertTrue('delete' in o) # New in 0.7 748 self.assertTrue('delete' in o) # New in 0.7
748 749
749 s = DoGet(ORTHANC, '/dicom-web/servers?expand') 750 s = DoGet(ORTHANC, '/dicom-web/servers?expand')
750 self.assertEqual(7, len(s['hello'])) 751 self.assertEqual(8, len(s['hello']))
751 self.assertEqual(url, s['hello']['Url']) 752 self.assertEqual(url, s['hello']['Url'])
752 self.assertEqual('bob', s['hello']['Username']) 753 self.assertEqual('bob', s['hello']['Username'])
753 self.assertEqual(None, s['hello']['Password']) 754 self.assertEqual(None, s['hello']['Password'])
754 self.assertFalse(s['hello']['Pkcs11']) 755 self.assertFalse(s['hello']['Pkcs11'])
755 self.assertEqual(1, len(s['hello']['HttpHeaders'])) 756 self.assertEqual(1, len(s['hello']['HttpHeaders']))
756 self.assertTrue('Hello' in s['hello']['HttpHeaders']) 757 self.assertTrue('Hello' in s['hello']['HttpHeaders'])
757 self.assertEqual('Test', s['hello']['UserProperty']) 758 self.assertEqual('Test', s['hello']['UserProperty'])
758 self.assertEqual('1', s['hello']['HasDelete']) 759 self.assertEqual('1', s['hello']['HasDelete'])
760 self.assertEqual(66, s['hello']['Timeout']) # New in 1.6
759 761
760 DoDelete(ORTHANC, '/dicom-web/servers/hello') 762 DoDelete(ORTHANC, '/dicom-web/servers/hello')
761 763
762 764
763 def test_bitbucket_issue_143(self): 765 def test_bitbucket_issue_143(self):