mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-11 14:09:21 +00:00
acceptnace tests for custom registry
This commit is contained in:
parent
9dda2ff599
commit
472100550c
1 changed files with 10 additions and 0 deletions
|
|
@ -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 ]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue