summaryrefslogtreecommitdiff
path: root/test/system/060-mount.bats
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2020-10-05 10:27:18 -0600
committerEd Santiago <santiago@redhat.com>2020-10-07 10:43:02 -0600
commit0ab9e39064e5906b80a69d51fab3757ad43f32c5 (patch)
tree9f1049eca9db1be36e486128f59bfae41d4b627b /test/system/060-mount.bats
parenta7500e54a4646c7db477349e2530ac13df77b8fa (diff)
downloadpodman-0ab9e39064e5906b80a69d51fab3757ad43f32c5.tar.gz
podman-0ab9e39064e5906b80a69d51fab3757ad43f32c5.tar.bz2
podman-0ab9e39064e5906b80a69d51fab3757ad43f32c5.zip
system tests: cleanup, and add more tests
- images test: add test for 'table' and '\t' formatting - image mount test: check output from 'umount', test repeat umount (NOP), and test invalid-umount - kill test: remove kludgy workaround for crun signal bug ref: #5004 -- code is no longer needed (fingers crossed), and the workaround involved pulling an expensive image. - selinux test: add new tests for shared context in: * pods , w/ and w/o infra container (ref: #7902) * containers with namespace sharing: --ipc, --pid, --net - selinux test: new test for --pid=host (disabled pending propagation of container-selinux-2.146, ref: #7939) Signed-off-by: Ed Santiago <santiago@redhat.com>
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 75c88e4ad..cd3b8ff5b 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"