mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-03 07:34:35 +01:00
cbf0a86ba2
1. Update copy test case to add retries 2. Updata P2P Preheat test case to waiting 3. Update the Replication new rule button xpath Signed-off-by: Yang Jiao <jiaoya@vmware.com>
18 lines
953 B
Plaintext
18 lines
953 B
Plaintext
Documentation This resource provides any keywords related to the Harbor private registry appliance
|
|
Resource ../../resources/Util.robot
|
|
|
|
*** Keywords ***
|
|
Copy Image
|
|
[Arguments] ${tag} ${projectname} ${reponame} ${is_success}=${true}
|
|
Retry Element Click xpath=//clr-dg-row[contains(.,'${tag}')]//label
|
|
Retry Action Keyword Copy Image Action ${projectname} ${reponame} ${is_success}
|
|
|
|
Copy Image Action
|
|
[Arguments] ${projectname} ${reponame} ${is_success}=${true}
|
|
Retry Element Click ${artifact_action_xpath}
|
|
Retry Element Click ${artifact_action_copy_xpath}
|
|
Retry Text Input ${copy_project_name_xpath} ${projectname}
|
|
Retry Text Input ${copy_repo_name_xpath} ${reponame}
|
|
Retry Double Keywords When Error Retry Element Click ${confirm_btn} Wait Until Element Is Not Visible ${confirm_btn}
|
|
Run Keyword If '${is_success}' == '${true}' Retry Wait Until Page Contains Copy artifact successfully
|