From 46526dc979ccf183744a8806ace2b753e104d8db 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 | 4 ++++ tests/tests/test_mtls.py | 1 + 2 files changed, 5 insertions(+) diff --git a/tests/pytest.ini b/tests/pytest.ini index 7c8b1303e..28c7ec9c2 100644 --- a/tests/pytest.ini +++ b/tests/pytest.ini @@ -18,3 +18,7 @@ testpaths = tests # # Use v1 of xunit format (default will change in pytest 6.0) junit_family=xunit1 + +markers = + mender_gateway_docker: marks tests that uses mender-gateway Docker image + mender_gateway_qemu: marks tests that uses mender-gateway-qemu-commercial Docker image 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" )