Skip to content

Commit

Permalink
Update bats testing to include properties testing
Browse files Browse the repository at this point in the history
Signed-off-by: Hamish Hutchings <[email protected]>
  • Loading branch information
moredhel committed Jun 25, 2021
1 parent c55d00e commit e2f030d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions acceptance.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand Down

0 comments on commit e2f030d

Please sign in to comment.