Skip to content

Commit b1e549b

Browse files
authored
conformance: fix the subject's media-type (#451)
We are really referring to the image, hence the image manifest. Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
1 parent 9b5b19b commit b1e549b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

conformance/setup.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ func init() {
341341
Digest: godigest.FromBytes(testRefBlobA),
342342
},
343343
Subject: &descriptor{
344-
MediaType: "application/vnd.oci.image.config.v1+json",
344+
MediaType: "application/vnd.oci.image.manifest.v1+json",
345345
Size: int64(len(manifests[4].Content)),
346346
Digest: godigest.FromBytes(manifests[4].Content),
347347
},
@@ -366,7 +366,7 @@ func init() {
366366
Digest: godigest.FromBytes(testRefBlobB),
367367
},
368368
Subject: &descriptor{
369-
MediaType: "application/vnd.oci.image.config.v1+json",
369+
MediaType: "application/vnd.oci.image.manifest.v1+json",
370370
Size: int64(len(manifests[4].Content)),
371371
Digest: godigest.FromBytes(manifests[4].Content),
372372
},
@@ -389,7 +389,7 @@ func init() {
389389
ArtifactType: testRefArtifactTypeA,
390390
Config: emptyJSONDescriptor,
391391
Subject: &descriptor{
392-
MediaType: "application/vnd.oci.image.config.v1+json",
392+
MediaType: "application/vnd.oci.image.manifest.v1+json",
393393
Size: int64(len(manifests[4].Content)),
394394
Digest: godigest.FromBytes(manifests[4].Content),
395395
},
@@ -415,7 +415,7 @@ func init() {
415415
ArtifactType: testRefArtifactTypeB,
416416
Config: emptyJSONDescriptor,
417417
Subject: &descriptor{
418-
MediaType: "application/vnd.oci.image.config.v1+json",
418+
MediaType: "application/vnd.oci.image.manifest.v1+json",
419419
Size: int64(len(manifests[4].Content)),
420420
Digest: godigest.FromBytes(manifests[4].Content),
421421
},

0 commit comments

Comments
 (0)