Skip to content

Commit

Permalink
Merge pull request #342 from pehala/redundant_kuadrant
Browse files Browse the repository at this point in the history
Fix redundant kuadrant fixture
  • Loading branch information
pehala authored Feb 8, 2024
2 parents ae8c028 + f3aa23b commit 82a7220
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
8 changes: 0 additions & 8 deletions testsuite/tests/kuadrant/gateway/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@
from testsuite.policy.authorization.auth_policy import AuthPolicy


@pytest.fixture(scope="module")
def kuadrant(kuadrant):
"""Skip if not running on Kuadrant"""
if not kuadrant:
pytest.skip("Gateway tests are only for Kuadrant")
return kuadrant


@pytest.fixture(scope="module")
def gateway_ready(gateway):
"""Returns ready gateway"""
Expand Down
2 changes: 2 additions & 0 deletions testsuite/tests/kuadrant/gateway/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import pytest

pytestmark = [pytest.mark.kuadrant_only]


@pytest.fixture(scope="module")
def rate_limit():
Expand Down
8 changes: 0 additions & 8 deletions testsuite/tests/kuadrant/reconciliation/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ def commit(request, authorization):
authorization.wait_for_ready()


@pytest.fixture(scope="module")
def kuadrant(kuadrant):
"""Skip if not running on Kuadrant"""
if not kuadrant:
pytest.skip("Reconciliation test can only be run on Kuadrant")
return kuadrant


@pytest.fixture(scope="module")
def resilient_request(client):
"""Fixture which allows to send retrying requests until the expected status code is returned"""
Expand Down
2 changes: 2 additions & 0 deletions testsuite/tests/kuadrant/test_rate_limit_anonymous.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
from testsuite.policy.authorization import Pattern, JsonResponse, ValueFrom
from testsuite.policy.rate_limit_policy import Limit

pytestmark = [pytest.mark.kuadrant_only, pytest.mark.limitador]


@pytest.fixture(scope="module")
def rate_limit(rate_limit):
Expand Down

0 comments on commit 82a7220

Please sign in to comment.