aboutsummaryrefslogtreecommitdiff
path: root/test/system/400-unprivileged-access.bats
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2019-04-10 09:39:52 -0600
committerEd Santiago <santiago@redhat.com>2019-04-18 15:39:21 -0600
commit78bd2eac0637fdcd93afbb6f9069b016d826e12c (patch)
tree971c82de06549d873fc04abcc79f64626b4734c8 /test/system/400-unprivileged-access.bats
parente4947e5fd699f584cb815a4f4fd92f22b62f2c8a (diff)
downloadpodman-78bd2eac0637fdcd93afbb6f9069b016d826e12c.tar.gz
podman-78bd2eac0637fdcd93afbb6f9069b016d826e12c.tar.bz2
podman-78bd2eac0637fdcd93afbb6f9069b016d826e12c.zip
bats - various small updates
- podman-remote: - enable log, run and build tests, they're working now - well, except build + rootless. Skip that one. - add explanation of why info test is skipped - Giuseppe's permission test: - validate GraphRoot and RunRoot values - add verbose logging, to enable seeing full directory tree permissions on error Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/system/400-unprivileged-access.bats')
-rw-r--r--test/system/400-unprivileged-access.bats8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/system/400-unprivileged-access.bats b/test/system/400-unprivileged-access.bats
index 0358b3beb..738d8d87b 100644
--- a/test/system/400-unprivileged-access.bats
+++ b/test/system/400-unprivileged-access.bats
@@ -31,6 +31,12 @@ die() {
echo "#| FAIL: $*" >&2
echo "#\\^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" >&2
+ # Show permissions of directories from here on up
+ while expr "$path" : "/var/lib/containers" >/dev/null; do
+ echo "#| $(ls -ld $path)"
+ path=$(dirname $path)
+ done
+
exit 1
}
@@ -65,8 +71,10 @@ EOF
# get podman image and container storage directories
run_podman info --format '{{.store.GraphRoot}}'
+ is "$output" "/var/lib/containers/storage" "GraphRoot in expected place"
GRAPH_ROOT="$output"
run_podman info --format '{{.store.RunRoot}}'
+ is "$output" "/var/run/containers/storage" "RunRoot in expected place"
RUN_ROOT="$output"
# The main test: find all world-writable files or directories underneath