Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add pytest marker for tests that uses mender-gateway #2673

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@pytest.mark.mender_gateway
@pytest.mark.mender_gateway_qemu

@pytest.mark.skipif(
isK8S(), reason="not relevant in a staging or production environment"
)
Expand Down