mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-11 14:09:21 +00:00
Add acceptance tests for TAP output
This commit is contained in:
parent
c1f0e9010d
commit
1cfbacd92c
1 changed files with 8 additions and 0 deletions
|
|
@ -216,3 +216,11 @@
|
|||
[ "$status" -eq 1 ]
|
||||
[ "$output" = "failed opening cache folder cache_does_not_exist: stat cache_does_not_exist: no such file or directory" ]
|
||||
}
|
||||
|
||||
@test "Produces correct TAP output" {
|
||||
run bin/kubeconform -output tap fixtures/valid.yaml
|
||||
[ "$status" -eq 0 ]
|
||||
[ "${lines[0]}" == 'TAP version 13' ]
|
||||
[ "${lines[1]}" == 'ok 1 - fixtures/valid.yaml (ReplicationController)' ]
|
||||
[ "${lines[2]}" == '1..1' ]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue