mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-11 14:09:21 +00:00
Add more acceptance tests
This commit is contained in:
parent
3e27220304
commit
456f255478
1 changed files with 12 additions and 0 deletions
|
|
@ -18,6 +18,12 @@
|
|||
[ "$output" = "fixtures/int_or_string.yaml - Service heapster is valid" ]
|
||||
}
|
||||
|
||||
@test "Pass when parsing a valid Kubernetes config JSON file" {
|
||||
run bin/kubeconform -kubernetes-version 1.17.1 -summary fixtures/valid.json
|
||||
[ "$status" -eq 0 ]
|
||||
[ "$output" = "Summary: 1 resource found in 1 file - Valid: 1, Invalid: 0, Errors: 0 Skipped: 0" ]
|
||||
}
|
||||
|
||||
@test "Pass when parsing a valid Kubernetes config YAML file with generate name" {
|
||||
run bin/kubeconform -verbose fixtures/generate_name.yaml
|
||||
[ "$status" -eq 0 ]
|
||||
|
|
@ -36,6 +42,12 @@
|
|||
[ "$output" = "fixtures/null_string.yaml - Service frontend is valid" ]
|
||||
}
|
||||
|
||||
@test "Pass when parsing a valid Kubernetes config file with null strings" {
|
||||
run bin/kubeconform -summary fixtures/null_string.yaml
|
||||
[ "$status" -eq 0 ]
|
||||
[ "$output" = "Summary: 1 resource found in 1 file - Valid: 1, Invalid: 0, Errors: 0 Skipped: 0" ]
|
||||
}
|
||||
|
||||
@test "Pass when parsing a multi-document config file" {
|
||||
run bin/kubeconform -summary fixtures/multi_valid.yaml
|
||||
[ "$status" -eq 0 ]
|
||||
|
|
|
|||
Loading…
Reference in a new issue