changeset 622:75dbc81d0e26

fix concurrency transfer tests
author Alain Mazy <am@osimis.io>
date Wed, 07 Feb 2024 09:32:39 +0100
parents 9f867dc595e2
children 3bb4b2589030
files NewTests/Concurrency/docker-compose-transfers-concurrency.yml NewTests/Concurrency/test_transfer.py NewTests/README
diffstat 3 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/NewTests/Concurrency/docker-compose-transfers-concurrency.yml	Tue Feb 06 16:20:40 2024 +0100
+++ b/NewTests/Concurrency/docker-compose-transfers-concurrency.yml	Wed Feb 07 09:32:39 2024 +0100
@@ -11,6 +11,8 @@
     environment:
       # VERBOSE_ENABLED: "true"
       TRANSFERS_PLUGIN_ENABLED: "true"
+      # disable DICOMWEB to avoid the metadata cache to consume disk space after StableStudy -> difficult to compare disk sizes
+      DICOM_WEB_PLUGIN_ENABLED: "false"
       ORTHANC__POSTGRESQL: |
         {
           "Host": "pg-a",
@@ -39,6 +41,7 @@
     environment:
       # VERBOSE_ENABLED: "true"
       TRANSFERS_PLUGIN_ENABLED: "true"
+      DICOM_WEB_PLUGIN_ENABLED: "false"
       ORTHANC__POSTGRESQL: |
         {
           "Host": "pg-b",
--- a/NewTests/Concurrency/test_transfer.py	Tue Feb 06 16:20:40 2024 +0100
+++ b/NewTests/Concurrency/test_transfer.py	Wed Feb 07 09:32:39 2024 +0100
@@ -109,7 +109,7 @@
                 remote_job = ob.transfers.send_async(target_peer='a',
                                                     resources_ids=all_studies_ids,
                                                     resource_type=ResourceType.STUDY,
-                                                    compress=True)
+                                                    compress=compression)
                 job = oa.jobs.get(orthanc_id=remote_job.remote_job_id)
                 job.wait_completed(polling_interval=0.1)
 
--- a/NewTests/README	Tue Feb 06 16:20:40 2024 +0100
+++ b/NewTests/README	Wed Feb 07 09:32:39 2024 +0100
@@ -167,7 +167,7 @@
 
 with Docker:
 
-python3 NewTests/main.py --pattern=Concurrency.test_concurrency.TestConcurrency.* \
+python3 NewTests/main.py --pattern=Concurrency.* \
                          --orthanc_under_tests_docker_image=orthancteam/orthanc:current \
                          --orthanc_under_tests_http_port=8043