Update chart verifier (#579)

The test names now have "v1.0/" prepended. chart-verifier docker
images are now tagged too.
This commit is contained in:
Theron Voran 2021-07-29 14:51:35 -07:00 committed by GitHub
parent a5c85627b3
commit bfc01c1e5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 16 deletions

View file

@ -16,7 +16,7 @@ jobs:
- image: docker.mirror.hashicorp.services/cimg/go:1.16
environment:
BATS_VERSION: "1.3.0"
CHART_VERIFIER_VERSION: "1.0.0"
CHART_VERIFIER_VERSION: "1.2.1"
steps:
- checkout
- run:

View file

@ -6,10 +6,9 @@ setup_file() {
cd `chart_dir`
export VERIFY_OUTPUT="/$BATS_RUN_TMPDIR/verify.json"
export CHART_VOLUME=vault-helm-chart-src
# Note: currently `latest` is the only tag available in the chart-verifier repo.
local IMAGE="quay.io/redhat-certification/chart-verifier:latest"
local IMAGE="quay.io/redhat-certification/chart-verifier:1.2.1"
# chart-verifier requires an openshift version if a cluster isn't available
local OPENSHIFT_VERSION="4.7"
local OPENSHIFT_VERSION="4.8"
local DISABLED_TESTS="chart-testing"
local run_cmd="chart-verifier"
@ -24,7 +23,7 @@ setup_file() {
# Make sure we have the latest version of chart-verifier
docker pull $IMAGE
# Start chart-verifier using this volume
run_cmd="docker run --rm --volumes-from $CHART_VOLUME $IMAGE"
run_cmd="docker run --rm --volumes-from $CHART_VOLUME -w $chart_src $IMAGE"
fi
$run_cmd verify $chart_src \
@ -41,46 +40,46 @@ teardown_file() {
}
@test "has-kubeversion" {
check_result has-kubeversion
check_result v1.0/has-kubeversion
}
@test "is-helm-v3" {
check_result is-helm-v3
check_result v1.0/is-helm-v3
}
@test "not-contains-crds" {
check_result not-contains-crds
check_result v1.0/not-contains-crds
}
@test "helm-lint" {
check_result helm-lint
check_result v1.0/helm-lint
}
@test "not-contain-csi-objects" {
check_result not-contain-csi-objects
check_result v1.0/not-contain-csi-objects
}
@test "has-readme" {
check_result has-readme
check_result v1.0/has-readme
}
@test "contains-values" {
check_result contains-values
check_result v1.0/contains-values
}
@test "contains-values-schema" {
check_result contains-values-schema
check_result v1.0/contains-values-schema
}
@test "contains-test" {
check_result contains-test
check_result v1.0/contains-test
}
@test "images-are-certified" {
check_result images-are-certified
check_result v1.0/images-are-certified
}
@test "chart-testing" {
skip "Skipping since this test requires a kubernetes/openshift cluster"
check_result chart-testing
check_result v1.0/chart-testing
}