diff --git a/src/pkg/retention/policy/action/performer_test.go b/src/pkg/retention/policy/action/performer_test.go index 2f6a6be15..0f07c0433 100644 --- a/src/pkg/retention/policy/action/performer_test.go +++ b/src/pkg/retention/policy/action/performer_test.go @@ -47,6 +47,7 @@ func (suite *TestPerformerSuite) SetupSuite() { Repository: "harbor", Kind: "image", Tag: "latest", + Digest: "latest", PushedTime: time.Now().Unix(), Labels: []string{"L1", "L2"}, }, @@ -55,6 +56,7 @@ func (suite *TestPerformerSuite) SetupSuite() { Repository: "harbor", Kind: "image", Tag: "dev", + Digest: "dev", PushedTime: time.Now().Unix(), Labels: []string{"L3"}, }, @@ -81,6 +83,7 @@ func (suite *TestPerformerSuite) TestPerform() { Repository: "harbor", Kind: "image", Tag: "latest", + Digest: "latest", PushedTime: time.Now().Unix(), Labels: []string{"L1", "L2"}, }, diff --git a/src/pkg/retention/policy/builder_test.go b/src/pkg/retention/policy/builder_test.go index fb1f4271a..cd12b9494 100644 --- a/src/pkg/retention/policy/builder_test.go +++ b/src/pkg/retention/policy/builder_test.go @@ -73,6 +73,7 @@ func (suite *TestBuilderSuite) SetupSuite() { Repository: "harbor", Kind: "image", Tag: "latest", + Digest: "latest", PushedTime: time.Now().Unix(), Labels: []string{"L1", "L2"}, }, @@ -82,6 +83,7 @@ func (suite *TestBuilderSuite) SetupSuite() { Repository: "harbor", Kind: "image", Tag: "dev", + Digest: "dev", PushedTime: time.Now().Unix(), Labels: []string{"L3"}, },