Skip to content

Commit

Permalink
Merge pull request #371 from pehala/fix_tls
Browse files Browse the repository at this point in the history
Fix missing asserts in TLS tests
  • Loading branch information
pehala authored Apr 9, 2024
2 parents a065675 + 407662a commit e3ba41c
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 e3ba41c

Please sign in to comment.