3737TEST_APP = TEST_DIR / "test-app"
3838VERY_LONG_IDENTIFIER = "very_long_identifier_" + "x" * 40
3939MIGRATION_PATHS = ["12" , "13" , "15" , "16" , "18" ]
40- VERSION_DICT = {
40+ PREVIOUS_VERSION_DICT = {
4141 "13" : "12" ,
4242 "15" : "13" ,
4343 "16" : "15" ,
4949 "select count(*) from staff;" : "2" ,
5050 "select * from information_schema.tables;" : "28" ,
5151}
52+ RHEL9 = "none 13 15 16 18 none"
53+ RHEL10 = "none 16 18 none"
5254UPGRADE_PATH_DICT = {
5355 "rhel8" : "none 12 13 15 16 18 none" ,
54- "rhel9" : "none 13 15 16 18 none" ,
55- "c9s" : "none 13 15 16 18 none" ,
56- "rhel10" : "none 16 18 none" ,
57- "c10s" : "none 16 18 none" ,
56+ "rhel9" : RHEL9 ,
57+ "c9s" : RHEL9 ,
58+ "rhel10" : RHEL10 ,
59+ "c10s" : RHEL10 ,
5860 "fedora" : "none 15 16 18 none" ,
5961}
6062VARS = Vars (
6567 TAG = OS .replace ("rh" , "-" , 1 ),
6668 TEST_APP = TEST_APP ,
6769 VERY_LONG_IDENTIFIER = VERY_LONG_IDENTIFIER ,
68- PREVIOUS_VERSION = VERSION_DICT .get (VERSION ),
70+ PREVIOUS_VERSION = PREVIOUS_VERSION_DICT .get (VERSION ),
6971 PAGILA = PAGILA ,
7072 MIGRATION_PATHS = MIGRATION_PATHS ,
7173 UPGRADE_PATH_DICT = UPGRADE_PATH_DICT ,
@@ -90,14 +92,9 @@ def get_image_id(version):
9092 """
9193 Get the image ID of the PostgreSQL container.
9294 """
93- ns = {
94- "rhel8" : f"registry.redhat.io/rhel8/postgresql-{ version } " ,
95- "rhel9" : f"registry.redhat.io/rhel9/postgresql-{ version } " ,
96- "rhel10" : f"registry.redhat.io/rhel10/postgresql-{ version } " ,
97- "c9s" : f"quay.io/sclorg/postgresql-{ version } -c9s" ,
98- "c10s" : f"quay.io/sclorg/postgresql-{ version } -c10s" ,
99- }
100- return ns [VARS .OS ]
95+ if version .startswith ("rhel" ):
96+ return f"registry.redhat.io/{ VARS .OS } /postresql-{ version } "
97+ return f"quay.io/sclorg/postgresql-{ version } -{ VARS .OS } "
10198
10299
103100def check_db_output (
0 commit comments