summaryrefslogtreecommitdiff
path: root/test/apiv2/20-containers.at
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2022-03-08 08:57:21 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2022-03-09 08:03:42 -0500
commit166edf00a13a3a81b8b3c2c6678ca8ef1479ad74 (patch)
tree57f8daa35b259595c0aaa984e2a545c00cb6dab2 /test/apiv2/20-containers.at
parent3e870f8c8e3736e9c81473d45c8148d4de0e70c3 (diff)
downloadpodman-166edf00a13a3a81b8b3c2c6678ca8ef1479ad74.tar.gz
podman-166edf00a13a3a81b8b3c2c6678ca8ef1479ad74.tar.bz2
podman-166edf00a13a3a81b8b3c2c6678ca8ef1479ad74.zip
Fix handling of tmpfs-mode for tmpfs creation in compat mode
The permissions on disk were wrong since we were not converting to octal. Fixes: https://github.com/containers/podman/issues/13108 [NO NEW TESTS NEEDED] Since we don't currently test using the docker client Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/apiv2/20-containers.at')
-rw-r--r--test/apiv2/20-containers.at3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/apiv2/20-containers.at b/test/apiv2/20-containers.at
index cc5eda88e..49f8fb3fc 100644
--- a/test/apiv2/20-containers.at
+++ b/test/apiv2/20-containers.at
@@ -394,7 +394,8 @@ t GET containers/$cid/json 200 \
.Config.Healthcheck.Retries=3
# compat api: Test for mount options support
-payload='{"Mounts":[{"Type":"tmpfs","Target":"/mnt/scratch","TmpfsOptions":{"SizeBytes":1024,"Mode":755}}]}'
+# Sigh, JSON can't handle octal. 0755(octal) = 493(decimal)
+payload='{"Mounts":[{"Type":"tmpfs","Target":"/mnt/scratch","TmpfsOptions":{"SizeBytes":1024,"Mode":493}}]}'
t POST containers/create Image=$IMAGE HostConfig="$payload" 201 .Id~[0-9a-f]\\{64\\}
cid=$(jq -r '.Id' <<<"$output")
t GET containers/$cid/json 200 \