Skip to content

Commit

Permalink
chore: Add pytest marker for tests that uses mender-gateway
Browse files Browse the repository at this point in the history
Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
  • Loading branch information
alfrunes committed Nov 21, 2024
1 parent a99ed3e commit 46526dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions tests/tests/test_mtls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit 46526dc

Please sign in to comment.