From 3cc735a1e1cdb276960734b1f8d954270920e877 Mon Sep 17 00:00:00 2001 From: phala Date: Wed, 12 Jun 2024 13:30:37 +0200 Subject: [PATCH] Add custom assert to preexisting_auth to see more details --- .../authorino/operator/sharding/test_preexisting_auth.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testsuite/tests/kuadrant/authorino/operator/sharding/test_preexisting_auth.py b/testsuite/tests/kuadrant/authorino/operator/sharding/test_preexisting_auth.py index 2bebc8c6..a38206f4 100644 --- a/testsuite/tests/kuadrant/authorino/operator/sharding/test_preexisting_auth.py +++ b/testsuite/tests/kuadrant/authorino/operator/sharding/test_preexisting_auth.py @@ -60,7 +60,9 @@ def test_preexisting_auth( auth = setup_authorization(route2, "B") auth.wait_for_ready() - assert hostname.hostname in auth.model.status.summary.hostsReady + assert ( + hostname.hostname in auth.model.status.summary.hostsReady + ), f"Host {hostname.hostname} not found, model: {auth.model}" response = hostname.client().get("/get") assert response.status_code == 200 assert response.json()["headers"]["Header"] == '{"anything":"B"}'