From cd591184369535b57f3ac3956d9338fa0e42216f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Fri, 6 Jan 2023 05:42:58 +0100 Subject: [PATCH] Add a test case for signing dir: with an explicit identity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miloslav Trmač --- copy/sign_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/copy/sign_test.go b/copy/sign_test.go index 0ed64392e2..44d621c5b7 100644 --- a/copy/sign_test.go +++ b/copy/sign_test.go @@ -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,