integration-cli: fix TestCreateWithTooLowMemoryLimit: using deprecated API fields

This test was depending on top-level fields that were deprecated since
API v1.18. These fields are no longer sent by current clients.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2024-06-17 00:26:31 +02:00
parent ec4bac431c
commit 37f4616751

View File

@@ -800,8 +800,10 @@ func (s *DockerAPISuite) TestCreateWithTooLowMemoryLimit(c *testing.T) {
"Image": "busybox",
"Cmd": "ls",
"OpenStdin": true,
"CpuShares": 100,
"Memory": 524287
"HostConfig": {
"CpuShares": 100,
"Memory": 524287
}
}`
res, body, err := request.Post(testutil.GetContext(c), "/containers/create", request.RawString(config), request.JSON)