harbor/tests/resources/APITest-Util.robot
Yang Jiao a56d927143
Remove the log in testcase (#17500)
Remove logs that do not need to be printed

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-09-06 14:15:45 +08:00

21 lines
855 B
Plaintext

*** Keywords ***
Make Swagger Client
${rc} ${output}= Run And Return Rc And Output pip uninstall setuptools -y
LogAll ${output}
${rc} ${output}= Run And Return Rc And Output pip install -U pip setuptools
LogAll ${output}
${rc} ${output}= Run And Return Rc And Output make swagger_client
LogAll ${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
${prev_lvl} Set Log Level NONE
${rc} ${output}= Run And Return Rc And Output SWAGGER_CLIENT_PATH=${current_dir}/harborclient HARBOR_HOST=${ip} DOCKER_USER=${DOCKER_USER} DOCKER_PWD=${DOCKER_PWD} python ${testcase_name}
${prev_lvl} Set Log Level ${prev_lvl}
Log ${output}
Should Be Equal As Integers ${rc} 0