From 8cb5c499ab358f27742733d26496715334032fda Mon Sep 17 00:00:00 2001
From: Jakub Smolar <jsmolar@redhat.com>
Date: Tue, 5 Mar 2024 15:37:11 +0100
Subject: [PATCH] Add pytestmark for limitador tests

---
 config/settings.local.yaml.tpl                                 | 2 +-
 .../kuadrant/limitador/method/test_route_subset_method.py      | 3 +++
 .../kuadrant/limitador/route/test_limit_targeting_two_rules.py | 3 +++
 .../tests/kuadrant/limitador/route/test_multiple_same_rule.py  | 3 +++
 testsuite/tests/kuadrant/limitador/test_route_rule_invalid.py  | 3 +++
 5 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/config/settings.local.yaml.tpl b/config/settings.local.yaml.tpl
index c544ac73..c8e8186d 100644
--- a/config/settings.local.yaml.tpl
+++ b/config/settings.local.yaml.tpl
@@ -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
diff --git a/testsuite/tests/kuadrant/limitador/method/test_route_subset_method.py b/testsuite/tests/kuadrant/limitador/method/test_route_subset_method.py
index 1b5c91ec..5d39218b 100644
--- a/testsuite/tests/kuadrant/limitador/method/test_route_subset_method.py
+++ b/testsuite/tests/kuadrant/limitador/method/test_route_subset_method.py
@@ -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"""
diff --git a/testsuite/tests/kuadrant/limitador/route/test_limit_targeting_two_rules.py b/testsuite/tests/kuadrant/limitador/route/test_limit_targeting_two_rules.py
index 6ad2ce8a..d945c70c 100644
--- a/testsuite/tests/kuadrant/limitador/route/test_limit_targeting_two_rules.py
+++ b/testsuite/tests/kuadrant/limitador/route/test_limit_targeting_two_rules.py
@@ -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"""
diff --git a/testsuite/tests/kuadrant/limitador/route/test_multiple_same_rule.py b/testsuite/tests/kuadrant/limitador/route/test_multiple_same_rule.py
index dd798fab..c70847fe 100644
--- a/testsuite/tests/kuadrant/limitador/route/test_multiple_same_rule.py
+++ b/testsuite/tests/kuadrant/limitador/route/test_multiple_same_rule.py
@@ -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"""
diff --git a/testsuite/tests/kuadrant/limitador/test_route_rule_invalid.py b/testsuite/tests/kuadrant/limitador/test_route_rule_invalid.py
index 0d8889d9..696e7beb 100644
--- a/testsuite/tests/kuadrant/limitador/test_route_rule_invalid.py
+++ b/testsuite/tests/kuadrant/limitador/test_route_rule_invalid.py
@@ -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"""