diff --git a/tests/sanity/test_rock.py b/tests/sanity/test_rock.py index bf14a51..2ae882a 100644 --- a/tests/sanity/test_rock.py +++ b/tests/sanity/test_rock.py @@ -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" ) @@ -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")