mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-16 20:01:35 +01:00
Update replication and trivy testcases (#17367)
1 Update replication filter_label_xpath because of this PR #17267 updated xpath 2 Update the Manual Scan All test case, because Scan All will affect other testcases if it is not finished running Signed-off-by: Yang Jiao <jiaoya@vmware.com>
This commit is contained in:
parent
4521189e5e
commit
f913b84a01
@ -61,9 +61,9 @@ Select Filter Label Model
|
|||||||
|
|
||||||
Select Filter Label
|
Select Filter Label
|
||||||
[Arguments] ${label}
|
[Arguments] ${label}
|
||||||
Retry Element Click ${filter_label_button}
|
Retry Element Click ${filter_label_xpath}
|
||||||
Retry Element Click //div[@class='filterSelect ng-star-inserted'][3]//label[contains(text(), '${label}')]
|
Retry Element Click //div[@class='filterSelect ng-star-inserted'][3]//label[contains(text(), '${label}')]
|
||||||
Retry Element Click ${filter_label_button}
|
Retry Element Click ${filter_label_xpath}
|
||||||
|
|
||||||
Select Bandwidth Unit
|
Select Bandwidth Unit
|
||||||
[Arguments] ${unit}
|
[Arguments] ${unit}
|
||||||
|
@ -64,7 +64,7 @@ ${replication_mode_radio_pull} //clr-main-container//hbr-create-edit-rule//labe
|
|||||||
${filter_name_id} //input[@id='filter_name']
|
${filter_name_id} //input[@id='filter_name']
|
||||||
${filter_tag_model_select} //div[@class='filterSelect ng-star-inserted'][2]//select
|
${filter_tag_model_select} //div[@class='filterSelect ng-star-inserted'][2]//select
|
||||||
${filter_tag_id} //input[@id='filter_tag']
|
${filter_tag_id} //input[@id='filter_tag']
|
||||||
${filter_label_button} //div[@class='filterSelect ng-star-inserted'][3]//button
|
${filter_label_xpath} //div//clr-dropdown//div[contains(@class,'label-text')]
|
||||||
${filter_label_model_select} //div[@class='filterSelect ng-star-inserted'][3]//select
|
${filter_label_model_select} //div[@class='filterSelect ng-star-inserted'][3]//select
|
||||||
${rule_resource_selector} //*[@id='select_resource']
|
${rule_resource_selector} //*[@id='select_resource']
|
||||||
${trigger_mode_selector} //*[@id='ruleTrigger']
|
${trigger_mode_selector} //*[@id='ruleTrigger']
|
||||||
|
@ -20,8 +20,7 @@ Set Scan Schedule
|
|||||||
|
|
||||||
Trigger Scan Now And Wait Until The Result Appears
|
Trigger Scan Now And Wait Until The Result Appears
|
||||||
Retry Element Click xpath=${scan_now_button}
|
Retry Element Click xpath=${scan_now_button}
|
||||||
Sleep 60
|
Retry Action Keyword Wait Until Element Is Visible And Enabled ${scan_now_button}
|
||||||
Retry Wait Until Page Contains Element ${scan_now_result}
|
|
||||||
|
|
||||||
Switch To Vulnerability Page
|
Switch To Vulnerability Page
|
||||||
Retry Element Click xpath=//clr-main-container//clr-vertical-nav//a[contains(.,'Interrogation')]
|
Retry Element Click xpath=//clr-main-container//clr-vertical-nav//a[contains(.,'Interrogation')]
|
||||||
|
@ -45,6 +45,9 @@ Test Case - Disable Scan Schedule
|
|||||||
Retry Wait Until Page Contains None
|
Retry Wait Until Page Contains None
|
||||||
Close Browser
|
Close Browser
|
||||||
|
|
||||||
|
Test Case - Manual Scan All
|
||||||
|
Body Of Manual Scan All Critical High
|
||||||
|
|
||||||
Test Case - Scan A Tag In The Repo
|
Test Case - Scan A Tag In The Repo
|
||||||
Body Of Scan A Tag In The Repo vmware/photon 1.0
|
Body Of Scan A Tag In The Repo vmware/photon 1.0
|
||||||
|
|
||||||
@ -63,22 +66,6 @@ Test Case - Scan As An Unprivileged User
|
|||||||
Test Case - Scan Image With Empty Vul
|
Test Case - Scan Image With Empty Vul
|
||||||
Body Of Scan Image With Empty Vul photon 4.0_scan
|
Body Of Scan Image With Empty Vul photon 4.0_scan
|
||||||
|
|
||||||
Test Case - Manual Scan All
|
|
||||||
Body Of Manual Scan All Critical High
|
|
||||||
|
|
||||||
#Test Case - View Scan Error
|
|
||||||
# Init Chrome Driver
|
|
||||||
# ${d}= get current date result_format=%m%s
|
|
||||||
|
|
||||||
# Sign In Harbor ${HARBOR_URL} user026 Test1@34
|
|
||||||
# Create An New Project And Go Into Project project${d}
|
|
||||||
# Push Image ${ip} user026 Test1@34 project${d} busybox:latest
|
|
||||||
# Go Into Project project${d}
|
|
||||||
# Go Into Repo project${d}/busybox
|
|
||||||
# Scan Repo latest Fail
|
|
||||||
# View Scan Error Log
|
|
||||||
# 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
|
Body Of Scan Image On Push Critical High
|
||||||
@ -92,9 +79,6 @@ Test Case - Project Level Image Serverity Policy
|
|||||||
Init Chrome Driver
|
Init Chrome Driver
|
||||||
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
|
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
|
||||||
${d}= get current date result_format=%m%s
|
${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
|
${sha256}= Set Variable 0e67625224c1da47cb3270e7a861a83e332f708d3d89dde0cbed432c94824d9a
|
||||||
${image}= Set Variable redis
|
${image}= Set Variable redis
|
||||||
Create An New Project And Go Into Project project${d}
|
Create An New Project And Go Into Project project${d}
|
||||||
|
Loading…
Reference in New Issue
Block a user