mirror of
https://github.com/helm/helm.git
synced 2026-04-06 01:25:21 -04:00
test(registry): cover OCI revision chart annotation
Signed-off-by: abhay1999 <abhaychaurasiya19@gmail.com>
This commit is contained in:
parent
7e149c7229
commit
f4e8b670bb
1 changed files with 18 additions and 0 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Reference in a new issue