harbor/tests/resources/APITest-Util.robot
2018-08-08 10:40:35 +08:00

10 lines
409 B
Plaintext

*** Keywords ***
Setup API Test
${rc} ${output}= Run And Return Rc And Output make swagger_client
Log ${output}
Should Be Equal As Integers ${rc} 0
Harbor API Test
[Arguments] ${testcase_name}
${rc} ${output}= Run And Return Rc And Output SWAGGER_CLIENT_PATH=./harborclient HARBOR_HOST=${ip} python ${testcase_name}
Log ${output}
Should Be Equal As Integers ${rc} 0