From b1e549bb8912d274184e3deb351d6c6c228a4f97 Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani <45800463+rchincha@users.noreply.github.com> Date: Mon, 24 Jul 2023 13:17:16 -0700 Subject: [PATCH] conformance: fix the subject's media-type (#451) We are really referring to the image, hence the image manifest. Signed-off-by: Ramkumar Chinchani --- conformance/setup.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/conformance/setup.go b/conformance/setup.go index 11ef3278..6cc135f2 100644 --- a/conformance/setup.go +++ b/conformance/setup.go @@ -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), }, @@ -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), }, @@ -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), }, @@ -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), },