Skip to content

Commit 2f9e4cd

Browse files
author
Moritz Clasmeier
committed
Helm test: verify that we fail for unsupported OpenShift version
1 parent f1ff5bc commit 2f9e4cd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/helm/charts/tests/centralservices/testdata/helmtest/openshift-autosense.test.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@ tests:
1919
- name: "and env.openshift is set to true"
2020
set:
2121
env.openshift: true
22+
- name: "Fail if env.openshift is set to an unsupported version"
23+
set:
24+
env.openshift: 3
25+
expectError: true
26+
expect: |
27+
.error | assertThat(contains("You have specified OpenShift version 3.x, but only version 4.x is currently supported."))

0 commit comments

Comments
 (0)