@@ -58,7 +58,6 @@ def setup_method(self):
5858 catalog = "system" ,
5959 user = "user" ,
6060 auth = BasicAuthentication ("user" , "pass" ),
61- http_scheme = "https" ,
6261 source = "trino-rulez"
6362 ),
6463 ),
@@ -80,7 +79,6 @@ def setup_method(self):
8079 catalog = "system" ,
8180 user = "user" ,
8281 auth = CertificateAuthentication ("/my/path/to/cert" , "afdlsdfk%4#'" ),
83- http_scheme = "https" ,
8482 source = "trino-sqlalchemy"
8583 ),
8684 ),
@@ -100,7 +98,6 @@ def setup_method(self):
10098 catalog = "system" ,
10199 user = "user" ,
102100 auth = JWTAuthentication ("afdlsdfk%4#'" ),
103- http_scheme = "https" ,
104101 source = "trino-sqlalchemy"
105102 ),
106103 ),
@@ -168,7 +165,6 @@ def setup_method(self):
168165 catalog = "system" ,
169166 user = "user@test.org/my_role" ,
170167 auth = BasicAuthentication ("user@test.org/my_role" , "pass /*&" ),
171- http_scheme = "https" ,
172168 source = "trino-sqlalchemy" ,
173169 session_properties = {"query_max_run_time" : "1d" },
174170 http_headers = {"trino" : 1 },
@@ -270,7 +266,6 @@ def test_trino_connection_basic_auth():
270266 url = make_url (f'trino://{ username } :{ password } @host' )
271267 _ , cparams = dialect .create_connect_args (url )
272268
273- assert cparams ['http_scheme' ] == "https"
274269 assert isinstance (cparams ['auth' ], BasicAuthentication )
275270 assert cparams ['auth' ]._username == username
276271 assert cparams ['auth' ]._password == password
@@ -282,7 +277,6 @@ def test_trino_connection_jwt_auth():
282277 url = make_url (f'trino://host/?access_token={ access_token } ' )
283278 _ , cparams = dialect .create_connect_args (url )
284279
285- assert cparams ['http_scheme' ] == "https"
286280 assert isinstance (cparams ['auth' ], JWTAuthentication )
287281 assert cparams ['auth' ].token == access_token
288282
@@ -294,7 +288,6 @@ def test_trino_connection_certificate_auth():
294288 url = make_url (f'trino://host/?cert={ cert } &key={ key } ' )
295289 _ , cparams = dialect .create_connect_args (url )
296290
297- assert cparams ['http_scheme' ] == "https"
298291 assert isinstance (cparams ['auth' ], CertificateAuthentication )
299292 assert cparams ['auth' ]._cert == cert
300293 assert cparams ['auth' ]._key == key
@@ -307,13 +300,11 @@ def test_trino_connection_certificate_auth_cert_and_key_required():
307300 url = make_url (f'trino://host/?cert={ cert } ' )
308301 _ , cparams = dialect .create_connect_args (url )
309302
310- assert 'http_scheme' not in cparams
311303 assert 'auth' not in cparams
312304
313305 url = make_url (f'trino://host/?key={ key } ' )
314306 _ , cparams = dialect .create_connect_args (url )
315307
316- assert 'http_scheme' not in cparams
317308 assert 'auth' not in cparams
318309
319310
@@ -322,5 +313,4 @@ def test_trino_connection_oauth2_auth():
322313 url = make_url ('trino://host/?externalAuthentication=true' )
323314 _ , cparams = dialect .create_connect_args (url )
324315
325- assert cparams ['http_scheme' ] == "https"
326316 assert isinstance (cparams ['auth' ], OAuth2Authentication )
0 commit comments