From f4e8b670bbfb8babee5665bc587d2c97eeaefbf5 Mon Sep 17 00:00:00 2001 From: abhay1999 Date: Sun, 5 Apr 2026 18:06:06 +0530 Subject: [PATCH] test(registry): cover OCI revision chart annotation Signed-off-by: abhay1999 --- pkg/registry/chart_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pkg/registry/chart_test.go b/pkg/registry/chart_test.go index 77ccdaab7..ebb1aa687 100644 --- a/pkg/registry/chart_test.go +++ b/pkg/registry/chart_test.go @@ -198,6 +198,24 @@ func TestGenerateOCIAnnotations(t *testing.T) { "anotherkey": "anothervalue", }, }, + { + "Supports org.opencontainers.image.revision from chart annotations", + &chart.Metadata{ + Name: "oci", + Version: "0.0.1", + Description: "OCI Helm Chart", + Annotations: map[string]string{ + ocispec.AnnotationRevision: "abcdef1234567890", + }, + }, + map[string]string{ + "org.opencontainers.image.title": "oci", + "org.opencontainers.image.version": "0.0.1", + "org.opencontainers.image.description": "OCI Helm Chart", + "org.opencontainers.image.created": nowString, + "org.opencontainers.image.revision": "abcdef1234567890", + }, + }, { "Verify Chart Name and Version cannot be overridden from annotations", &chart.Metadata{