Skip to content

Commit

Permalink
Avoid hardcoding version in the sanity test
Browse files Browse the repository at this point in the history
  • Loading branch information
addyess committed Oct 17, 2024
1 parent dd92ba8 commit 3f49b61
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/sanity/test_rock.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@
# Copyright 2024 Canonical, Ltd.
#

from pathlib import Path

import pytest
import yaml
from k8s_test_harness.util import docker_util, env_util

ROCKCRAFT = Path(__file__).parent.parent.parent / "rockcraft.yaml"
VERSION = yaml.safe_load(ROCKCRAFT.open())["version"]


@pytest.mark.parametrize("image_version", ["1.11.3"])
@pytest.mark.parametrize("image_version", [VERSION])
def test_sanity(image_version):
rock = env_util.get_build_meta_info_for_rock_version(
"coredns", image_version, "amd64"
Expand Down

0 comments on commit 3f49b61

Please sign in to comment.