summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@redhat.com>2021-04-14 14:15:13 -0400
committerMatthew Heon <mheon@redhat.com>2021-04-16 11:22:34 -0400
commit443efc6134671aa41fb5b324542f57b4184421fb (patch)
tree4f1f13181c1793faaa53ad11993a0a0d5bb5197e
parent25a1e3f9d6d184bd5612fe0985acf9d49f5d0553 (diff)
downloadpodman-443efc6134671aa41fb5b324542f57b4184421fb.tar.gz
podman-443efc6134671aa41fb5b324542f57b4184421fb.tar.bz2
podman-443efc6134671aa41fb5b324542f57b4184421fb.zip
Test that we don't error out on advertised --log-level values
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
-rw-r--r--test/system/001-basic.bats13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/system/001-basic.bats b/test/system/001-basic.bats
index d276cfda1..f2e85ef6b 100644
--- a/test/system/001-basic.bats
+++ b/test/system/001-basic.bats
@@ -104,4 +104,17 @@ function setup() {
is "$output" "you found me" "sample invocation of 'jq'"
}
+@test "podman --log-level recognizes log levels" {
+ run_podman 1 --log-level=telepathic info
+ is "$output" 'Log Level "telepathic" is not supported.*'
+ run_podman --log-level=trace info
+ run_podman --log-level=debug info
+ run_podman --log-level=info info
+ run_podman --log-level=warn info
+ run_podman --log-level=warning info
+ run_podman --log-level=error info
+ run_podman --log-level=fatal info
+ run_podman --log-level=panic info
+}
+
# vim: filetype=sh