mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-03 14:37:44 +01:00
resort test case, 2 test cases failed due to unfinish chart data preparation, so resort the test cases, move the verification test case ahead of the 2 failed cases. (#6818)
Signed-off-by: danfengliu <danfengl@vmware.com>
This commit is contained in:
parent
b0c1adab8d
commit
923432a172
@ -593,20 +593,6 @@ Test Case - Manual Scan All
|
|||||||
Summary Chart Should Display latest
|
Summary Chart Should Display latest
|
||||||
Close Browser
|
Close Browser
|
||||||
|
|
||||||
Test Case - View Scan Results
|
|
||||||
Init Chrome Driver
|
|
||||||
${d}= get current date result_format=%m%s
|
|
||||||
|
|
||||||
Sign In Harbor ${HARBOR_URL} user025 Test1@34
|
|
||||||
Create An New Project project${d}
|
|
||||||
Push Image ${ip} user025 Test1@34 project${d} tomcat
|
|
||||||
Go Into Project project${d}
|
|
||||||
Go Into Repo project${d}/tomcat
|
|
||||||
Scan Repo latest Succeed
|
|
||||||
Summary Chart Should Display latest
|
|
||||||
View Repo Scan Details
|
|
||||||
Close Browser
|
|
||||||
|
|
||||||
Test Case - View Scan Error
|
Test Case - View Scan Error
|
||||||
Init Chrome Driver
|
Init Chrome Driver
|
||||||
${d}= get current date result_format=%m%s
|
${d}= get current date result_format=%m%s
|
||||||
@ -620,21 +606,6 @@ Test Case - View Scan Error
|
|||||||
View Scan Error Log
|
View Scan Error Log
|
||||||
Close Browser
|
Close Browser
|
||||||
|
|
||||||
Test Case - Project Level Image Serverity Policy
|
|
||||||
Init Chrome Driver
|
|
||||||
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
|
|
||||||
${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 project${d}
|
|
||||||
Set Vulnerabilty Serverity 0
|
|
||||||
Cannot pull image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} project${d} haproxy
|
|
||||||
Close Browser
|
|
||||||
|
|
||||||
Test Case - List Helm Charts
|
Test Case - List Helm Charts
|
||||||
Init Chrome Driver
|
Init Chrome Driver
|
||||||
${d}= Get Current Date result_format=%m%s
|
${d}= Get Current Date result_format=%m%s
|
||||||
@ -683,20 +654,6 @@ Test Case - Admin Push Signed Image
|
|||||||
Should Be Equal As Integers ${rc} 0
|
Should Be Equal As Integers ${rc} 0
|
||||||
Should Contain ${output} sha256
|
Should Contain ${output} sha256
|
||||||
|
|
||||||
Test Case - Scan Image On Push
|
|
||||||
Wait Unitl Vul Data Ready ${HARBOR_URL} 7200 30
|
|
||||||
Init Chrome Driver
|
|
||||||
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
|
|
||||||
Go Into Project library
|
|
||||||
Goto Project Config
|
|
||||||
Enable Scan On Push
|
|
||||||
Push Image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} library memcached
|
|
||||||
Back To Projects
|
|
||||||
Go Into Project library
|
|
||||||
Go Into Repo memcached
|
|
||||||
Summary Chart Should Display latest
|
|
||||||
Close Browser
|
|
||||||
|
|
||||||
Test Case - Retag A Image Tag
|
Test Case - Retag A Image Tag
|
||||||
Init Chrome Driver
|
Init Chrome Driver
|
||||||
${random_num1}= Get Current Date result_format=%m%s
|
${random_num1}= Get Current Date result_format=%m%s
|
||||||
@ -722,3 +679,46 @@ Test Case - Retag A Image Tag
|
|||||||
Sleep 1
|
Sleep 1
|
||||||
Page Should Contain Element xpath=${tag_value_xpath}
|
Page Should Contain Element xpath=${tag_value_xpath}
|
||||||
Close Browser
|
Close Browser
|
||||||
|
|
||||||
|
Test Case - Scan Image On Push
|
||||||
|
Wait Unitl Vul Data Ready ${HARBOR_URL} 7200 30
|
||||||
|
Init Chrome Driver
|
||||||
|
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
|
||||||
|
Go Into Project library
|
||||||
|
Goto Project Config
|
||||||
|
Enable Scan On Push
|
||||||
|
Push Image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} library memcached
|
||||||
|
Back To Projects
|
||||||
|
Go Into Project library
|
||||||
|
Go Into Repo memcached
|
||||||
|
Summary Chart Should Display latest
|
||||||
|
Close Browser
|
||||||
|
|
||||||
|
Test Case - View Scan Results
|
||||||
|
Init Chrome Driver
|
||||||
|
${d}= get current date result_format=%m%s
|
||||||
|
|
||||||
|
Sign In Harbor ${HARBOR_URL} user025 Test1@34
|
||||||
|
Create An New Project project${d}
|
||||||
|
Push Image ${ip} user025 Test1@34 project${d} tomcat
|
||||||
|
Go Into Project project${d}
|
||||||
|
Go Into Repo project${d}/tomcat
|
||||||
|
Scan Repo latest Succeed
|
||||||
|
Summary Chart Should Display latest
|
||||||
|
View Repo Scan Details
|
||||||
|
Close Browser
|
||||||
|
|
||||||
|
Test Case - Project Level Image Serverity Policy
|
||||||
|
Init Chrome Driver
|
||||||
|
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
|
||||||
|
${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 project${d}
|
||||||
|
Set Vulnerabilty Serverity 0
|
||||||
|
Cannot pull image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} project${d} haproxy
|
||||||
|
Close Browser
|
||||||
|
Loading…
Reference in New Issue
Block a user