mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-01 08:09:59 +01:00
acc027afd7
1. Docker v20 is the default version for git action, dns should be set manually. Python v3.8 is the default version for git action, so remove deployment for python v3.6. 2. Some of API tests would be affect by docker v20, like manifest get message will not be triggered if there is one locally, to avoid this impact, API tests will be tested with docker E2E image, in this image, docker v19 is enabled. Signed-off-by: danfengliu <danfengl@vmware.com>
18 lines
591 B
Plaintext
18 lines
591 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}
|
|
Log ${output}
|
|
Should Be Equal As Integers ${rc} 0 |