Skip to content

Commit

Permalink
conformance: fix the subject's media-type (#451)
Browse files Browse the repository at this point in the history
We are really referring to the image, hence the image manifest.

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
  • Loading branch information
rchincha authored Jul 24, 2023
1 parent 9b5b19b commit b1e549b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions conformance/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func init() {
Digest: godigest.FromBytes(testRefBlobA),
},
Subject: &descriptor{
MediaType: "application/vnd.oci.image.config.v1+json",
MediaType: "application/vnd.oci.image.manifest.v1+json",
Size: int64(len(manifests[4].Content)),
Digest: godigest.FromBytes(manifests[4].Content),
},
Expand All @@ -366,7 +366,7 @@ func init() {
Digest: godigest.FromBytes(testRefBlobB),
},
Subject: &descriptor{
MediaType: "application/vnd.oci.image.config.v1+json",
MediaType: "application/vnd.oci.image.manifest.v1+json",
Size: int64(len(manifests[4].Content)),
Digest: godigest.FromBytes(manifests[4].Content),
},
Expand All @@ -389,7 +389,7 @@ func init() {
ArtifactType: testRefArtifactTypeA,
Config: emptyJSONDescriptor,
Subject: &descriptor{
MediaType: "application/vnd.oci.image.config.v1+json",
MediaType: "application/vnd.oci.image.manifest.v1+json",
Size: int64(len(manifests[4].Content)),
Digest: godigest.FromBytes(manifests[4].Content),
},
Expand All @@ -415,7 +415,7 @@ func init() {
ArtifactType: testRefArtifactTypeB,
Config: emptyJSONDescriptor,
Subject: &descriptor{
MediaType: "application/vnd.oci.image.config.v1+json",
MediaType: "application/vnd.oci.image.manifest.v1+json",
Size: int64(len(manifests[4].Content)),
Digest: godigest.FromBytes(manifests[4].Content),
},
Expand Down

0 comments on commit b1e549b

Please sign in to comment.