mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-29 13:45:20 +01:00
[Nightly] Project Level Image Serverity Policy
Signed-off-by: Yogi_Wang <yawang@vmware.com>
This commit is contained in:
parent
eebcc8fc9a
commit
01f8291bb7
@ -19,7 +19,7 @@
|
|||||||
<input clrInput type="text" id="name" name="name" required size="20" autocomplete="off"
|
<input clrInput type="text" id="name" name="name" required size="20" autocomplete="off"
|
||||||
[(ngModel)]="newTagName.name" #name="ngModel" pattern="^[\w][\w.-]{0,127}$" (keyup)="existValid(newTagName.name)">
|
[(ngModel)]="newTagName.name" #name="ngModel" pattern="^[\w][\w.-]{0,127}$" (keyup)="existValid(newTagName.name)">
|
||||||
<clr-control-error class="position-ab" *ngIf="isTagNameExist">
|
<clr-control-error class="position-ab" *ngIf="isTagNameExist">
|
||||||
{{'LABEL.NAME_ALREADY_EXISTS' | translate }}
|
{{'TAG.NAME_ALREADY_EXISTS' | translate }}
|
||||||
</clr-control-error>
|
</clr-control-error>
|
||||||
<clr-control-error class="position-ab" *ngIf="name.hasError('pattern')">
|
<clr-control-error class="position-ab" *ngIf="name.hasError('pattern')">
|
||||||
{{'RETAG.TIP_TAG' | translate }}
|
{{'RETAG.TIP_TAG' | translate }}
|
||||||
|
@ -1064,7 +1064,8 @@
|
|||||||
"OF": "of",
|
"OF": "of",
|
||||||
"ITEMS": "items",
|
"ITEMS": "items",
|
||||||
"ADD_TAG": "ADD TAG",
|
"ADD_TAG": "ADD TAG",
|
||||||
"REMOVE_TAG": "REMOVE TAG"
|
"REMOVE_TAG": "REMOVE TAG",
|
||||||
|
"NAME_ALREADY_EXISTS": "Tag already exists under the repository"
|
||||||
},
|
},
|
||||||
"LABEL": {
|
"LABEL": {
|
||||||
"LABEL": "Label",
|
"LABEL": "Label",
|
||||||
|
@ -1063,7 +1063,8 @@
|
|||||||
"PUSH_TIME": "Push Time",
|
"PUSH_TIME": "Push Time",
|
||||||
"OF": "of",
|
"OF": "of",
|
||||||
"ADD_TAG": "ADD TAG",
|
"ADD_TAG": "ADD TAG",
|
||||||
"REMOVE_TAG": "REMOVE TAG"
|
"REMOVE_TAG": "REMOVE TAG",
|
||||||
|
"NAME_ALREADY_EXISTS": "Tag already exists under the repository"
|
||||||
|
|
||||||
},
|
},
|
||||||
"LABEL": {
|
"LABEL": {
|
||||||
|
@ -1035,7 +1035,8 @@
|
|||||||
"OF": "of",
|
"OF": "of",
|
||||||
"ITEMS": "items",
|
"ITEMS": "items",
|
||||||
"ADD_TAG": "ADD TAG",
|
"ADD_TAG": "ADD TAG",
|
||||||
"REMOVE_TAG": "REMOVE TAG"
|
"REMOVE_TAG": "REMOVE TAG",
|
||||||
|
"NAME_ALREADY_EXISTS": "Tag already exists under the repository"
|
||||||
},
|
},
|
||||||
"LABEL": {
|
"LABEL": {
|
||||||
"LABEL": "Label",
|
"LABEL": "Label",
|
||||||
|
@ -1056,7 +1056,8 @@
|
|||||||
"OF": "of",
|
"OF": "of",
|
||||||
"ITEMS": "items",
|
"ITEMS": "items",
|
||||||
"ADD_TAG": "ADD TAG",
|
"ADD_TAG": "ADD TAG",
|
||||||
"REMOVE_TAG": "REMOVE TAG"
|
"REMOVE_TAG": "REMOVE TAG",
|
||||||
|
"NAME_ALREADY_EXISTS": "Tag already exists under the repository"
|
||||||
},
|
},
|
||||||
"LABEL": {
|
"LABEL": {
|
||||||
"LABEL": "Label",
|
"LABEL": "Label",
|
||||||
|
@ -1064,7 +1064,8 @@
|
|||||||
"OF": "of",
|
"OF": "of",
|
||||||
"ITEMS": "items",
|
"ITEMS": "items",
|
||||||
"ADD_TAG": "ADD TAG",
|
"ADD_TAG": "ADD TAG",
|
||||||
"REMOVE_TAG": "REMOVE TAG"
|
"REMOVE_TAG": "REMOVE TAG",
|
||||||
|
"NAME_ALREADY_EXISTS": "Tag already exists under the repository"
|
||||||
},
|
},
|
||||||
"LABEL": {
|
"LABEL": {
|
||||||
"LABEL": "Etiket",
|
"LABEL": "Etiket",
|
||||||
|
@ -1063,7 +1063,8 @@
|
|||||||
"OF": "共计",
|
"OF": "共计",
|
||||||
"ITEMS": "条记录",
|
"ITEMS": "条记录",
|
||||||
"ADD_TAG": "添加 TAG",
|
"ADD_TAG": "添加 TAG",
|
||||||
"REMOVE_TAG": "删除 TAG"
|
"REMOVE_TAG": "删除 TAG",
|
||||||
|
"NAME_ALREADY_EXISTS": "当前的镜像已经存在此名字的Tag"
|
||||||
},
|
},
|
||||||
"LABEL": {
|
"LABEL": {
|
||||||
"LABEL": "标签",
|
"LABEL": "标签",
|
||||||
|
@ -124,3 +124,23 @@ Test Case - View Scan Results
|
|||||||
Summary Chart Should Display latest
|
Summary Chart Should Display latest
|
||||||
View Repo Scan Details
|
View Repo Scan Details
|
||||||
Close Browser
|
Close Browser
|
||||||
|
Test Case - Project Level Image Serverity Policy
|
||||||
|
[Tags] run-once
|
||||||
|
Init Chrome Driver
|
||||||
|
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
|
||||||
|
${d}= get current date result_format=%m%s
|
||||||
|
#For docker-hub registry
|
||||||
|
#${sha256}= Set Variable 9755880356c4ced4ff7745bafe620f0b63dd17747caedba72504ef7bac882089
|
||||||
|
#For internal CPE harbor registry
|
||||||
|
${sha256}= Set Variable 0e67625224c1da47cb3270e7a861a83e332f708d3d89dde0cbed432c94824d9a
|
||||||
|
${image}= Set Variable redis
|
||||||
|
Create An New Project project${d}
|
||||||
|
Push Image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} project${d} ${image} sha256=${sha256}
|
||||||
|
Go Into Project project${d}
|
||||||
|
Go Into Repo ${image}
|
||||||
|
Scan Repo ${sha256} Succeed
|
||||||
|
Navigate To Projects
|
||||||
|
Go Into Project project${d}
|
||||||
|
Set Vulnerabilty Serverity 3
|
||||||
|
Cannot pull image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} project${d} ${image} tag=${sha256}
|
||||||
|
Close Browser
|
Loading…
Reference in New Issue
Block a user