From c52030b5792545deae47ab151524d57cfdce87d4 Mon Sep 17 00:00:00 2001 From: averevki Date: Fri, 25 Oct 2024 16:37:07 +0200 Subject: [PATCH] Adjust tls issuer tests for recent changes Signed-off-by: averevki --- .../reconciliation/test_invalid_issuer_reference.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/testsuite/tests/singlecluster/gateway/reconciliation/test_invalid_issuer_reference.py b/testsuite/tests/singlecluster/gateway/reconciliation/test_invalid_issuer_reference.py index 56cf91b5..13cbe9c0 100644 --- a/testsuite/tests/singlecluster/gateway/reconciliation/test_invalid_issuer_reference.py +++ b/testsuite/tests/singlecluster/gateway/reconciliation/test_invalid_issuer_reference.py @@ -36,8 +36,9 @@ def test_wrong_issuer_type(request, gateway, blame, module_label): has_condition( "Accepted", "False", - "Unknown", - 'invalid value "Gateway" for issuerRef.kind. Must be empty, "Issuer" or "ClusterIssuer"', + "Invalid", + 'TLSPolicy target is invalid: invalid value "Gateway" for ' + 'issuerRef.kind. Must be empty, "Issuer" or "ClusterIssuer"', ), timelimit=20, ), f"Policy did not reach expected status, instead it was: {policy.refresh().model.status.conditions}" @@ -61,6 +62,6 @@ def test_non_existing_issuer(request, gateway, cluster, blame, module_label): policy.commit() assert policy.wait_until( - has_condition("Accepted", "False", "Unknown", 'ClusterIssuer.cert-manager.io "does-not-exist" not found'), + has_condition("Accepted", "False", "Invalid", "TLSPolicy target is invalid: unable to find issuer"), timelimit=20, ), f"Policy did not reach expected status, instead it was: {policy.refresh().model.status.conditions}"