From 2c3415c86b5ce22966a3ef976c602474fcd617e3 Mon Sep 17 00:00:00 2001 From: Petu Eusebiu Date: Tue, 12 Jul 2022 18:02:21 +0300 Subject: [PATCH] Added helm push/pull to blackbox tests Signed-off-by: Petu Eusebiu --- test/blackbox/pushpull.bats | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/blackbox/pushpull.bats b/test/blackbox/pushpull.bats index 8bfbcbc0..160086c7 100644 --- a/test/blackbox/pushpull.bats +++ b/test/blackbox/pushpull.bats @@ -29,6 +29,7 @@ function setup_file() { } } EOF + git -C ${BATS_FILE_TMPDIR} clone https://github.com/project-zot/helm-charts.git setup_zot_file_level ${zot_config_file} wait_zot_reachable "http://127.0.0.1:8080/v2/_catalog" } @@ -79,3 +80,12 @@ function teardown_file() { grep -q "hello world" artifact.txt rm -f artifact.txt } + +@test "push helm chart" { + helm package ${BATS_FILE_TMPDIR}/helm-charts/charts/zot + helm push zot-0.1.0.tgz oci://localhost:8080/zot-chart +} + +@test "pull helm chart" { + helm pull oci://localhost:8080/zot-chart/zot --version 0.1.0 +}