diff --git a/tests/test_varnish_imagestreams.py b/tests/test_varnish_imagestreams.py index 1264656..f1f21b7 100644 --- a/tests/test_varnish_imagestreams.py +++ b/tests/test_varnish_imagestreams.py @@ -8,7 +8,7 @@ test_dir = Path(os.path.abspath(os.path.dirname(__file__))) -class TestHelmVarnishImageStreams: +class TestHelmRHELVarnishImageStreams: def setup_method(self): package_name = "varnish-imagestreams" @@ -31,3 +31,29 @@ def test_package_imagestream(self, version, registry): self.hc_api.helm_package() self.hc_api.helm_installation() assert self.hc_api.check_imagestreams(version=version, registry=registry) + + +class TestHelmCentOSVarnishImageStreams: + + def setup_method(self): + package_name = "varnish-imagestreams" + path = test_dir / "../charts/centos" + self.hc_api = HelmChartsAPI(path=path, package_name=package_name, tarball_dir=test_dir) + + def teardown_method(self): + self.hc_api.delete_project() + + @pytest.mark.parametrize( + "version,registry", + [ + ("6-el8", "docker.io/centos/varnish-6-centos8:latest"), + ("6-el7", "quay.io/centos7/varnish-6-centos7:latest"), + ("6", "quay.io/centos7/varnish-6-centos7:latest"), + ("5-el8", "docker.io/centos/varnish-5-centos8:latest"), + ], + ) + def test_package_imagestream(self, version, registry): + self.hc_api.set_version("0.0.1") + self.hc_api.helm_package() + self.hc_api.helm_installation() + assert self.hc_api.check_imagestreams(version=version, registry=registry)