diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-08-27 16:22:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-27 16:22:55 -0400 |
commit | a2acd04447a66027dc02a210d2961fcde6868985 (patch) | |
tree | 9d6de09e9d29390d61b2fb7ffde9761ff3a26ea5 /test/apiv2/20-containers.at | |
parent | b21f8ea206442b93dd6ac95648b185cf03e912b7 (diff) | |
parent | a5adc3d80f7387c75c83f1e0c7ad3333fdc48806 (diff) | |
download | podman-a2acd04447a66027dc02a210d2961fcde6868985.tar.gz podman-a2acd04447a66027dc02a210d2961fcde6868985.tar.bz2 podman-a2acd04447a66027dc02a210d2961fcde6868985.zip |
Merge pull request #11334 from jwhonce/issues/10831
Add support for mount options to API
Diffstat (limited to 'test/apiv2/20-containers.at')
-rw-r--r-- | test/apiv2/20-containers.at | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/apiv2/20-containers.at b/test/apiv2/20-containers.at index e2eb94233..8fdecb4bd 100644 --- a/test/apiv2/20-containers.at +++ b/test/apiv2/20-containers.at @@ -366,4 +366,12 @@ t GET containers/$cid/json 200 \ .Config.Healthcheck.Timeout=30000000000 \ .Config.Healthcheck.Retries=3 +# compat api: Test for mount options support +payload='{"Mounts":[{"Type":"tmpfs","Target":"/mnt/scratch","TmpfsOptions":{"SizeBytes":1024,"Mode":755}}]}' +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 \ + .HostConfig.Tmpfs['"/mnt/scratch"']~.*size=1024.* \ + .HostConfig.Tmpfs['"/mnt/scratch"']~.*mode=755.* + t DELETE containers/$cid?v=true 204 |