Mercurial > hg > orthanc-tests
changeset 672:c26163577c91
DW tests for 'Server'
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Mon, 26 Aug 2024 12:36:10 +0200 |
parents | b50b6acc1206 |
children | 00e4bb782fa5 |
files | Plugins/DicomWeb/Run.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/DicomWeb/Run.py Mon Aug 26 12:21:37 2024 +0200 +++ b/Plugins/DicomWeb/Run.py Mon Aug 26 12:36:10 2024 +0200 @@ -303,7 +303,10 @@ { 'Resources' : [ 'nope' ], 'Synchronous' : True })) # inexisting resource - l = 3 # For >= 1.10.1 + if IsPluginVersionAbove(ORTHANC, "dicom-web", 1, 18, 0): + l = 4 # "Server" has been added + else: + l = 3 # For >= 1.10.1 # study r = DoPost(ORTHANC, '/dicom-web/servers/sample/stow', @@ -312,6 +315,7 @@ self.assertEqual(l, len(r)) self.assertEqual("0a9b3153-2512774b-2d9580de-1fc3dcf6-3bd83918", r['Resources']['Studies'][0]) + self.assertEqual("sample", r['Server']) # series r = DoPost(ORTHANC, '/dicom-web/servers/sample/stow',