Skip to content

Commit 8d7af12

Browse files
authored
Adapt the expected error type in TLS test (#597)
1 parent bc30e68 commit 8d7af12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/templates/kuttl/tls/check-tls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ def read_json(config_path):
8484
# We expect these to fail
8585
if conf["useAuthentication"]:
8686
conn = get_authenticated_https_connection(coordinator_host, "admin", "admin", untrusted_ca)
87-
test_query_failure(conn, query, requests.exceptions.SSLError, "Could connect with wrong certificate")
87+
test_query_failure(conn, query, trino.exceptions.TrinoConnectionError, "Could connect with wrong certificate")
8888
conn = get_authenticated_https_connection(coordinator_host, "admin", "wrong_password", trusted_ca)
8989
test_query_failure(conn, query, trino.exceptions.HttpError, "Could connect with wrong password")
9090
conn = get_authenticated_https_connection(coordinator_host, "wrong_user", "wrong_password", trusted_ca)
9191
test_query_failure(conn, query, trino.exceptions.HttpError, "Could connect with wrong user and password")
9292
elif conf["useTls"]:
9393
conn = get_https_connection(coordinator_host, "admin", untrusted_ca)
94-
test_query_failure(conn, query, requests.exceptions.SSLError, "Could connect with wrong certificate")
94+
test_query_failure(conn, query, trino.exceptions.TrinoConnectionError, "Could connect with wrong certificate")
9595

9696
print("All TLS tests finished successfully!")

0 commit comments

Comments
 (0)