summaryrefslogtreecommitdiff
path: root/test/system/001-basic.bats
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@redhat.com>2021-04-14 14:15:13 -0400
committerNalin Dahyabhai <nalin@redhat.com>2021-04-14 14:16:09 -0400
commitbc86c50cd81bc3267ec8b9840e1a0e705231f336 (patch)
tree76a1c5850a39fa521979f17b3a601be0bb2756be /test/system/001-basic.bats
parent6bde4d00dd5d1ce62585c3aac10076d53b3d9e1f (diff)
downloadpodman-bc86c50cd81bc3267ec8b9840e1a0e705231f336.tar.gz
podman-bc86c50cd81bc3267ec8b9840e1a0e705231f336.tar.bz2
podman-bc86c50cd81bc3267ec8b9840e1a0e705231f336.zip
Test that we don't error out on advertised --log-level values
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Diffstat (limited to 'test/system/001-basic.bats')
-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 081bb1171..35107f0a0 100644
--- a/test/system/001-basic.bats
+++ b/test/system/001-basic.bats
@@ -111,4 +111,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