mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-29 13:57:33 +02:00
In nightly test case 'list helm chart', delete chart (#8280)
Signed-off-by: danfengliu <danfengl@vmware.com>
This commit is contained in:
parent
a64e089773
commit
9b61bf4fce
@ -18,15 +18,16 @@ Upload Chart files
|
|||||||
${prometheus_file_path} Set Variable ${current_dir}/${prometheus_chart_filename}
|
${prometheus_file_path} Set Variable ${current_dir}/${prometheus_chart_filename}
|
||||||
Choose File xpath=${chart_file_browse} ${prometheus_file_path}
|
Choose File xpath=${chart_file_browse} ${prometheus_file_path}
|
||||||
Retry Double Keywords When Error Retry Element Click xpath=${upload_action_button} Retry Wait Until Page Not Contains Element xpath=${upload_action_button}
|
Retry Double Keywords When Error Retry Element Click xpath=${upload_action_button} Retry Wait Until Page Not Contains Element xpath=${upload_action_button}
|
||||||
|
|
||||||
Retry Double Keywords When Error Retry Element Click xpath=${upload_chart_button} Retry Wait Until Page Contains Element xpath=${upload_action_button}
|
Retry Double Keywords When Error Retry Element Click xpath=${upload_chart_button} Retry Wait Until Page Contains Element xpath=${upload_action_button}
|
||||||
|
Retry Wait Until Page Contains ${prometheus_chart_name}
|
||||||
|
Capture Page Screenshot
|
||||||
${harbor_file_path} Set Variable ${current_dir}/${harbor_chart_filename}
|
${harbor_file_path} Set Variable ${current_dir}/${harbor_chart_filename}
|
||||||
${harbor_prov_file_path} Set Variable ${current_dir}/${harbor_chart_prov_filename}
|
${harbor_prov_file_path} Set Variable ${current_dir}/${harbor_chart_prov_filename}
|
||||||
Choose File xpath=${chart_file_browse} ${harbor_file_path}
|
Choose File xpath=${chart_file_browse} ${harbor_file_path}
|
||||||
Choose File xpath=${chart_prov_browse} ${harbor_prov_file_path}
|
Choose File xpath=${chart_prov_browse} ${harbor_prov_file_path}
|
||||||
Retry Double Keywords When Error Retry Element Click xpath=${upload_action_button} Retry Wait Until Page Not Contains Element xpath=${upload_action_button}
|
Retry Double Keywords When Error Retry Element Click xpath=${upload_action_button} Retry Wait Until Page Not Contains Element xpath=${upload_action_button}
|
||||||
|
Retry Wait Until Page Contains ${harbor_chart_name}
|
||||||
Retry Wait Until Page Contains ${prometheus_chart_name}
|
Capture Page Screenshot
|
||||||
|
|
||||||
Go Into Chart Version
|
Go Into Chart Version
|
||||||
[Arguments] ${chart_name}
|
[Arguments] ${chart_name}
|
||||||
@ -39,16 +40,16 @@ Go Into Chart Detail
|
|||||||
Retry Element Click xpath=//hbr-helm-chart-version//a[contains(., '${version_name}')]
|
Retry Element Click xpath=//hbr-helm-chart-version//a[contains(., '${version_name}')]
|
||||||
Retry Wait Until Page Contains Element ${chart_detail}
|
Retry Wait Until Page Contains Element ${chart_detail}
|
||||||
|
|
||||||
Go Back To Versions And Delete
|
Multi-delete Chart Files
|
||||||
Retry Element Click xpath=${version_bread_crumbs}
|
[Arguments] @{obj}
|
||||||
Retry Element Click xpath=${version_checkbox}
|
Switch To Project Charts
|
||||||
Retry Element Click xpath=${version_delete}
|
:For ${obj} in @{obj}
|
||||||
:For ${n} IN RANGE 1 6
|
\ Retry Element Click //clr-dg-row[contains(.,'${obj}')]//label
|
||||||
\ Log To Console Trying Go Back To Versions And Delete ${n} times ...
|
#Retry Element Click xpath=${version_checkbox}
|
||||||
\ Retry Element Click xpath=${version_confirm_delete}
|
Capture Page Screenshot
|
||||||
\ Capture Page Screenshot
|
Retry Double Keywords When Error Retry Element Click xpath=${version_delete} Retry Wait Until Page Contains Element ${version_confirm_delete}
|
||||||
\ ${out} Run Keyword And Ignore Error Retry Wait Until Page Contains Element xpath=${helmchart_content}
|
Capture Page Screenshot
|
||||||
\ Capture Page Screenshot
|
Retry Double Keywords When Error Retry Element Click ${version_confirm_delete} Retry Wait Until Page Not Contains Element xpath=${version_confirm_delete}
|
||||||
\ Log To Console Return value is ${out[0]}
|
Retry Wait Element xpath=//clr-dg-placeholder[contains(.,\"We couldn\'t find any charts!\")]
|
||||||
\ Exit For Loop If '${out[0]}'=='PASS'
|
Capture Page Screenshot
|
||||||
\ Sleep 1
|
|
||||||
|
@ -92,7 +92,9 @@ Body Of List Helm Charts
|
|||||||
# Values tab
|
# Values tab
|
||||||
Retry Double Keywords When Error Retry Element Click xpath=${detail_value} Retry Wait Until Page Contains Element ${value_content}
|
Retry Double Keywords When Error Retry Element Click xpath=${detail_value} Retry Wait Until Page Contains Element ${value_content}
|
||||||
|
|
||||||
Go Back To Versions And Delete
|
Go Into Project project${d} has_image=${false}
|
||||||
|
Switch To Project Charts
|
||||||
|
Multi-delete Chart Files ${prometheus_chart_name} ${harbor_chart_name}
|
||||||
Close Browser
|
Close Browser
|
||||||
|
|
||||||
Body Of Admin Push Signed Image
|
Body Of Admin Push Signed Image
|
||||||
|
@ -540,7 +540,7 @@ Test Case - View Scan Error
|
|||||||
View Scan Error Log
|
View Scan Error Log
|
||||||
Close Browser
|
Close Browser
|
||||||
|
|
||||||
Test Case - List Helm Charts
|
Test Case - List Helm Charts And Delete Chart Files
|
||||||
Body Of List Helm Charts
|
Body Of List Helm Charts
|
||||||
|
|
||||||
Test Case - Helm CLI Push
|
Test Case - Helm CLI Push
|
||||||
|
Loading…
Reference in New Issue
Block a user