changeset 783:d08518883f2f attach-custom-data

fix pg downgrade tests
author Alain Mazy <am@orthanc.team>
date Fri, 07 Feb 2025 12:24:05 +0100
parents 1d5f89f6b700
children 5140a8917254
files NewTests/PostgresUpgrades/test_pg_upgrades.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/NewTests/PostgresUpgrades/test_pg_upgrades.py	Tue Feb 04 17:59:45 2025 +0100
+++ b/NewTests/PostgresUpgrades/test_pg_upgrades.py	Fri Feb 07 12:24:05 2025 +0100
@@ -135,6 +135,10 @@
         self.assertEqual(0, int(o.get_json('statistics')['TotalDiskSize']))
 
         print("run the integration tests after a downgrade")
+        # first create the containers (orthanc-tests + orthanc-pg-15-6rev3-for-integ-tests) so they know each other
+        subprocess.run(["docker", "compose", "create", "orthanc-tests"], check=True)
+
+        subprocess.run(["docker", "compose", "up", "orthanc-pg-15-6rev3-for-integ-tests", "-d"], check=True)
 
         o = OrthancApiClient("http://localhost:8053", user="alice", pwd="orthanctest")
         o.wait_started()