From eb6a2b12b73c7cf2e6188f73612aefe3924f11ff Mon Sep 17 00:00:00 2001 From: Yann Hamon Date: Thu, 4 Jun 2020 00:42:12 +0200 Subject: [PATCH] import some integration tests from kubeval --- acceptance.bats | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/acceptance.bats b/acceptance.bats index 2092790..a40bd02 100644 --- a/acceptance.bats +++ b/acceptance.bats @@ -39,3 +39,8 @@ [ "$status" -eq 1 ] [ $(expr "$output" : "^failed opening fixtures/not-here") -ne 0 ] } + +@test "Fail when parsing a config with additional properties and strict set" { + run bin/kubeconform -strict -k8sversion 1.16.0 -file fixtures/extra_property.yaml + [ "$status" -eq 1 ] +} \ No newline at end of file