@@ -58,7 +58,6 @@ def setup_method(self):
58
58
catalog = "system" ,
59
59
user = "user" ,
60
60
auth = BasicAuthentication ("user" , "pass" ),
61
- http_scheme = "https" ,
62
61
source = "trino-rulez"
63
62
),
64
63
),
@@ -80,7 +79,6 @@ def setup_method(self):
80
79
catalog = "system" ,
81
80
user = "user" ,
82
81
auth = CertificateAuthentication ("/my/path/to/cert" , "afdlsdfk%4#'" ),
83
- http_scheme = "https" ,
84
82
source = "trino-sqlalchemy"
85
83
),
86
84
),
@@ -100,7 +98,6 @@ def setup_method(self):
100
98
catalog = "system" ,
101
99
user = "user" ,
102
100
auth = JWTAuthentication ("afdlsdfk%4#'" ),
103
- http_scheme = "https" ,
104
101
source = "trino-sqlalchemy"
105
102
),
106
103
),
@@ -168,7 +165,6 @@ def setup_method(self):
168
165
catalog = "system" ,
169
166
170
167
auth = BasicAuthentication ("[email protected] /my_role" , "pass /*&" ),
171
- http_scheme = "https" ,
172
168
source = "trino-sqlalchemy" ,
173
169
session_properties = {"query_max_run_time" : "1d" },
174
170
http_headers = {"trino" : 1 },
@@ -270,7 +266,6 @@ def test_trino_connection_basic_auth():
270
266
url = make_url (f'trino://{ username } :{ password } @host' )
271
267
_ , cparams = dialect .create_connect_args (url )
272
268
273
- assert cparams ['http_scheme' ] == "https"
274
269
assert isinstance (cparams ['auth' ], BasicAuthentication )
275
270
assert cparams ['auth' ]._username == username
276
271
assert cparams ['auth' ]._password == password
@@ -282,7 +277,6 @@ def test_trino_connection_jwt_auth():
282
277
url = make_url (f'trino://host/?access_token={ access_token } ' )
283
278
_ , cparams = dialect .create_connect_args (url )
284
279
285
- assert cparams ['http_scheme' ] == "https"
286
280
assert isinstance (cparams ['auth' ], JWTAuthentication )
287
281
assert cparams ['auth' ].token == access_token
288
282
@@ -294,7 +288,6 @@ def test_trino_connection_certificate_auth():
294
288
url = make_url (f'trino://host/?cert={ cert } &key={ key } ' )
295
289
_ , cparams = dialect .create_connect_args (url )
296
290
297
- assert cparams ['http_scheme' ] == "https"
298
291
assert isinstance (cparams ['auth' ], CertificateAuthentication )
299
292
assert cparams ['auth' ]._cert == cert
300
293
assert cparams ['auth' ]._key == key
@@ -307,13 +300,11 @@ def test_trino_connection_certificate_auth_cert_and_key_required():
307
300
url = make_url (f'trino://host/?cert={ cert } ' )
308
301
_ , cparams = dialect .create_connect_args (url )
309
302
310
- assert 'http_scheme' not in cparams
311
303
assert 'auth' not in cparams
312
304
313
305
url = make_url (f'trino://host/?key={ key } ' )
314
306
_ , cparams = dialect .create_connect_args (url )
315
307
316
- assert 'http_scheme' not in cparams
317
308
assert 'auth' not in cparams
318
309
319
310
@@ -322,5 +313,4 @@ def test_trino_connection_oauth2_auth():
322
313
url = make_url ('trino://host/?externalAuthentication=true' )
323
314
_ , cparams = dialect .create_connect_args (url )
324
315
325
- assert cparams ['http_scheme' ] == "https"
326
316
assert isinstance (cparams ['auth' ], OAuth2Authentication )
0 commit comments