From 1a2038c54faedeb6d7adf6ddaf0e73f8ce4920d4 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 3 Aug 2016 14:59:16 +0200 Subject: [PATCH] Remove unused "size" query parameter for images Image inspect doesn't have a "size" query parameter. The client sent this (when doing `docker inspect --size`), but was unused in the daemon. This removes the unused parameter, and a test that didn't actually test anything. Signed-off-by: Sebastiaan van Stijn --- integration-cli/docker_cli_inspect_test.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/integration-cli/docker_cli_inspect_test.go b/integration-cli/docker_cli_inspect_test.go index 61bab8de9a..1bab86f419 100644 --- a/integration-cli/docker_cli_inspect_test.go +++ b/integration-cli/docker_cli_inspect_test.go @@ -328,18 +328,6 @@ func (s *DockerSuite) TestInspectSizeFlagContainer(c *check.C) { c.Assert(strings.TrimSpace(sz[1]), check.Not(check.Equals), "") } -func (s *DockerSuite) TestInspectSizeFlagImage(c *check.C) { - runSleepingContainer(c, "-d") - - formatStr := "--format='{{.SizeRw}},{{.SizeRootFs}}'" - out, _, err := dockerCmdWithError("inspect", "-s", "--type=image", formatStr, "busybox") - - // Template error rather than - // This is a more correct behavior because images don't have sizes associated. - c.Assert(err, check.Not(check.IsNil)) - c.Assert(out, checker.Contains, "Template parsing error") -} - func (s *DockerSuite) TestInspectTemplateError(c *check.C) { // Template parsing error for both the container and image.