mirror of
https://github.com/goharbor/harbor
synced 2024-09-21 02:19:57 +00: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
|
Test Case - Project Level Image Serverity Policy
|
||||||
Init Chrome Driver
|
Init Chrome Driver
|
||||||
Push Image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} library haproxy
|
|
||||||
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
|
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
|
Go Into Repo haproxy
|
||||||
Scan Repo latest Succeed
|
Scan Repo latest Succeed
|
||||||
Back To Projects
|
Back To Projects
|
||||||
Go Into Project library
|
Go Into Project project${d}
|
||||||
Set Vulnerabilty Serverity 0
|
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
|
Close Browser
|
||||||
|
|
||||||
Test Case - Admin Push Signed Image
|
Test Case - Admin Push Signed Image
|
||||||
|
|
Loading…
Reference in New Issue
Block a user