2020-07-30 10:04:14 +02:00
|
|
|
*** Keywords ***
|
|
|
|
Make Swagger Client
|
|
|
|
${rc} ${output}= Run And Return Rc And Output make swagger_client
|
|
|
|
Log ${output}
|
|
|
|
[Return] ${rc}
|
|
|
|
|
|
|
|
Setup API Test
|
|
|
|
Retry Keyword N Times When Error 10 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}
|
2018-08-01 00:38:23 +02:00
|
|
|
Should Be Equal As Integers ${rc} 0
|