@@ -177,9 +177,8 @@ def run(command, comment=None, env=None, service=None, tag=None, args=None, data
177177 tag = f"postgres_{ version } " if runtime == "async-std" else f"postgres_{ version } _{ runtime } " ,
178178 )
179179
180- if tls != "none" :
181- ## +ssl
182- for version in ["15" , "14" , "13" , "12" , "11" ]:
180+ if tls != "none" :
181+ ## +ssl
183182 run (
184183 f"cargo test --no-default-features --features any,postgres,macros,_unstable-all-types,runtime-{ runtime } ,tls-{ tls } " ,
185184 comment = f"test postgres { version } ssl" ,
@@ -188,14 +187,13 @@ def run(command, comment=None, env=None, service=None, tag=None, args=None, data
188187 tag = f"postgres_{ version } _ssl" if runtime == "async-std" else f"postgres_{ version } _ssl_{ runtime } " ,
189188 )
190189
191- ## +client-ssl
192- for version in ["15_client_ssl" , "14_client_ssl" , "13_client_ssl" , "12_client_ssl" , "11_client_ssl" ]:
190+ ## +client-ssl
193191 run (
194192 f"cargo test --no-default-features --features any,postgres,macros,_unstable-all-types,runtime-{ runtime } ,tls-{ tls } " ,
195- comment = f"test postgres { version } no-password" ,
193+ comment = f"test postgres { version } _client_ssl no-password" ,
196194 database_url_args = "sslmode=verify-ca&sslrootcert=.%2Ftests%2Fcerts%2Fca.crt&sslkey=.%2Ftests%2Fkeys%2Fclient.key&sslcert=.%2Ftests%2Fcerts%2Fclient.crt" ,
197- service = f"postgres_{ version } " ,
198- tag = f"postgres_{ version } _no_password " if runtime == "async-std" else f"postgres_{ version } _no_password_ { runtime } " ,
195+ service = f"postgres_{ version } _client_ssl " ,
196+ tag = f"postgres_{ version } _client_ssl_no_password " if runtime == "async-std" else f"postgres_{ version } _client_ssl_no_password_ { runtime } " ,
199197 )
200198
201199 #
@@ -210,15 +208,14 @@ def run(command, comment=None, env=None, service=None, tag=None, args=None, data
210208 tag = f"mysql_{ version } " if runtime == "async-std" else f"mysql_{ version } _{ runtime } " ,
211209 )
212210
213- if tls != "none" :
214211 ## +client-ssl
215- for version in [ "8_client_ssl" , "5_7_client_ssl" ] :
212+ if version != "5_7" or tls == "native-tls" :
216213 run (
217214 f"cargo test --no-default-features --features any,mysql,macros,_unstable-all-types,runtime-{ runtime } ,tls-{ tls } " ,
218- comment = f"test mysql { version } no-password" ,
215+ comment = f"test mysql { version } _client_ssl no-password" ,
219216 database_url_args = "sslmode=verify_ca&ssl-ca=.%2Ftests%2Fcerts%2Fca.crt&ssl-key=.%2Ftests%2Fkeys%2Fclient.key&ssl-cert=.%2Ftests%2Fcerts%2Fclient.crt" ,
220- service = f"mysql_{ version } " ,
221- tag = f"mysql_{ version } _no_password " if runtime == "async-std" else f"mysql_{ version } _no_password_ { runtime } " ,
217+ service = f"mysql_{ version } _client_ssl " ,
218+ tag = f"mysql_{ version } _client_ssl_no_password " if runtime == "async-std" else f"mysql_{ version } _client_ssl_no_password_ { runtime } " ,
222219 )
223220
224221 #
@@ -233,15 +230,14 @@ def run(command, comment=None, env=None, service=None, tag=None, args=None, data
233230 tag = f"mariadb_{ version } " if runtime == "async-std" else f"mariadb_{ version } _{ runtime } " ,
234231 )
235232
236- if tls != "none" :
237233 ## +client-ssl
238- for version in [ "10_6_client_ssl" , "10_5_client_ssl" , "10_4_client_ssl" , "10_3_client_ssl" ] :
234+ if tls != "none" :
239235 run (
240236 f"cargo test --no-default-features --features any,mysql,macros,_unstable-all-types,runtime-{ runtime } ,tls-{ tls } " ,
241- comment = f"test mariadb { version } no-password" ,
237+ comment = f"test mariadb { version } _client_ssl no-password" ,
242238 database_url_args = "sslmode=verify_ca&ssl-ca=.%2Ftests%2Fcerts%2Fca.crt&ssl-key=.%2Ftests%2Fkeys%2Fclient.key&ssl-cert=.%2Ftests%2Fcerts%2Fclient.crt" ,
243- service = f"mariadb_{ version } " ,
244- tag = f"mariadb_{ version } _no_password " if runtime == "async-std" else f"mariadb_{ version } _no_password_ { runtime } " ,
239+ service = f"mariadb_{ version } _client_ssl " ,
240+ tag = f"mariadb_{ version } _client_ssl_no_password " if runtime == "async-std" else f"mariadb_{ version } _client_ssl_no_password_ { runtime } " ,
245241 )
246242
247243# TODO: Use [grcov] if available
0 commit comments