diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-03-07 15:23:54 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-07 15:23:54 -0800 |
commit | 1b2f8679b864b882fdccaad6fdd6a5c86c83291b (patch) | |
tree | e131eaf7fbecf6c36ca6f21468cef6bd8ebac4cd /test/system/035-logs.bats | |
parent | e0f224816d41ccf353bccd9ef6933a201cdc7d64 (diff) | |
parent | 589248d2f359dea73fc763ac587e2927f005b300 (diff) | |
download | podman-1b2f8679b864b882fdccaad6fdd6a5c86c83291b.tar.gz podman-1b2f8679b864b882fdccaad6fdd6a5c86c83291b.tar.bz2 podman-1b2f8679b864b882fdccaad6fdd6a5c86c83291b.zip |
Merge pull request #2533 from edsantiago/bats
New system tests under BATS
Diffstat (limited to 'test/system/035-logs.bats')
-rw-r--r-- | test/system/035-logs.bats | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/system/035-logs.bats b/test/system/035-logs.bats new file mode 100644 index 000000000..debec29b6 --- /dev/null +++ b/test/system/035-logs.bats @@ -0,0 +1,24 @@ +#!/usr/bin/env bats -*- bats -*- +# +# Basic tests for podman logs +# + +load helpers + +@test "podman logs - basic test" { + rand_string=$(random_string 40) + + run_podman create $IMAGE echo $rand_string + cid="$output" + + run_podman logs $cid + is "$output" "" "logs on created container: empty" + + run_podman start --attach --interactive $cid + is "$output" "$rand_string" "output from podman-start on created ctr" + is "$output" "$rand_string" "logs of started container" + + run_podman rm $cid +} + +# vim: filetype=sh |