Skip to content

Commit 76c3b50

Browse files
authored
add label to enforce running k8s test (#13168)
1 parent 58dcd87 commit 76c3b50

File tree

1 file changed

+6
-0
lines changed
  • localstack-core/localstack/testing/pytest

1 file changed

+6
-0
lines changed

localstack-core/localstack/testing/pytest/marking.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ class Markers:
7575
"""The test requires docker or a compatible container engine - will not work on kubernetes"""
7676
lambda_runtime_update = pytest.mark.lambda_runtime_update
7777
"""Tests to execute when updating snapshots for a new Lambda runtime"""
78+
k8s_always_run = pytest.mark.k8s_always_run
79+
"""This tests will always run against k8s environment"""
7880

7981

8082
# pytest plugin
@@ -226,3 +228,7 @@ def pytest_configure(config):
226228
"markers",
227229
"requires_in_process: mark the test as requiring the test to run inside the same process as LocalStack - will not work if tests are run against a running LS container.",
228230
)
231+
config.addinivalue_line(
232+
"markers",
233+
"k8s_always_run: mark the test to always run in k8s environment. This allows us to run tests that would otherwise be skipped, such as localstack_only tests.",
234+
)

0 commit comments

Comments
 (0)