@@ -6,10 +6,9 @@ setup_file() {
6
6
cd ` chart_dir`
7
7
export VERIFY_OUTPUT=" /$BATS_RUN_TMPDIR /verify.json"
8
8
export CHART_VOLUME=vault-helm-chart-src
9
- # Note: currently `latest` is the only tag available in the chart-verifier repo.
10
- local IMAGE=" quay.io/redhat-certification/chart-verifier:latest"
9
+ local IMAGE=" quay.io/redhat-certification/chart-verifier:1.2.1"
11
10
# chart-verifier requires an openshift version if a cluster isn't available
12
- local OPENSHIFT_VERSION=" 4.7 "
11
+ local OPENSHIFT_VERSION=" 4.8 "
13
12
local DISABLED_TESTS=" chart-testing"
14
13
15
14
local run_cmd=" chart-verifier"
@@ -24,7 +23,7 @@ setup_file() {
24
23
# Make sure we have the latest version of chart-verifier
25
24
docker pull $IMAGE
26
25
# Start chart-verifier using this volume
27
- run_cmd=" docker run --rm --volumes-from $CHART_VOLUME $IMAGE "
26
+ run_cmd=" docker run --rm --volumes-from $CHART_VOLUME -w $chart_src $IMAGE "
28
27
fi
29
28
30
29
$run_cmd verify $chart_src \
@@ -41,46 +40,46 @@ teardown_file() {
41
40
}
42
41
43
42
@test " has-kubeversion" {
44
- check_result has-kubeversion
43
+ check_result v1.0/ has-kubeversion
45
44
}
46
45
47
46
@test " is-helm-v3" {
48
- check_result is-helm-v3
47
+ check_result v1.0/ is-helm-v3
49
48
}
50
49
51
50
@test " not-contains-crds" {
52
- check_result not-contains-crds
51
+ check_result v1.0/ not-contains-crds
53
52
}
54
53
55
54
@test " helm-lint" {
56
- check_result helm-lint
55
+ check_result v1.0/ helm-lint
57
56
}
58
57
59
58
@test " not-contain-csi-objects" {
60
- check_result not-contain-csi-objects
59
+ check_result v1.0/ not-contain-csi-objects
61
60
}
62
61
63
62
@test " has-readme" {
64
- check_result has-readme
63
+ check_result v1.0/ has-readme
65
64
}
66
65
67
66
@test " contains-values" {
68
- check_result contains-values
67
+ check_result v1.0/ contains-values
69
68
}
70
69
71
70
@test " contains-values-schema" {
72
- check_result contains-values-schema
71
+ check_result v1.0/ contains-values-schema
73
72
}
74
73
75
74
@test " contains-test" {
76
- check_result contains-test
75
+ check_result v1.0/ contains-test
77
76
}
78
77
79
78
@test " images-are-certified" {
80
- check_result images-are-certified
79
+ check_result v1.0/ images-are-certified
81
80
}
82
81
83
82
@test " chart-testing" {
84
83
skip " Skipping since this test requires a kubernetes/openshift cluster"
85
- check_result chart-testing
84
+ check_result v1.0/ chart-testing
86
85
}
0 commit comments