Skip to content

Commit

Permalink
test: dot in a label for tag expansion (#633)
Browse files Browse the repository at this point in the history
This just adds coverage for case when there is a dot
in the label name.

Signed-off-by: Martin Malina <mmalina@redhat.com>
  • Loading branch information
mmalina authored Oct 22, 2024
1 parent b232720 commit 3644a7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasks/apply-mapping/tests/mocks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function skopeo() {
return
elif [[ "$*" == "inspect --no-tags --override-os linux --override-arch amd64 docker://registry.io/labels"* ]]
then
echo '{"Labels": {"build-date": "2024-07-29T02:17:29", "Goodlabel": "labelvalue", "Goodlabel-with-dash": "labelvalue-with-dash", "Badlabel": "label with space"}}'
echo '{"Labels": {"build-date": "2024-07-29T02:17:29", "Goodlabel": "labelvalue", "Goodlabel.with-dash": "labelvalue-with-dash", "Badlabel": "label with space"}}'
return
elif [[ "$*" == "inspect --no-tags --override-os linux --override-arch amd64 docker://registry.io/onlycreated"* ]]
then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
"foo-{{digest_sha}}",
"{{ digest_sha }}",
"tag-{{ labels.Goodlabel }}",
"tag-{{ labels.Goodlabel-with-dash }}",
"tag-{{ labels.Goodlabel.with-dash }}",
"tag1-2024-07-29"
]
},
Expand Down

0 comments on commit 3644a7a

Please sign in to comment.