mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-24 17:47:46 +01:00
a1063edae6
In this PR, I also modify a public action keyword to make it suitble for indefinite numbers of parameters. Signed-off-by: danfengliu <danfengl@vmware.com>
17 lines
571 B
Plaintext
17 lines
571 B
Plaintext
*** Keywords ***
|
|
Make Swagger Client
|
|
${rc} ${output}= Run And Return Rc And Output make swagger_client
|
|
Log ${output}
|
|
[Return] ${rc}
|
|
|
|
Setup API Test
|
|
Retry Keyword When Error Make Swagger Client
|
|
|
|
Harbor API Test
|
|
[Arguments] ${testcase_name}
|
|
${current_dir}= Run pwd
|
|
Log To Console ${current_dir}
|
|
Log To Console ${ip}
|
|
${rc} ${output}= Run And Return Rc And Output SWAGGER_CLIENT_PATH=${current_dir}/harborclient HARBOR_HOST=${ip} python ${testcase_name}
|
|
Log To Console ${output}
|
|
Should Be Equal As Integers ${rc} 0 |