prevent retained tag with same digest deleted by other tag

Signed-off-by: Ziming Zhang <zziming@vmware.com>
Change-Id: Ie5f77db58e71636cd9aaf322bb3f83a0090f8877
This commit is contained in:
Ziming Zhang 2019-08-28 18:24:55 +08:00
parent 063f2bfee9
commit 8290af6d25
2 changed files with 5 additions and 0 deletions

View File

@ -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"},
},

View File

@ -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"},
},