We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ebeb58 commit 7c65767Copy full SHA for 7c65767
tests/test_client.py
@@ -21,6 +21,7 @@
21
22
from requests_kerberos.exceptions import KerberosExchangeError
23
from prestodb.client import PrestoRequest
24
+from prestodb.auth import KerberosAuthentication
25
from prestodb import constants
26
import prestodb.exceptions
27
@@ -511,10 +512,13 @@ def test_authentication_fail_retry(monkeypatch):
511
512
monkeypatch.setattr(PrestoRequest.http.Session, 'get', get_retry)
513
514
attempts = 3
515
+ kerberos_auth = KerberosAuthentication()
516
req = PrestoRequest(
517
host='coordinator',
518
port=8080,
519
user='test',
520
+ http_scheme=constants.HTTPS,
521
+ auth=kerberos_auth,
522
max_attempts=attempts,
523
)
524
0 commit comments