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

Parameterize sanity test #14

Merged
merged 1 commit into from
Jul 22, 2024
Merged
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
12 changes: 3 additions & 9 deletions tests/sanity/test_rock.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
import subprocess

from k8s_test_harness.util import env_util
import pytest


def _test_sanity(image_version):
@pytest.mark.parametrize("image_version", ("1.24.0", "1.27.2"))
def test_sanity(image_version):
rock = env_util.get_build_meta_info_for_rock_version(
"cluster-autoscaler", image_version, "amd64"
)
Expand All @@ -21,11 +23,3 @@ def _test_sanity(image_version):
text=True,
)
assert "Usage of /cluster-autoscaler:" in docker_run.stderr


def test_cluster_autoscaler_1_24_0():
_test_sanity("1.24.0")


def test_cluster_autoscaler_1_27_2():
_test_sanity("1.27.2")
Loading