Skip to content

Commit

Permalink
Merge pull request #285 from pehala/fix_auth_limit_skip
Browse files Browse the repository at this point in the history
Add skip to test_rate_limit_authz.py
  • Loading branch information
pehala authored Nov 16, 2023
2 parents ed03039 + a7d0dd8 commit de10819
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 de10819

Please sign in to comment.