Skip to content

Commit 39242f8

Browse files
Retry the login to docker hub (vmware#8022)
1 parent 02ba3ad commit 39242f8

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

tests/test-cases/Group3-Docker-Compose/3-01-Docker-Compose-LEMP.robot

+6-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@ Resource ../../resources/Util.robot
1818
Suite Setup Install VIC Appliance To Test Server certs=${True}
1919
Suite Teardown Cleanup VIC Appliance On Test Server
2020

21-
*** Test Cases ***
22-
Compose LEMP Server
21+
*** Keywords ***
22+
Login To Docker Hub
2323
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} login --username=victest --password=%{REGISTRY_PASSWORD}
2424
Should Be Equal As Integers ${rc} 0
2525

26+
*** Test Cases ***
27+
Compose LEMP Server
28+
Wait Until Keyword Succeeds 12x 10s Login To Docker Hub
29+
2630
Set Environment Variable COMPOSE_HTTP_TIMEOUT 300
2731

2832
${vch_ip}= Get Environment Variable VCH_IP %{VCH-IP}

tests/test-cases/Group3-Docker-Compose/3-02-Docker-Compose-Voting-App.robot

+6-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@ Resource ../../resources/Util.robot
1818
Suite Setup Install VIC Appliance To Test Server certs=${True}
1919
Suite Teardown Cleanup VIC Appliance On Test Server
2020

21-
*** Test Cases ***
22-
Compose Voting App
21+
*** Keywords ***
22+
Login To Docker Hub
2323
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} login --username=victest --password=%{REGISTRY_PASSWORD}
2424
Should Be Equal As Integers ${rc} 0
2525

26+
*** Test Cases ***
27+
Compose Voting App
28+
Wait Until Keyword Succeeds 12x 10s Login To Docker Hub
29+
2630
Set Environment Variable COMPOSE_HTTP_TIMEOUT 300
2731

2832
${rc} ${out}= Run And Return Rc And Output docker-compose %{COMPOSE-PARAMS} --skip-hostname-check -f ${CURDIR}/../../../demos/compose/voting-app/docker-compose.yml up -d

0 commit comments

Comments
 (0)