Skip to content

Commit

Permalink
Add tests for centos varnish-imagestreams
Browse files Browse the repository at this point in the history
  • Loading branch information
adobes1 committed Aug 21, 2023
1 parent 6992e21 commit f7059e9
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion tests/test_varnish_imagestreams.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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)

0 comments on commit f7059e9

Please sign in to comment.