Add acceptance tests for TAP output

This commit is contained in:
Yann Hamon 2021-01-02 14:20:54 +01:00
parent c1f0e9010d
commit 1cfbacd92c

View file

@ -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' ]
}