Skip to content

Commit

Permalink
Add a test case for signing dir: with an explicit identity
Browse files Browse the repository at this point in the history
Signed-off-by: Miloslav Trmač <[email protected]>
  • Loading branch information
mtrmac committed Jan 7, 2023
1 parent aedf7ac commit 4b7021f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions copy/sign_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ func TestCreateSignature(t *testing.T) {
fingerprint: testKeyFingerprint,
identity: "",
},
{
name: "dir: with overridden identity",
dest: dirDest,
fingerprint: testKeyFingerprint,
identity: "myregistry.io/myrepo:mytag",
successfullySignedIdentity: "myregistry.io/myrepo:mytag",
},
{
name: "docker:// without overriding the identity",
dest: dockerDest,
Expand Down

0 comments on commit 4b7021f

Please sign in to comment.