changeset 645:a25e7a641f26 large-queries

more auth+dw tests
author Alain Mazy <am@orthanc.team>
date Thu, 25 Apr 2024 15:31:03 +0200
parents 5806bd442a37
children 810390d3968a
files NewTests/Authorization/test_authorization.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/NewTests/Authorization/test_authorization.py	Thu Apr 11 19:04:16 2024 +0200
+++ b/NewTests/Authorization/test_authorization.py	Thu Apr 25 15:31:03 2024 +0200
@@ -255,6 +255,9 @@
             i = o.get_binary(f"dicom-web/studies/{self.label_a_study_dicom_id}/series/{self.label_a_series_dicom_id}/instances/{self.label_a_instance_dicom_id}")
             self.assert_is_forbidden(lambda: o.get_binary(f"dicom-web/studies/{self.label_b_study_dicom_id}/series/{self.label_b_series_dicom_id}/instances/{self.label_b_instance_dicom_id}"))
 
+            i = o.get_json(f"dicom-web/studies/{self.label_a_study_dicom_id}/series?includefield=00080021%2C00080031%2C0008103E%2C00200011")
+            self.assert_is_forbidden(lambda: o.get_json(f"dicom-web/studies/{self.label_b_study_dicom_id}/series?includefield=00080021%2C00080031%2C0008103E%2C00200011"))
+
             o.get_json(f"/system")
             o.get_json(f"/plugins")
             o.get_json(f"/plugins/dicom-web")
@@ -301,6 +304,7 @@
         o.get_binary(f"dicom-web/studies/{self.label_a_study_dicom_id}")
         o.get_json(f"dicom-web/studies/{self.label_a_study_dicom_id}/metadata")
         o.get_json(f"dicom-web/studies/{self.label_a_study_dicom_id}/series")
+        o.get_json(f"dicom-web/studies/{self.label_a_study_dicom_id}/series?includefield=00080021%2C00080031%2C0008103E%2C00200011")
         o.get_binary(f"dicom-web/studies/{self.label_a_study_dicom_id}/series/{self.label_a_series_dicom_id}")
         o.get_json(f"dicom-web/studies/{self.label_a_study_dicom_id}/series/{self.label_a_series_dicom_id}/metadata")
         o.get_binary(f"dicom-web/studies/{self.label_a_study_dicom_id}/series/{self.label_a_series_dicom_id}/instances/{self.label_a_instance_dicom_id}")