mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 00:57:44 +01:00
Update test keyword (#4599)
This commit is contained in:
parent
0d576fb19b
commit
efb3759d14
@ -38,7 +38,9 @@ Pull image
|
||||
Push image
|
||||
[Arguments] ${ip} ${user} ${pwd} ${project} ${image}
|
||||
Log To Console \nRunning docker push ${image}...
|
||||
${rc}= Run And Return Rc docker pull ${image}
|
||||
${rc} ${output}= Run And Return Rc And Output docker pull ${image}
|
||||
Log ${output}
|
||||
Should Be Equal As Integers ${rc} 0
|
||||
${rc} ${output}= Run And Return Rc And Output docker login -u ${user} -p ${pwd} ${ip}
|
||||
Log ${output}
|
||||
Should Be Equal As Integers ${rc} 0
|
||||
@ -52,7 +54,9 @@ Push Image With Tag
|
||||
#tag1 is tag of image on docker hub,default latest,use a version existing if you do not want to use latest
|
||||
[Arguments] ${ip} ${user} ${pwd} ${project} ${image} ${tag} ${tag1}=latest
|
||||
Log To Console \nRunning docker push ${image}...
|
||||
${rc}= Run And Return Rc docker pull ${image}:${tag1}
|
||||
${rc} ${output}= Run And Return Rc docker pull ${image}:${tag1}
|
||||
Log ${output}
|
||||
Should Be Equal As Integers ${rc} 0
|
||||
${rc} ${output}= Run And Return Rc And Output docker login -u ${user} -p ${pwd} ${ip}
|
||||
Log ${output}
|
||||
Should Be Equal As Integers ${rc} 0
|
||||
|
@ -31,6 +31,5 @@ View Scan Error Log
|
||||
Click Element xpath=${view_log_xpath}
|
||||
Sleep 1
|
||||
Capture Page Screenshot viewlog.png
|
||||
Wait Until Page Contains Entered scan initializer
|
||||
Wait Until Page Contains View Scanning Job Log
|
||||
Wait Until Page Contains ERROR
|
||||
Wait Until Page Contains View Scanning Job Log
|
@ -180,6 +180,7 @@ Delete Endpoint
|
||||
Sleep 1
|
||||
#click checkbox before target endpoint
|
||||
Click Element //clr-dg-row[contains(.,'${name}')]//label
|
||||
Sleep 1
|
||||
Click Element ${action_bar_delete}
|
||||
Wait Until Page Contains Element ${dialog_delete}
|
||||
Click Element ${dialog_delete}
|
||||
|
Loading…
Reference in New Issue
Block a user