diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2021-11-17 21:56:38 +0100 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2021-11-18 00:00:05 +0100 |
commit | cef0a7c14efdef430b1e84140bb68dc3e4c4f8e7 (patch) | |
tree | 47d26d94bda1c3a7e4ff99386be08a55ca389e0a /integration/plugin | |
parent | c09dcfc6931f5cc8b5e1b1fb3f19fb3ddd60b1c3 (diff) | |
download | docker-cef0a7c14efdef430b1e84140bb68dc3e4c4f8e7.tar.gz |
vendor: github.com/opencontainers/image-spec v1.0.2
- Bring mediaType out of reserved status
- specs-go: adding mediaType to the index and manifest structures
full diff: https://github.com/opencontainers/image-spec/compare/v1.0.1...v1.0.2
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'integration/plugin')
-rw-r--r-- | integration/plugin/common/plugin_test.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/integration/plugin/common/plugin_test.go b/integration/plugin/common/plugin_test.go index 72b1b8264d..fb37a5e174 100644 --- a/integration/plugin/common/plugin_test.go +++ b/integration/plugin/common/plugin_test.go @@ -276,11 +276,7 @@ func TestPluginBackCompatMediaTypes(t *testing.T) { assert.NilError(t, err) defer rdr.Close() - type manifest struct { - MediaType string - v1.Manifest - } - var m manifest + var m v1.Manifest assert.NilError(t, json.NewDecoder(rdr).Decode(&m)) assert.Check(t, cmp.Equal(m.MediaType, images.MediaTypeDockerSchema2Manifest)) assert.Check(t, cmp.Len(m.Layers, 1)) |