summaryrefslogtreecommitdiff
path: root/test/system/035-logs.bats
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-03-07 15:23:54 -0800
committerGitHub <noreply@github.com>2019-03-07 15:23:54 -0800
commit1b2f8679b864b882fdccaad6fdd6a5c86c83291b (patch)
treee131eaf7fbecf6c36ca6f21468cef6bd8ebac4cd /test/system/035-logs.bats
parente0f224816d41ccf353bccd9ef6933a201cdc7d64 (diff)
parent589248d2f359dea73fc763ac587e2927f005b300 (diff)
downloadpodman-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.bats24
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