2018-09-04 09:08:51 +02:00
|
|
|
*** Settings ***
|
|
|
|
Documentation This resource provides any keywords related to the Harbor private registry appliance
|
|
|
|
Resource ../../resources/Util.robot
|
|
|
|
|
|
|
|
*** Keywords ***
|
|
|
|
|
|
|
|
Switch To Project Charts
|
|
|
|
Click Element xpath=//project-detail//a[contains(.,'Charts')]
|
|
|
|
Sleep 1
|
|
|
|
Page Should Contain Element xpath=//hbr-helm-chart
|
|
|
|
|
|
|
|
Upload Chart files
|
|
|
|
${current_dir}= Run pwd
|
|
|
|
Run wget ${harbor_chart_file_url}
|
|
|
|
Run wget ${harbor_chart_prov_file_url}
|
|
|
|
Run wget ${prometheus_chart_file_url}
|
|
|
|
|
|
|
|
Click Element xpath=${upload_chart_button}
|
|
|
|
${prometheus_file_path} Set Variable ${current_dir}/${prometheus_chart_filename}
|
|
|
|
Choose File xpath=${chart_file_browse} ${prometheus_file_path}
|
|
|
|
Click Element xpath=${upload_action_button}
|
2018-12-03 11:49:07 +01:00
|
|
|
Wait Until Page Does Not Contain Element xpath=${upload_action_button}
|
2018-09-04 09:08:51 +02:00
|
|
|
|
|
|
|
Click Element xpath=${upload_chart_button}
|
|
|
|
${harbor_file_path} Set Variable ${current_dir}/${harbor_chart_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_prov_browse} ${harbor_prov_file_path}
|
|
|
|
Click Element xpath=${upload_action_button}
|
|
|
|
Sleep 2
|
|
|
|
|
|
|
|
Wait Until Page Contains ${prometheus_chart_name}
|
|
|
|
|
|
|
|
Go Into Chart Version
|
|
|
|
[Arguments] ${chart_name}
|
2019-01-30 07:22:31 +01:00
|
|
|
Click Element xpath=//hbr-helm-chart//a[contains(., '${chart_name}')]
|
2018-09-04 09:08:51 +02:00
|
|
|
Capture Page Screenshot viewchartversion.png
|
|
|
|
|
|
|
|
Go Into Chart Detail
|
|
|
|
[Arguments] ${version_name}
|
2019-01-30 07:22:31 +01:00
|
|
|
Click Element xpath=//hbr-helm-chart-version//a[contains(., '${version_name}')]
|
2018-09-04 09:08:51 +02:00
|
|
|
Sleep 2
|
|
|
|
Page Should Contain Element ${chart_detail}
|
|
|
|
|
|
|
|
Go Back To Versions And Delete
|
2019-01-30 07:22:31 +01:00
|
|
|
Retry Element Click xpath=${version_bread_crumbs}
|
|
|
|
Retry Element Click xpath=${version_checkbox}
|
|
|
|
Retry Element Click xpath=${version_delete}
|
|
|
|
Retry Element Click xpath=${version_confirm_delete}
|
2019-02-22 07:11:56 +01:00
|
|
|
Retry Wait Until Page Contains Element xpath=${helmchart_content}
|