mirror of
https://github.com/moby/moby.git
synced 2025-07-30 18:23:29 +03:00
Use RepoTags & RepoDigest in inspect
To be coherent with /images/json (images command) Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
@ -128,10 +128,10 @@ func (s *DockerSuite) TestInspectApiImageResponse(c *check.C) {
|
||||
c.Fatalf("unable to unmarshal body for latest version: %v", err)
|
||||
}
|
||||
|
||||
c.Assert(len(imageJSON.Tags), check.Equals, 2)
|
||||
c.Assert(len(imageJSON.RepoTags), check.Equals, 2)
|
||||
|
||||
c.Assert(stringutils.InSlice(imageJSON.Tags, "busybox:latest"), check.Equals, true)
|
||||
c.Assert(stringutils.InSlice(imageJSON.Tags, "busybox:mytag"), check.Equals, true)
|
||||
c.Assert(stringutils.InSlice(imageJSON.RepoTags, "busybox:latest"), check.Equals, true)
|
||||
c.Assert(stringutils.InSlice(imageJSON.RepoTags, "busybox:mytag"), check.Equals, true)
|
||||
}
|
||||
|
||||
// #17131, #17139, #17173
|
||||
|
Reference in New Issue
Block a user