diff --git a/acceptance.bats b/acceptance.bats index 7d698e8..a953f80 100755 --- a/acceptance.bats +++ b/acceptance.bats @@ -82,11 +82,6 @@ [ "$output" = "Summary: 0 resource found in 1 file - Valid: 0, Invalid: 0, Errors: 0, Skipped: 0" ] } -@test "Fail when parsing a config with additional properties and strict set" { - run bin/kubeconform -strict -kubernetes-version 1.16.0 fixtures/extra_property.yaml - [ "$status" -eq 1 ] -} - @test "Fail when parsing a config with CRD" { run bin/kubeconform fixtures/test_crd.yaml [ "$status" -eq 1 ] @@ -108,6 +103,11 @@ [ "$output" = "Summary: 1 resource found in 1 file - Valid: 1, Invalid: 0, Errors: 0, Skipped: 0" ] } +@test "Fail when parsing a config with additional properties and strict set" { + run bin/kubeconform -strict -kubernetes-version 1.16.0 fixtures/extra_property.yaml + [ "$status" -eq 1 ] +} + @test "Pass when using a valid, preset -schema-location" { run bin/kubeconform -schema-location https://kubernetesjsonschema.dev fixtures/valid.yaml [ "$status" -eq 0 ]