From e2f030d96d516b64a33d1834cec0c3610d869382 Mon Sep 17 00:00:00 2001 From: Hamish Hutchings Date: Fri, 25 Jun 2021 09:25:51 +0200 Subject: [PATCH] Update bats testing to include properties testing Signed-off-by: Hamish Hutchings --- acceptance.bats | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/acceptance.bats b/acceptance.bats index 4ea5a917ea..8be4e5eb8b 100755 --- a/acceptance.bats +++ b/acceptance.bats @@ -168,6 +168,11 @@ [[ "$output" =~ "ALB \`my-alb-listener\` is using HTTP rather than HTTP" ]] } +@test "Can parse properties files" { + run ./conftest test -p examples/properties/policy/ examples/properties/sample.properties + [ "$status" -eq 0 ] +} + @test "Can parse stdin with parser flag" { run bash -c "cat examples/ini/grafana.ini | ./conftest test -p examples/ini/policy --parser ini -" [ "$status" -eq 1 ]