aboutsummaryrefslogtreecommitdiff
path: root/test/system/050-stop.bats
diff options
context:
space:
mode:
authorToshiki Sonoda <sonoda.toshiki@fujitsu.com>2022-08-02 17:24:23 +0900
committerToshiki Sonoda <sonoda.toshiki@fujitsu.com>2022-08-02 18:28:37 +0900
commit2685c8dc43ff3443e30185345627760c9b94efa3 (patch)
treecef55494ab81a8e799b937cd20851f60516fa418 /test/system/050-stop.bats
parent30cc6dbf085e56c3d67341962e79efacdab3e524 (diff)
downloadpodman-2685c8dc43ff3443e30185345627760c9b94efa3.tar.gz
podman-2685c8dc43ff3443e30185345627760c9b94efa3.tar.bz2
podman-2685c8dc43ff3443e30185345627760c9b94efa3.zip
Output messages display rawInput
`init`, `checkpint/restore` and `cleanup` command now display output messages which is rawInput instead of a container ID. Example: ``` $ podman init <container name> <container name> $ podman init <short container ID> <short container ID> ``` Signed-off-by: Toshiki Sonoda <sonoda.toshiki@fujitsu.com>
Diffstat (limited to 'test/system/050-stop.bats')
-rw-r--r--test/system/050-stop.bats16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/system/050-stop.bats b/test/system/050-stop.bats
index 39002512b..a21a036c2 100644
--- a/test/system/050-stop.bats
+++ b/test/system/050-stop.bats
@@ -59,6 +59,22 @@ load helpers
is "${lines[3]}" "c4--Created.*" "ps -a, created container (unaffected)"
}
+@test "podman stop print IDs or raw input" {
+ # stop -a must print the IDs
+ run_podman run -d $IMAGE top
+ ctrID="$output"
+ run_podman stop --all
+ is "$output" "$ctrID"
+
+ # stop $input must print $input
+ cname=$(random_string)
+ run_podman run -d --name $cname $IMAGE top
+ run_podman stop $cname
+ is "$output" $cname
+
+ run_podman rm -t 0 -f $ctrID $cname
+}
+
# #9051 : podman stop --ignore was not working with podman-remote
@test "podman stop --ignore" {
name=thiscontainerdoesnotexist