From 9b2d977862d42f558ce2db5a970e923f7ee37d79 Mon Sep 17 00:00:00 2001 From: Alf-Rune Siqveland Date: Wed, 13 Nov 2024 10:11:14 +0100 Subject: [PATCH] chore: Add pytest marker for tests that uses mender-gateway Signed-off-by: Alf-Rune Siqveland --- tests/pytest.ini | 3 +++ tests/tests/test_mtls.py | 1 + 2 files changed, 4 insertions(+) diff --git a/tests/pytest.ini b/tests/pytest.ini index 7c8b1303e..b184e08e4 100644 --- a/tests/pytest.ini +++ b/tests/pytest.ini @@ -18,3 +18,6 @@ testpaths = tests # # Use v1 of xunit format (default will change in pytest 6.0) junit_family=xunit1 + +markers = + mender_gateway: marks tests that uses mender-gateway diff --git a/tests/tests/test_mtls.py b/tests/tests/test_mtls.py index 15c826d36..0394455b1 100644 --- a/tests/tests/test_mtls.py +++ b/tests/tests/test_mtls.py @@ -85,6 +85,7 @@ def make_script_artifact(artifact_name, device_type, output_path): return get_script_artifact(script, artifact_name, device_type, output_path) +@pytest.mark.mender_gateway @pytest.mark.skipif( isK8S(), reason="not relevant in a staging or production environment" )