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 <github@gone.nl>
| ... | ... |
@@ -328,18 +328,6 @@ func (s *DockerSuite) TestInspectSizeFlagContainer(c *check.C) {
|
| 328 | 328 |
c.Assert(strings.TrimSpace(sz[1]), check.Not(check.Equals), "<nil>") |
| 329 | 329 |
} |
| 330 | 330 |
|
| 331 |
-func (s *DockerSuite) TestInspectSizeFlagImage(c *check.C) {
|
|
| 332 |
- runSleepingContainer(c, "-d") |
|
| 333 |
- |
|
| 334 |
- formatStr := "--format='{{.SizeRw}},{{.SizeRootFs}}'"
|
|
| 335 |
- out, _, err := dockerCmdWithError("inspect", "-s", "--type=image", formatStr, "busybox")
|
|
| 336 |
- |
|
| 337 |
- // Template error rather than <no value> |
|
| 338 |
- // This is a more correct behavior because images don't have sizes associated. |
|
| 339 |
- c.Assert(err, check.Not(check.IsNil)) |
|
| 340 |
- c.Assert(out, checker.Contains, "Template parsing error") |
|
| 341 |
-} |
|
| 342 |
- |
|
| 343 | 331 |
func (s *DockerSuite) TestInspectTemplateError(c *check.C) {
|
| 344 | 332 |
// Template parsing error for both the container and image. |
| 345 | 333 |
|