You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: acceptance.bats
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -180,6 +180,13 @@ resetCacheFolder() {
180
180
[ "$status"-eq 1 ]
181
181
}
182
182
183
+
@test "Fail early when passing a non valid -kubernetes-version" {
184
+
run bin/kubeconform -kubernetes-version 1.25 fixtures/valid.yaml
185
+
[ "${lines[0]}"=='invalid value "1.25" for flag -kubernetes-version: 1.25 is not a valid version. Valid values are "master" (default) or full version x.y.z (e.g. "1.27.2")' ]
186
+
[[ "${lines[1]}"=="Usage:"* ]]
187
+
[ "$status"-eq 1 ]
188
+
}
189
+
183
190
@test "Pass with a valid input when validating against openshift manifests" {
0 commit comments