summaryrefslogtreecommitdiff
path: root/test/system/060-mount.bats
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-12 06:13:14 -0400
committerGitHub <noreply@github.com>2020-10-12 06:13:14 -0400
commit04674298bdbcee0c5c9f3ea6a22fa454fd923141 (patch)
treefeb8dea77ff00501c9d959480cbe73a349da93b5 /test/system/060-mount.bats
parent7876dd51134c946d48f29f98d52dede685656194 (diff)
parent0ab9e39064e5906b80a69d51fab3757ad43f32c5 (diff)
downloadpodman-04674298bdbcee0c5c9f3ea6a22fa454fd923141.tar.gz
podman-04674298bdbcee0c5c9f3ea6a22fa454fd923141.tar.bz2
podman-04674298bdbcee0c5c9f3ea6a22fa454fd923141.zip
Merge pull request #7949 from edsantiago/bats
system tests: cleanup, and add more tests
Diffstat (limited to 'test/system/060-mount.bats')
-rw-r--r--test/system/060-mount.bats13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/system/060-mount.bats b/test/system/060-mount.bats
index f11aff773..ece87acf6 100644
--- a/test/system/060-mount.bats
+++ b/test/system/060-mount.bats
@@ -43,6 +43,11 @@ load helpers
# Start with clean slate
run_podman image umount -a
+ # Get full image ID, to verify umount
+ run_podman image inspect --format '{{.ID}}' $IMAGE
+ iid="$output"
+
+ # Mount, and make sure the mount point exists
run_podman image mount $IMAGE
mount_path="$output"
@@ -60,6 +65,14 @@ load helpers
# Clean up
run_podman image umount $IMAGE
+ is "$output" "$iid" "podman image umount: image ID of what was umounted"
+
+ run_podman image umount $IMAGE
+ is "$output" "" "podman image umount: does not re-umount"
+
+ run_podman 125 image umount no-such-container
+ is "$output" "Error: unable to find a name and tag match for no-such-container in repotags: no such image" \
+ "error message from image umount no-such-container"
run_podman image mount
is "$output" "" "podman image mount, no args, after umount"