1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#!/usr/bin/env bats
load helpers
@test "log-level set to debug" {
run_buildah --log-level=debug images -q
expect_output --substring "level=debug "
}
@test "log-level set to info" {
run_buildah --log-level=info images -q
expect_output ""
}
@test "log-level set to warn" {
run_buildah --log-level=warn images -q
expect_output ""
}
@test "log-level set to error" {
run_buildah --log-level=error images -q
expect_output ""
}
@test "log-level set to invalid" {
run_buildah 125 --log-level=invalid images -q
expect_output --substring "unable to parse log level"
}
|