Skip to content

Commit

Permalink
Conditionally set dns based on location (#7271)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhagen-vmware authored Feb 7, 2018
1 parent 62d4def commit d84e8e7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ Static IP Address Create
*** Test Cases ***
Test
Log To Console \nStarting test...
Install VIC Appliance To Test Server additional-args=--public-network-ip &{static}[ip]/&{static}[netmask] --public-network-gateway &{static}[gateway] --dns-server 10.170.16.48 --dns-server 10.162.204.1
${status}= Is Nimbus Location WDC
${dns}= Set Variable If ${status} 10.170.16.48 10.162.204.1
Install VIC Appliance To Test Server additional-args=--public-network-ip &{static}[ip]/&{static}[netmask] --public-network-gateway &{static}[gateway] --dns-server ${dns}

Run Regression Tests

Expand Down
8 changes: 8 additions & 0 deletions tests/resources/Nimbus-Util.robot
Original file line number Diff line number Diff line change
Expand Up @@ -464,3 +464,11 @@ Get Static IP Address
${gateway}= Run echo '${out}' | jq -r ".gateway"
Set To Dictionary ${static} gateway ${gateway}
[Return] ${static}

Is Nimbus Location WDC
Open Connection %{NIMBUS_GW}
Wait Until Keyword Succeeds 10 min 30 sec Login %{NIMBUS_USER} %{NIMBUS_PASSWORD}
${out}= Execute Command env | grep NIMBUS_LOCATION=wdc
${status}= Run Keyword And Return Status Should Not Be Empty ${out}
Close Connection
[Return] ${status}

0 comments on commit d84e8e7

Please sign in to comment.