Skip to content

Commit

Permalink
Add skip to test_rate_limit_authz.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pehala committed Nov 15, 2023
1 parent 09b32a5 commit a7d0dd8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions testsuite/tests/kuadrant/test_rate_limit_authz.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down

0 comments on commit a7d0dd8

Please sign in to comment.