mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-28 11:37:42 +01:00
3ef4dc17fc
1. Use root instead of ~ in notary parameter; 2. Fix tag immutability issue caused by GUI change; 3. Replace email domain name to harbor test; 4. Add login for each base image in makefile; 5. Add customize look test in nightly. Signed-off-by: danfengliu <danfengl@vmware.com>
23 lines
866 B
Plaintext
23 lines
866 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
|
|
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} DOCKER_USER=${DOCKER_USER} DOCKER_PWD=${DOCKER_PWD} python ${testcase_name}
|
|
Log To Console ${output}
|
|
Log ${output}
|
|
Should Be Equal As Integers ${rc} 0
|