2018-08-01 00:38:23 +02:00
|
|
|
*** Keywords ***
|
2019-01-24 10:09:32 +01:00
|
|
|
Make Swagger Client
|
2019-02-22 07:11:56 +01:00
|
|
|
${rc} ${output}= Run And Return Rc And Output make swagger_client
|
2018-08-08 04:40:35 +02:00
|
|
|
Log ${output}
|
2019-01-24 10:09:32 +01:00
|
|
|
[Return] ${rc}
|
|
|
|
|
|
|
|
Setup API Test
|
2020-05-22 04:56:03 +02:00
|
|
|
Retry Keyword N Times When Error 10 Make Swagger Client
|
2019-01-24 10:09:32 +01:00
|
|
|
|
2019-02-22 07:11:56 +01:00
|
|
|
Harbor API Test
|
2018-08-01 00:38:23 +02:00
|
|
|
[Arguments] ${testcase_name}
|
2018-09-19 11:49:43 +02:00
|
|
|
${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
|