mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-30 06:03:45 +01:00
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:
parent
063f2bfee9
commit
8290af6d25
@ -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"},
|
||||
},
|
||||
|
@ -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"},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user