diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-03-09 15:53:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-09 15:53:58 -0500 |
commit | 4e21acd7b81865300266c9e9916a49454d72a6c7 (patch) | |
tree | b7843d182b2679265f9e8ba391eb325f9e9f5f27 /test/apiv2/20-containers.at | |
parent | d3e6c2a7abe2d3389db01dac81a4de792a4c180b (diff) | |
parent | 166edf00a13a3a81b8b3c2c6678ca8ef1479ad74 (diff) | |
download | podman-4e21acd7b81865300266c9e9916a49454d72a6c7.tar.gz podman-4e21acd7b81865300266c9e9916a49454d72a6c7.tar.bz2 podman-4e21acd7b81865300266c9e9916a49454d72a6c7.zip |
Merge pull request #13455 from rhatdan/docker
Fix handling of tmpfs-mode for tmpfs creation in compat mode
Diffstat (limited to 'test/apiv2/20-containers.at')
-rw-r--r-- | test/apiv2/20-containers.at | 3 |
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 \ |