diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-03-04 15:18:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-04 15:18:53 -0500 |
commit | 4e5cc6a3a61d9d2f1d3b97fc10684ec5617816ab (patch) | |
tree | db4260214b8dcc0e82c00b088772c47c3a8fde1f /test | |
parent | a26b15265e6361647a99876ca698986b25296179 (diff) | |
parent | 8453424e2cfbe54b204b6fdb3515ea9f7f001023 (diff) | |
download | podman-4e5cc6a3a61d9d2f1d3b97fc10684ec5617816ab.tar.gz podman-4e5cc6a3a61d9d2f1d3b97fc10684ec5617816ab.tar.bz2 podman-4e5cc6a3a61d9d2f1d3b97fc10684ec5617816ab.zip |
Merge pull request #9607 from mheon/fix_9523
Respect NanoCpus in Compat Create
Diffstat (limited to 'test')
-rw-r--r-- | test/apiv2/20-containers.at | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/apiv2/20-containers.at b/test/apiv2/20-containers.at index 18364a47d..f73d03123 100644 --- a/test/apiv2/20-containers.at +++ b/test/apiv2/20-containers.at @@ -263,3 +263,12 @@ t GET containers/json 200 \ .[0].Ports[0].Type="tcp" podman stop bar + +# Test CPU limit (NanoCPUs) +t POST containers/create '"Image":"'$IMAGE'","HostConfig":{"NanoCpus":500000}' 201 \ + .Id~[0-9a-f]\\{64\\} +cid=$(jq -r '.Id' <<<"$output") +t GET containers/$cid/json 200 \ + .HostConfig.NanoCpus=500000 + +t DELETE containers/$cid?v=true 204 |