diff --git a/testsuite/tests/kuadrant/authorino/operator/tls/test_tls.py b/testsuite/tests/kuadrant/authorino/operator/tls/test_tls.py index 695dc361..d5a4daf4 100644 --- a/testsuite/tests/kuadrant/authorino/operator/tls/test_tls.py +++ b/testsuite/tests/kuadrant/authorino/operator/tls/test_tls.py @@ -16,11 +16,11 @@ def test_no_certificate(hostname, envoy_authority): """Test that request without certificate will be rejected""" with hostname.client(verify=envoy_authority) as client: result = client.get("/get") - result.has_cert_required_error() + assert result.has_cert_required_error() def test_invalid_certificate(envoy_authority, invalid_cert, auth, hostname): """Tests that certificate with different CA will be rejeceted""" with hostname.client(verify=envoy_authority, cert=invalid_cert) as client: result = client.get("/get", auth=auth) - result.has_unknown_ca_error() + assert result.has_unknown_ca_error()