@@ -31,10 +31,9 @@ func TestManifestList(t *testing.T) {
3131 manifestList : `
3232{
3333 "schemaVersion": 2,
34- "mediaType": "invalid",
3534 "manifests": [
3635 {
37- "mediaType": "application/vnd.oci.image.manifest.v1+json ",
36+ "mediaType": "invalid ",
3837 "size": 7143,
3938 "digest": "sha256:e692418e4cbaf90ca69d05a66403747baa33ee08806650b51fab815ad7fc331f",
4039 "platform": {
@@ -53,7 +52,6 @@ func TestManifestList(t *testing.T) {
5352 manifestList : `
5453{
5554 "schemaVersion": 2,
56- "mediaType": "application/vnd.oci.image.manifest.list.v1+json",
5755 "manifests": [
5856 {
5957 "mediaType": "application/vnd.oci.image.manifest.v1+json",
@@ -78,7 +76,6 @@ func TestManifestList(t *testing.T) {
7876 manifestList : `
7977{
8078 "schemaVersion": 2,
81- "mediaType": "application/vnd.oci.image.manifest.list.v1+json",
8279 "manifests": [
8380 {
8481 "mediaType": "application/vnd.oci.image.manifest.v1+json",
@@ -102,7 +99,6 @@ func TestManifestList(t *testing.T) {
10299 manifestList : `
103100{
104101 "schemaVersion": 2,
105- "mediaType": "application/vnd.oci.image.manifest.list.v1+json",
106102 "manifests": [
107103 {
108104 "mediaType": "application/vnd.oci.image.manifest.v1+json",
@@ -120,7 +116,6 @@ func TestManifestList(t *testing.T) {
120116 manifestList : `
121117{
122118 "schemaVersion": 2,
123- "mediaType": "application/vnd.oci.image.manifest.list.v1+json",
124119 "manifests": [
125120 {
126121 "mediaType": "invalid",
@@ -145,7 +140,6 @@ func TestManifestList(t *testing.T) {
145140 manifestList : `
146141{
147142 "schemaVersion": 2,
148- "mediaType": "application/vnd.oci.image.manifest.list.v1+json",
149143 "manifests": [
150144 {
151145 "mediaType": "",
@@ -170,7 +164,6 @@ func TestManifestList(t *testing.T) {
170164 manifestList : `
171165{
172166 "schemaVersion": 2,
173- "mediaType": "application/vnd.oci.image.manifest.list.v1+json",
174167 "manifests": [
175168 {
176169 "mediaType": "application/vnd.oci.image.manifest.v1+json",
@@ -208,7 +201,6 @@ func TestManifestList(t *testing.T) {
208201 manifestList : `
209202{
210203 "schemaVersion": 2,
211- "mediaType": "application/vnd.oci.image.manifest.list.v1+json",
212204 "manifests": [
213205 {
214206 "mediaType": "application/vnd.oci.image.manifest.v1+json",
@@ -230,7 +222,6 @@ func TestManifestList(t *testing.T) {
230222 manifestList : `
231223{
232224 "schemaVersion": 2,
233- "mediaType": "application/vnd.oci.image.manifest.list.v1+json",
234225 "manifests": [
235226 {
236227 "mediaType": "application/customized.manifest+json",
0 commit comments