From 4248f7a45e53d35418e58b9373309fdfa109fc72 Mon Sep 17 00:00:00 2001 From: Ziming Zhang Date: Wed, 28 Aug 2019 18:27:35 +0800 Subject: [PATCH] prevent retained tag with same digest deleted by other tag Signed-off-by: Ziming Zhang Change-Id: I37a3ef0d4cff7214e35076453494d89f0ad84d43 --- src/pkg/retention/job_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pkg/retention/job_test.go b/src/pkg/retention/job_test.go index cf7155b34..6d960ae64 100644 --- a/src/pkg/retention/job_test.go +++ b/src/pkg/retention/job_test.go @@ -119,6 +119,7 @@ func (frc *fakeRetentionClient) GetCandidates(repo *res.Repository) ([]*res.Cand Repository: "harbor", Kind: "image", Tag: "latest", + Digest: "latest", PushedTime: time.Now().Unix() - 11, PulledTime: time.Now().Unix() - 2, CreationTime: time.Now().Unix() - 10, @@ -129,6 +130,7 @@ func (frc *fakeRetentionClient) GetCandidates(repo *res.Repository) ([]*res.Cand Repository: "harbor", Kind: "image", Tag: "dev", + Digest: "dev", PushedTime: time.Now().Unix() - 10, PulledTime: time.Now().Unix() - 3, CreationTime: time.Now().Unix() - 20,