Added helm push/pull to blackbox tests

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
Petu Eusebiu 2022-07-12 18:02:21 +03:00 committed by Ramkumar Chinchani
parent 01d742718f
commit 2c3415c86b

View File

@ -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
}