image: rework parent/child/history matching

Rework our expectations of how images that are derived from each other
look, so that we don't assume that an image that's derived from a base
image always adds layers relative to that base image.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
Nalin Dahyabhai
2019-04-22 16:44:58 -04:00
parent 5c81a117f1
commit 4daac4736e
2 changed files with 197 additions and 34 deletions

View File

@ -139,7 +139,7 @@ func TestImage_New(t *testing.T) {
newImage, err := ir.New(context.Background(), img, "", "", writer, nil, SigningOptions{}, false, nil)
assert.NoError(t, err)
assert.NotEqual(t, newImage.ID(), "")
err = newImage.Remove(false)
err = newImage.Remove(context.Background(), false)
assert.NoError(t, err)
}