Skip to content

Commit

Permalink
Merge pull request Kuadrant#359 from jsmolar/rate_limit_auth
Browse files Browse the repository at this point in the history
Add pytestmark for limitador tests
  • Loading branch information
pehala authored Mar 5, 2024
2 parents 5c71f7e + 8cb5c49 commit 5cd4c3c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/settings.local.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
# deploy: false # If false, the testsuite will use already deployed authorino for testing
# auth_url: "" # authorization URL for already deployed Authorino
# oidc_url: "" # oidc URL for already deployed Authorino
# metrics_service_name: "" # controller metrics service name for already deployer Authorino
# metrics_service_name: "" # controller metrics service name for already deployed Authorino
# control_plane:
# hub: # Hub cluster
# project: "multi-cluster-gateways" # Optional: namespace where MGC resources are created and where the hub gateway will be created
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
from testsuite.policy.rate_limit_policy import Limit, RouteSelector


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


@pytest.fixture(scope="module")
def route(route, backend):
"""Add new rule to the route"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
from testsuite.policy.rate_limit_policy import RouteSelector, Limit


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


@pytest.fixture(scope="module")
def rate_limit(rate_limit):
"""Add limit to the policy"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
from testsuite.policy.rate_limit_policy import RouteSelector, Limit


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


@pytest.fixture(scope="module")
def rate_limit(rate_limit):
"""Add limit to the policy"""
Expand Down
3 changes: 3 additions & 0 deletions testsuite/tests/kuadrant/limitador/test_route_rule_invalid.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
from testsuite.policy.rate_limit_policy import Limit, RouteSelector


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


@pytest.fixture(scope="module", params=["/anything/get", "/anything", "/get"])
def endpoint(request):
"""Endpoints to apply a RLP to"""
Expand Down

0 comments on commit 5cd4c3c

Please sign in to comment.