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:
parent
a5c85627b3
commit
bfc01c1e5d
2 changed files with 15 additions and 16 deletions
|
@ -16,7 +16,7 @@ jobs:
|
||||||
- image: docker.mirror.hashicorp.services/cimg/go:1.16
|
- image: docker.mirror.hashicorp.services/cimg/go:1.16
|
||||||
environment:
|
environment:
|
||||||
BATS_VERSION: "1.3.0"
|
BATS_VERSION: "1.3.0"
|
||||||
CHART_VERIFIER_VERSION: "1.0.0"
|
CHART_VERIFIER_VERSION: "1.2.1"
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
|
|
|
@ -6,10 +6,9 @@ setup_file() {
|
||||||
cd `chart_dir`
|
cd `chart_dir`
|
||||||
export VERIFY_OUTPUT="/$BATS_RUN_TMPDIR/verify.json"
|
export VERIFY_OUTPUT="/$BATS_RUN_TMPDIR/verify.json"
|
||||||
export CHART_VOLUME=vault-helm-chart-src
|
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:1.2.1"
|
||||||
local IMAGE="quay.io/redhat-certification/chart-verifier:latest"
|
|
||||||
# chart-verifier requires an openshift version if a cluster isn't available
|
# 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 DISABLED_TESTS="chart-testing"
|
||||||
|
|
||||||
local run_cmd="chart-verifier"
|
local run_cmd="chart-verifier"
|
||||||
|
@ -24,7 +23,7 @@ setup_file() {
|
||||||
# Make sure we have the latest version of chart-verifier
|
# Make sure we have the latest version of chart-verifier
|
||||||
docker pull $IMAGE
|
docker pull $IMAGE
|
||||||
# Start chart-verifier using this volume
|
# 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
|
fi
|
||||||
|
|
||||||
$run_cmd verify $chart_src \
|
$run_cmd verify $chart_src \
|
||||||
|
@ -41,46 +40,46 @@ teardown_file() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "has-kubeversion" {
|
@test "has-kubeversion" {
|
||||||
check_result has-kubeversion
|
check_result v1.0/has-kubeversion
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "is-helm-v3" {
|
@test "is-helm-v3" {
|
||||||
check_result is-helm-v3
|
check_result v1.0/is-helm-v3
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "not-contains-crds" {
|
@test "not-contains-crds" {
|
||||||
check_result not-contains-crds
|
check_result v1.0/not-contains-crds
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "helm-lint" {
|
@test "helm-lint" {
|
||||||
check_result helm-lint
|
check_result v1.0/helm-lint
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "not-contain-csi-objects" {
|
@test "not-contain-csi-objects" {
|
||||||
check_result not-contain-csi-objects
|
check_result v1.0/not-contain-csi-objects
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "has-readme" {
|
@test "has-readme" {
|
||||||
check_result has-readme
|
check_result v1.0/has-readme
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "contains-values" {
|
@test "contains-values" {
|
||||||
check_result contains-values
|
check_result v1.0/contains-values
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "contains-values-schema" {
|
@test "contains-values-schema" {
|
||||||
check_result contains-values-schema
|
check_result v1.0/contains-values-schema
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "contains-test" {
|
@test "contains-test" {
|
||||||
check_result contains-test
|
check_result v1.0/contains-test
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "images-are-certified" {
|
@test "images-are-certified" {
|
||||||
check_result images-are-certified
|
check_result v1.0/images-are-certified
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "chart-testing" {
|
@test "chart-testing" {
|
||||||
skip "Skipping since this test requires a kubernetes/openshift cluster"
|
skip "Skipping since this test requires a kubernetes/openshift cluster"
|
||||||
check_result chart-testing
|
check_result v1.0/chart-testing
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue