From a7d0dd87ba7810ab57460c22a080635b472660b5 Mon Sep 17 00:00:00 2001 From: phala Date: Wed, 15 Nov 2023 16:48:58 +0100 Subject: [PATCH] Add skip to test_rate_limit_authz.py --- testsuite/tests/kuadrant/test_rate_limit_authz.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/testsuite/tests/kuadrant/test_rate_limit_authz.py b/testsuite/tests/kuadrant/test_rate_limit_authz.py index 60fb2574..d37de536 100644 --- a/testsuite/tests/kuadrant/test_rate_limit_authz.py +++ b/testsuite/tests/kuadrant/test_rate_limit_authz.py @@ -7,6 +7,14 @@ from testsuite.openshift.objects.rate_limit import Limit +@pytest.fixture(scope="module") +def kuadrant(kuadrant): + """Skip if not running on Kuadrant""" + if not kuadrant: + pytest.skip("Limitador tests can only run on Kuadrant for now") + return kuadrant + + @pytest.fixture(scope="module") def rate_limit(rate_limit): """Add limit to the policy"""