summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2021-08-04 18:45:14 +0000
committerGitHub <noreply@github.com>2021-08-04 18:45:14 +0000
commit9c2fc4b6228889ea850656468381a8be45f7e3cd (patch)
tree0fefde08a04349dc45336c9a5fcd4d748d23897c /test
parent77f8c6549ab1df393f613cc13e93e8dcec859614 (diff)
parent41f94a4dc1a6c426f2d05c440bc36a4e7b425809 (diff)
downloadpodman-9c2fc4b6228889ea850656468381a8be45f7e3cd.tar.gz
podman-9c2fc4b6228889ea850656468381a8be45f7e3cd.tar.bz2
podman-9c2fc4b6228889ea850656468381a8be45f7e3cd.zip
Merge pull request #11113 from rhatdan/unpause
Fix podman unpause to work like podman stop
Diffstat (limited to 'test')
-rw-r--r--test/system/080-pause.bats19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/system/080-pause.bats b/test/system/080-pause.bats
index ea4c85f8f..1eb47dcfb 100644
--- a/test/system/080-pause.bats
+++ b/test/system/080-pause.bats
@@ -57,4 +57,23 @@ load helpers
run_podman 125 unpause $cname
}
+@test "podman unpause --all" {
+ if is_rootless && ! is_cgroupsv2; then
+ skip "'podman pause' (rootless) only works with cgroups v2"
+ fi
+
+ cname=$(random_string 10)
+ run_podman create --name notrunning $IMAGE
+ run_podman run -d --name $cname $IMAGE sleep 100
+ cid="$output"
+ run_podman pause $cid
+ run_podman inspect --format '{{.State.Status}}' $cid
+ is "$output" "paused" "podman inspect .State.Status"
+ run_podman unpause --all
+ is "$output" "$cid" "podman unpause output"
+ run_podman ps --format '{{.ID}} {{.Names}} {{.Status}}'
+ is "$output" "${cid:0:12} $cname Up.*" "podman ps on resumed container"
+ run_podman rm -f $cname
+ run_podman rm -f notrunning
+}
# vim: filetype=sh