# HG changeset patch # User Alain Mazy # Date 1709121049 -3600 # Node ID e1bc43b5a7d248c997fae65ce780b81a33bccf52 # Parent ed0a51317c0b91d7f870df1857ed65618999717f fix leading / diff -r ed0a51317c0b -r e1bc43b5a7d2 NewTests/PostgresUpgrades/test_pg_upgrades.py --- a/NewTests/PostgresUpgrades/test_pg_upgrades.py Wed Feb 28 09:57:25 2024 +0100 +++ b/NewTests/PostgresUpgrades/test_pg_upgrades.py Wed Feb 28 12:50:49 2024 +0100 @@ -63,9 +63,9 @@ # make sure we can 'play' with this Orthanc o.instances.get_tags(orthanc_id=instances[0]) o.instances.delete_all() - self.assertEqual(0, int(o.get_json('/statistics')['TotalDiskSize'])) + self.assertEqual(0, int(o.get_json('statistics')['TotalDiskSize'])) instances = o.upload_folder(here / "../../Database/Knee") - size_before_downgrade = int(o.get_json('/statistics')['TotalDiskSize']) + size_before_downgrade = int(o.get_json('statistics')['TotalDiskSize']) print("Stopping newest Orthanc ") subprocess.run(["docker", "compose", "stop", "orthanc-pg-15-under-tests"], check=True) @@ -107,9 +107,9 @@ # make sure we can 'play' with Orthanc o.instances.get_tags(orthanc_id=instances[0]) o.instances.delete_all() - self.assertEqual(0, int(o.get_json('/statistics')['TotalDiskSize'])) + self.assertEqual(0, int(o.get_json('statistics')['TotalDiskSize'])) instances = o.upload_folder(here / "../../Database/Knee") - size_before_downgrade = int(o.get_json('/statistics')['TotalDiskSize']) + size_before_downgrade = int(o.get_json('statistics')['TotalDiskSize']) print("Stopping newest Orthanc ") subprocess.run(["docker", "compose", "stop", "orthanc-pg-15-under-tests"], check=True) @@ -127,12 +127,12 @@ # make sure we can 'play' with Orthanc o.instances.get_tags(orthanc_id=instances[0]) - self.assertEqual(size_before_downgrade, int(o.get_json('/statistics')['TotalDiskSize'])) + self.assertEqual(size_before_downgrade, int(o.get_json('statistics')['TotalDiskSize'])) o.instances.delete_all() - self.assertEqual(0, int(o.get_json('/statistics')['TotalDiskSize'])) + self.assertEqual(0, int(o.get_json('statistics')['TotalDiskSize'])) instances = o.upload_folder(here / "../../Database/Knee") o.instances.delete_all() - self.assertEqual(0, int(o.get_json('/statistics')['TotalDiskSize'])) + 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-61-for-integ-tests) so they know each other