We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5db0775 commit 4733546Copy full SHA for 4733546
tests/unit/validate.bats.yaml
@@ -37,13 +37,16 @@ functions:
37
validate_schema: |-
38
env.init "${@}"
39
40
- run yq_set 'sc' '.global.ck8sVersion' 'false'
41
- run ck8s validate sc <<< $'y\n'
42
- assert_failure
+ run ck8s validate wc <<< $'y\n'
+ assert_success
+
43
+ run yq_set 'wc' '.global.baseDomain' '"this is not a valid hostname"'
44
45
+ assert_output --partial 'global.baseDomain'
46
- run yq_set 'wc' '.global.ck8sCloudProvider' '"made-up-non-existant-provider"'
47
48
run ck8s validate wc <<< $'y\n'
49
+ assert_output --partial '"this is not a valid hostname"'
50
51
52
validate_template: |-
0 commit comments