summaryrefslogtreecommitdiff
path: root/test/system/520-checkpoint.bats
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-08-09 06:13:10 +0000
committerGitHub <noreply@github.com>2022-08-09 06:13:10 +0000
commit7992d86ab3f69f5c3b4872a4fecbc340579ba78d (patch)
tree26d90695ab4b7c34b65c6094ef343a135d5a7e56 /test/system/520-checkpoint.bats
parent28607a9238b30be9e2b6dd6476f410eed5314ae9 (diff)
parent2685c8dc43ff3443e30185345627760c9b94efa3 (diff)
downloadpodman-7992d86ab3f69f5c3b4872a4fecbc340579ba78d.tar.gz
podman-7992d86ab3f69f5c3b4872a4fecbc340579ba78d.tar.bz2
podman-7992d86ab3f69f5c3b4872a4fecbc340579ba78d.zip
Merge pull request #15134 from sstosh/improve-output
Output messages display rawInput
Diffstat (limited to 'test/system/520-checkpoint.bats')
-rw-r--r--test/system/520-checkpoint.bats19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/system/520-checkpoint.bats b/test/system/520-checkpoint.bats
index 7c8fc143a..73fa5d4c4 100644
--- a/test/system/520-checkpoint.bats
+++ b/test/system/520-checkpoint.bats
@@ -101,6 +101,25 @@ function teardown() {
run_podman rm -t 0 -f $cid
}
+@test "podman checkpoint/restore print IDs or raw input" {
+ # checkpoint/restore -a must print the IDs
+ run_podman run -d $IMAGE top
+ ctrID="$output"
+ run_podman container checkpoint -a
+ is "$output" "$ctrID"
+ run_podman container restore -a
+ is "$output" "$ctrID"
+
+ # checkpoint/restore $input must print $input
+ cname=$(random_string)
+ run_podman run -d --name $cname $IMAGE top
+ run_podman container checkpoint $cname
+ is "$output" $cname
+ run_podman container restore $cname
+ is "$output" $cname
+
+ run_podman rm -t 0 -f $ctrID $cname
+}
@test "podman checkpoint --export, with volumes" {
skip_if_remote "Test uses --root/--runroot, which are N/A over remote"