diff --git a/tests/manual-test-cases/Group21-Registries/21-1-Whitelist.robot b/tests/manual-test-cases/Group21-Registries/21-1-Whitelist.robot index da714f460a..b7ce2bb732 100644 --- a/tests/manual-test-cases/Group21-Registries/21-1-Whitelist.robot +++ b/tests/manual-test-cases/Group21-Registries/21-1-Whitelist.robot @@ -42,6 +42,7 @@ Setup Harbor Simple ESXi Setup # Install a Harbor server with HTTPS a Harbor server with HTTP + Run Keyword and Ignore Error Remove File ${HARBOR_VERSION}.ova Install Harbor To Test Server protocol=https name=harbor-https Set Environment Variable HTTPS_HARBOR_IP %{HARBOR-IP} diff --git a/tests/resources/Harbor-Util.robot b/tests/resources/Harbor-Util.robot index d9e7d38b74..5946fb3889 100644 --- a/tests/resources/Harbor-Util.robot +++ b/tests/resources/Harbor-Util.robot @@ -36,7 +36,9 @@ Install Harbor To Test Server [Arguments] ${name}=harbor ${protocol}=http ${verify}=off ${host}=%{TEST_URL_ARRAY} ${datastore}=%{TEST_DATASTORE} ${network}=VM Network Log To Console \nFetching harbor ova... ${status} ${message}= Run Keyword And Ignore Error OperatingSystem.File Should Exist ${HARBOR_VERSION}.ova - ${out}= Run Keyword If '${status}' == 'FAIL' Run wget https://github.com/vmware/harbor/releases/download/${HARBOR_SHORT_VERSION}/${HARBOR_VERSION}.ova + ${rc} ${output}= Run Keyword If '${status}' == 'FAIL' Run And Return Rc And Output wget https://github.com/vmware/harbor/releases/download/${HARBOR_SHORT_VERSION}/${HARBOR_VERSION}.ova + Log ${output} + Should Be Equal As Integers ${rc} 0 ${status} ${message}= Run Keyword And Ignore Error Environment Variable Should Be Set DRONE_BUILD_NUMBER Run Keyword If '${status}' == 'FAIL' Set Environment Variable DRONE_BUILD_NUMBER 0 @{URLs}= Split String %{TEST_URL_ARRAY}