acceptnace tests for custom registry

This commit is contained in:
Yann Hamon 2020-10-18 14:07:47 +02:00
parent 9dda2ff599
commit 472100550c

View file

@ -105,3 +105,13 @@
run bin/kubeconform --registry 'https://kubernetesjsonschema.dev/{{ .NormalizedVersion }}-standalone{{ .StrictSuffix }}/{{ .ResourceKind }}{{ .KindSuffix }}.json' fixtures/valid.yaml
[ "$status" -eq 0 ]
}
@test "Fail when using an invalid HTTP --registry" {
run bin/kubeconform --registry 'http://foo' fixtures/valid.yaml
[ "$status" -eq 1 ]
}
@test "Fail when using an invalid non-HTTP --registry" {
run bin/kubeconform --registry 'foo' fixtures/valid.yaml
[ "$status" -eq 1 ]
}