Mercurial > hg > orthanc-tests
comparison NewTests/PostgresUpgrades/test_pg_upgrades.py @ 623:3bb4b2589030
fix PG test upgrades
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 07 Feb 2024 11:43:32 +0100 |
parents | d743c210cbc8 |
children | ddf83317c7e0 |
comparison
equal
deleted
inserted
replaced
622:75dbc81d0e26 | 623:3bb4b2589030 |
---|---|
114 | 114 |
115 print("Stopping newest Orthanc ") | 115 print("Stopping newest Orthanc ") |
116 subprocess.run(["docker", "compose", "stop", "orthanc-pg-15-under-tests"], check=True) | 116 subprocess.run(["docker", "compose", "stop", "orthanc-pg-15-under-tests"], check=True) |
117 time.sleep(2) | 117 time.sleep(2) |
118 | 118 |
119 print("Downgrading Orthanc DB to v6.1") | 119 print("Downgrading Orthanc DB to Rev1") |
120 subprocess.run(["docker", "exec", "pg-15", "./scripts/downgrade.sh"], check=True) | 120 subprocess.run(["docker", "exec", "pg-15", "./scripts/downgrade.sh"], check=True) |
121 time.sleep(2) | 121 time.sleep(2) |
122 | 122 |
123 print("Downgrading Orthanc DB to v6.1") | 123 print("Launching previous Orthanc (DB Rev1)") |
124 print("Launching previous Orthanc (DB v6.1)") | |
125 subprocess.run(["docker", "compose", "up", "orthanc-pg-15-61", "-d"], check=True) | 124 subprocess.run(["docker", "compose", "up", "orthanc-pg-15-61", "-d"], check=True) |
126 | 125 |
127 o = OrthancApiClient("http://localhost:8052") | 126 o = OrthancApiClient("http://localhost:8052") |
128 o.wait_started() | 127 o.wait_started() |
129 | 128 |