Skip to content

Commit

Permalink
Fix missing asserts in TLS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pehala committed Apr 9, 2024
1 parent a065675 commit 407662a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testsuite/tests/kuadrant/authorino/operator/tls/test_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 407662a

Please sign in to comment.