Skip to content

Commit 20162da

Browse files
author
wendingh
committed
Resolved the dockerhub limit via docker login
1 parent 2f678fd commit 20162da

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

tests/resources/Docker-Util.robot

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ Library OperatingSystem
1818
Library Process
1919

2020
*** Keywords ***
21+
Docker Login
22+
[Arguments] ${docker-params} ${username} ${password}
23+
${rc}= Run And Return Rc docker ${docker-params} login --username=${username} --password=${password}
24+
Should Be Equal As Integers ${rc} 0
25+
2126
Run Docker Info
2227
[Arguments] ${docker-params}
2328
${rc}= Run And Return Rc docker ${docker-params} info

tests/resources/VCH-Util.robot

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
*** Settings ***
1616
Documentation This resource contains all keywords related to creating, deleting, maintaining VCHs
1717
18+
Resource Docker-Util.robot
19+
1820
*** Variables ***
1921
${BOOTSTRAP-ISO} bin/bootstrap.iso
2022

@@ -322,6 +324,7 @@ Install VIC Appliance To Test Server
322324
${opsuser-args}= Get Ops User Args
323325
${output}= Install VIC Appliance To Test Server With Current Environment Variables ${vic-machine} ${appliance-iso} ${bootstrap-iso} ${certs} ${vol} ${cleanup} ${debug} ${opsuser-args} ${additional-args}
324326
Log ${output}
327+
Docker Login %{VCH-PARAMS} victest %{REGISTRY_PASSWORD}
325328
[Return] ${output}
326329

327330
Install VIC Appliance To Test Server With Current Environment Variables

tests/test-cases/Group1-Docker-Commands/1-02-Docker-Pull.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,4 +265,4 @@ Pull from docker store
265265
Should Contain ${output} Login Succeeded
266266
Should Be Equal As Integers ${rc} 0
267267

268-
Wait Until Keyword Succeeds 5x 15 seconds Pull image store/ibmcorp/mqadvanced-server-dev:9.0.5.0
268+
Wait Until Keyword Succeeds 5x 15 seconds Pull image victest/busybox:latest

tests/test-cases/Group11-Upgrade/11-06-Upgrade-StorageQuota.robot

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Re-Enable Ops User And Clean Up VIC Appliance
4141
Cleanup VIC Appliance On Test Server
4242

4343
Create Containers For VCH_1
44+
Docker Login %{VCH-PARAMS} victest %{REGISTRY_PASSWORD}
4445
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} run --name c-vm1 -id busybox
4546
Log ${output}
4647
Should Be Equal As Integers ${rc} 0
@@ -184,6 +185,7 @@ Get Storage Quota Limit
184185
[Return] ${limitval}
185186

186187
Create Containers And Volume For VCH_2
188+
Docker Login %{VCH-PARAMS} victest %{REGISTRY_PASSWORD}
187189
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} run --name c-vm1 -id busybox
188190
Log ${output}
189191
Should Be Equal As Integers ${rc} 0
@@ -205,6 +207,7 @@ Create Containers And Volume For VCH_2
205207
Should Be Equal As Integers ${rc} 0
206208

207209
Create Containers For VCH_3
210+
Docker Login %{VCH-PARAMS} victest %{REGISTRY_PASSWORD}
208211
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} run --name c-vm1 -id busybox
209212
Log ${output}
210213
Should Be Equal As Integers ${rc} 0

0 commit comments

Comments
 (0)