No more nondistributable layers in MS registry

Microsoft announced the removal of nondistributable layers from their
images today. This makes the convert test fail since it assumes the
first layer is nondistributable on Windows during the test.

Signed-off-by: Phil Estes <estesp@amazon.com>
This commit is contained in:
Phil Estes 2023-06-13 16:34:44 -04:00
parent 0f6a70d970
commit 38b0f970f0
No known key found for this signature in database
GPG Key ID: FE2598126B196A38

View File

@ -80,10 +80,6 @@ func TestConvert(t *testing.T) {
t.Fatal(err)
}
for _, l := range mani.Layers {
if plats[0].OS == "windows" {
assert.Equal(t, ocispec.MediaTypeImageLayerNonDistributable, l.MediaType)
} else {
assert.Equal(t, ocispec.MediaTypeImageLayer, l.MediaType)
}
}
}