test(registry): cover OCI revision chart annotation

Signed-off-by: abhay1999 <abhaychaurasiya19@gmail.com>
This commit is contained in:
abhay1999 2026-04-05 18:06:06 +05:30
parent 7e149c7229
commit f4e8b670bb

View file

@ -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{