mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-22 14:52:17 +01:00
Update automation test case "Project Level Image Serverity Policy" (#6037)
Currently, the case "Project Level Image Serverity Policy" uses the project library as the target project, but the project library has been set to scan image automatically when images are pushing, this will cause case failure. This commit creates a new project in the case to aviod the failure. Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
parent
b764033fc9
commit
16c9ffad2c
@ -605,15 +605,17 @@ Test Case - View Scan Error
|
||||
|
||||
Test Case - Project Level Image Serverity Policy
|
||||
Init Chrome Driver
|
||||
Push Image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} library haproxy
|
||||
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
|
||||
Go Into Project library
|
||||
${d}= get current date result_format=%m%s
|
||||
Create An New Project project${d}
|
||||
Push Image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} project${d} haproxy
|
||||
Go Into Project project${d}
|
||||
Go Into Repo haproxy
|
||||
Scan Repo latest Succeed
|
||||
Back To Projects
|
||||
Go Into Project library
|
||||
Go Into Project project${d}
|
||||
Set Vulnerabilty Serverity 0
|
||||
Cannot pull image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} library haproxy
|
||||
Cannot pull image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} project${d} haproxy
|
||||
Close Browser
|
||||
|
||||
Test Case - Admin Push Signed Image
|
||||
|
Loading…
Reference in New Issue
Block a user