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 f292028 commit bc1c975
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions copy/sign_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ func TestCreateSignature(t *testing.T) {
dest: dirDest,
identity: "",
},
{
name: "dir: with overridden identity",
dest: dirDest,
identity: "myregistry.io/myrepo:mytag",
successfullySignedIdentity: "myregistry.io/myrepo:mytag",
},
{
name: "docker:// without overriding the identity",
dest: dockerDest,
Expand Down

0 comments on commit bc1c975

Please sign in to comment.