Scan result behavior changed after trivy upgrade

Signed-off-by: danfengliu <danfengl@vmware.com>
This commit is contained in:
danfengliu 2020-06-04 10:30:12 +08:00
parent 6db856c3e2
commit 3f2850ffdf
3 changed files with 19 additions and 17 deletions

View File

@ -59,7 +59,7 @@ Test Case - Scan Schedule Job
Go Into Project ${project_name} Go Into Project ${project_name}
Go Into Repo ${project_name}/${image} Go Into Repo ${project_name}/${image}
Scan Result Should Display In List Row ${tag} Scan Result Should Display In List Row ${tag}
View Repo Scan Details Critical High Medium View Repo Scan Details High Medium
Test Case - Replication Schedule Job Test Case - Replication Schedule Job
Init Chrome Driver Init Chrome Driver

View File

@ -65,28 +65,28 @@ Test Case - Scan Image With Empty Vul
Body Of Scan Image With Empty Vul photon 2.0_scan Body Of Scan Image With Empty Vul photon 2.0_scan
Test Case - Manual Scan All Test Case - Manual Scan All
Body Of Manual Scan All Critical High Medium Body Of Manual Scan All High Medium
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
Sign In Harbor ${HARBOR_URL} user026 Test1@34 # Sign In Harbor ${HARBOR_URL} user026 Test1@34
Create An New Project And Go Into Project project${d} # Create An New Project And Go Into Project project${d}
Push Image ${ip} user026 Test1@34 project${d} busybox:latest # Push Image ${ip} user026 Test1@34 project${d} busybox:latest
Go Into Project project${d} # Go Into Project project${d}
Go Into Repo project${d}/busybox # Go Into Repo project${d}/busybox
Scan Repo latest Fail # Scan Repo latest Fail
View Scan Error Log # View Scan Error Log
Close Browser # Close Browser
Test Case - Scan Image On Push Test Case - Scan Image On Push
[Tags] run-once [Tags] run-once
Body Of Scan Image On Push Critical High Medium Body Of Scan Image On Push High Medium
Test Case - View Scan Results Test Case - View Scan Results
[Tags] run-once [Tags] run-once
Body Of View Scan Results Critical High Body Of View Scan Results High
Test Case - Project Level Image Serverity Policy Test Case - Project Level Image Serverity Policy
[Tags] run-once [Tags] run-once

View File

@ -41,8 +41,9 @@ Test Case - Switch Scanner
Push Image ${ip} admin Harbor12345 project${d} hello-world:latest Push Image ${ip} admin Harbor12345 project${d} hello-world:latest
Go Into Project project${d} Go Into Project project${d}
Go Into Repo project${d}/hello-world Go Into Repo project${d}/hello-world
Scan Repo latest Fail Scan Repo latest Succeed
View Scan Error Log Move To Summary Chart
Wait Until Page Contains No vulnerability
Switch To Scanners Page Switch To Scanners Page
@ -51,6 +52,7 @@ Test Case - Switch Scanner
Go Into Project project${d} Go Into Project project${d}
Go Into Repo project${d}/hello-world Go Into Repo project${d}/hello-world
Retry Wait Until Page Contains Element ${not_scanned_icon}
Scan Repo latest Succeed Scan Repo latest Succeed
Move To Summary Chart Move To Summary Chart
Wait Until Page Contains No vulnerability Wait Until Page Contains No vulnerability