Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP]Downgrade mongo version to 3 for centos6.9 #8589

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Create with complex volume topology - overriding image volume with named volume
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} volume create --name ${namedImageVol}
Should Be Equal As Integers ${rc} 0
Set Test Variable ${imageVolumeContainer} I-Have-Two-Anonymous-Volumes-${suffix}
${rc} ${c5}= Run And Return Rc And Output docker %{VCH-PARAMS} create --name ${imageVolumeContainer} -v ${namedImageVol}:/data/db -v /I/AM/ANONYMOOOOSE mongo
${rc} ${c5}= Run And Return Rc And Output docker %{VCH-PARAMS} create --name ${imageVolumeContainer} -v ${namedImageVol}:/data/db -v /I/AM/ANONYMOOOOSE mongo:3
Should Be Equal As Integers ${rc} 0
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} inspect -f "{{.HostConfig.Binds}}" ${imageVolumeContainer}
Should Contain ${output} ${namedImageVol}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ Docker run and auto remove with anonymous volumes and named volumes
Set Test Variable ${namedImageVol} non-anonymous-image-volume-${suffix}
Should Be Equal As Integers ${rc} 0
Set Test Variable ${imageVolumeContainer} I-Have-Two-Anonymous-Volumes-${suffix}
${rc} ${c5}= Run And Return Rc And Output docker %{VCH-PARAMS} run --rm --name ${imageVolumeContainer} -v ${namedImageVol}:/data/db -v /I/AM/ANONYMOOOOSE mongo bash
${rc} ${c5}= Run And Return Rc And Output docker %{VCH-PARAMS} run --rm --name ${imageVolumeContainer} -v ${namedImageVol}:/data/db -v /I/AM/ANONYMOOOOSE mongo:3 bash
Should Be Equal As Integers ${rc} 0
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} ps -a
Should Be Equal As Integers ${rc} 0
Expand Down
4 changes: 2 additions & 2 deletions tests/test-cases/Group22-Docker-Apps/22-05-mongo.robot
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ Suite Teardown Cleanup VIC Appliance On Test Server
*** Keywords ***
Check mongo container
[Arguments] ${ip}
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} run --rm mongo sh -c 'mongo "${ip}/27017" --quiet --eval "db.adminCommand( { listDatabases: 1 } )"'
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} run --rm mongo:3 sh -c 'mongo "${ip}/27017" --quiet --eval "db.adminCommand( { listDatabases: 1 } )"'
Log ${output}
Should Be Equal As Integers ${rc} 0
Should Contain ${output} "name" : "admin"
Should Contain ${output} "name" : "local"

*** Test Cases ***
Simple background mongo
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} run --name mongo1 -d mongo
${rc} ${output}= Run And Return Rc And Output docker %{VCH-PARAMS} run --name mongo1 -d mongo:3
Log ${output}
Should Be Equal As Integers ${rc} 0
${ip}= Get IP Address of Container mongo1
Expand Down