c8d/integration/TestBuildOnBuildCache skip parent check
Parent is a graph-driver only field which is stored in the ImageStore. It's not available when using containerd snapshotters. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
parent
2004f60bd6
commit
14af90b868
1 changed files with 7 additions and 3 deletions
|
@ -303,9 +303,13 @@ func (s *DockerAPISuite) TestBuildOnBuildCache(c *testing.T) {
|
|||
client := testEnv.APIClient()
|
||||
|
||||
// check parentID is correct
|
||||
image, _, err := client.ImageInspectWithRaw(context.Background(), childID)
|
||||
assert.NilError(c, err)
|
||||
assert.Check(c, is.Equal(parentID, image.Parent))
|
||||
// Parent is graphdriver-only
|
||||
if !testEnv.UsingSnapshotter() {
|
||||
image, _, err := client.ImageInspectWithRaw(context.Background(), childID)
|
||||
assert.NilError(c, err)
|
||||
|
||||
assert.Check(c, is.Equal(parentID, image.Parent))
|
||||
}
|
||||
}
|
||||
|
||||
func (s *DockerRegistrySuite) TestBuildCopyFromForcePull(c *testing.T) {
|
||||
|
|
Loading…
Add table
Reference in a new issue