From 05ce7b8167af85ff2bb50f7053a6cc5199bb423d Mon Sep 17 00:00:00 2001 From: Jason Morris Date: Thu, 12 Apr 2018 16:40:00 -0500 Subject: [PATCH 1/8] Isolated VIC Admin tests --- .../9-04-VICAdmin-Isolated.md | 49 ++++++++ .../9-04-VICAdmin-Isolated.robot | 108 ++++++++++++++++++ 2 files changed, 157 insertions(+) create mode 100644 tests/test-cases/Group9-VIC-Admin/9-04-VICAdmin-Isolated.md create mode 100644 tests/test-cases/Group9-VIC-Admin/9-04-VICAdmin-Isolated.robot diff --git a/tests/test-cases/Group9-VIC-Admin/9-04-VICAdmin-Isolated.md b/tests/test-cases/Group9-VIC-Admin/9-04-VICAdmin-Isolated.md new file mode 100644 index 0000000000..426b5b7d52 --- /dev/null +++ b/tests/test-cases/Group9-VIC-Admin/9-04-VICAdmin-Isolated.md @@ -0,0 +1,49 @@ +Test 9-01 - VIC Admin Isolated +======= + +# Purpose: +Verify that VIC Admin can display logs on an isolated network with no wan connection. + +# Environment: +This test requires that a vSphere environment be running and available, which dSwitch test-ds available. + +# Test Steps: + +1. Create a DVS Port Group that does not have internet connectivity by setting a random vlan id +2. Deploy VIC appliance to the vSphere server using the no-wan port group +3. Verify login functions properly +4. Verify vic admin internet connectivity status is showing a warning icon +5. Pull the VCH-Init log and verify that it contains valid data +6. Pull the Docker Personality log and verify that it contains valid data +7. Create a container via the appliance +8. Pull the container log bundle from the appliance and verify that it contains the new container's logs + +# Test Cases: + +## Display HTML +1. Log in +2. Page displays vic-machine name in title + +## WAN Status +1. Log in +2. Page displays warning symbols for wan connection status + +## Get Portlayer Log +1. Log in +2. Portlayer Log access is allowed and logs are downloaded + +## Get VCH-Init Log +1. Log in +2. VCH-Init Log access is allowed and logs are downloaded + +## Get Docker Personality Log +1. Log in +2. Docker Personality Log access is allowed and logs are downloaded + +## Get Container Logs +1. Log in +2. Container Log access is allowed and logs are downloaded + +## Get VICAdmin Log +1. Log in +2. VICAdmin Log access is allowed and logs are downloaded \ No newline at end of file diff --git a/tests/test-cases/Group9-VIC-Admin/9-04-VICAdmin-Isolated.robot b/tests/test-cases/Group9-VIC-Admin/9-04-VICAdmin-Isolated.robot new file mode 100644 index 0000000000..e97c06f90f --- /dev/null +++ b/tests/test-cases/Group9-VIC-Admin/9-04-VICAdmin-Isolated.robot @@ -0,0 +1,108 @@ +# Copyright 2016-2017 VMware, Inc. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License + +*** Settings *** +Documentation Test 9-04 - VICAdmin Isolated +Resource ../../resources/Util.robot +Suite Setup Setup VCH With No WAN +Suite Teardown Teardown VCH With No WAN +Default Tags + +*** Keywords *** +Setup VCH With No WAN + Set Test Environment Variables + Log To Console Create a vch with a public network on a no-wan portgroup. + + ${vlan}= Evaluate str(random.randint(1, 195)) modules=random + + ${vswitch}= Run Keyword If '%{HOST_TYPE}' == 'ESXi' Run govc host.vswitch.info -json | jq -r ".Vswitch[0].Name" + ${out}= Run Keyword If '%{HOST_TYPE}' == 'ESXi' Run govc host.portgroup.add -vswitch ${vswitch} -vlan=${vlan} dpg-no-wan + + ${dvs}= Run Keyword If '%{HOST_TYPE}' == 'VC' Run govc find -type DistributedVirtualSwitch | head -n1 + ${rc} ${output}= Run Keyword If '%{HOST_TYPE}' == 'VC' Run And Return Rc And Output govc dvs.portgroup.add -vlan=${vlan} -dvs ${dvs} dpg-no-wan + + ${output}= Run bin/vic-machine-linux create --debug 1 --name=%{VCH-NAME} --target=%{TEST_URL}%{TEST_DATACENTER} --thumbprint=%{TEST_THUMBPRINT} --user=%{TEST_USERNAME} --image-store=%{TEST_DATASTORE} --password=%{TEST_PASSWORD} --force=true --compute-resource=%{TEST_RESOURCE} --no-tlsverify --bridge-network=%{BRIDGE_NETWORK} --management-network=%{PUBLIC_NETWORK} --management-network-ip=10.10.10.2/24 --client-network=%{PUBLIC_NETWORK} --client-network-ip=10.10.10.3/24 --public-network= --insecure-registry wdc-harbor-ci.eng.vmware.com + + Get Docker Params ${output} + + Set Environment Variable VIC-ADMIN %{VCH-IP}:2378 + +Teardown VCH With No WAN + Cleanup VIC Appliance On Test Server + + ${vswitch}= Run Keyword If '%{HOST_TYPE}' == 'ESXi' Run govc host.vswitch.info -json | jq -r ".Vswitch[0].Name" + ${out}= Run Keyword If '%{HOST_TYPE}' == 'ESXi' Run govc host.portgroup.remove -vswitch ${vswitch} dpg-no-wan + +Login And Save Cookies + [Tags] secret + ${rc} ${output}= Run And Return Rc And Output curl -sk %{VIC-ADMIN}/authentication -XPOST -F username=%{TEST_USERNAME} -F password=%{TEST_PASSWORD} -D /tmp/cookies-%{VCH-NAME} + Should Be Equal As Integers ${rc} 0 + +*** Test Cases *** +Display HTML + Login And Save Cookies + ${rc} ${output}= Run And Return Rc And Output curl -sk %{VIC-ADMIN} -b /tmp/cookies-%{VCH-NAME} + Should contain ${output} VIC: %{VCH-NAME} + +WAN Status + Login And Save Cookies + ${rc} ${output}= Run And Return Rc And Output curl -sk %{VIC-ADMIN} -b /tmp/cookies-%{VCH-NAME} + Should contain ${output}
Registry and Internet Connectivity + +Get Portlayer Log + Login And Save Cookies + ${rc} ${output}= Run And Return Rc And Output curl -sk %{VIC-ADMIN}/logs/port-layer.log -b /tmp/cookies-%{VCH-NAME} + Should contain ${output} Launching portlayer server + +Get VCH-Init Log + Login And Save Cookies + ${rc} ${output}= Run And Return Rc And Output curl -sk %{VIC-ADMIN}/logs/init.log -b /tmp/cookies-%{VCH-NAME} + Should contain ${output} reaping child processes + +Get Docker Personality Log + Login And Save Cookies + ${rc} ${output}= Run And Return Rc And Output curl -sk %{VIC-ADMIN}/logs/docker-personality.log -b /tmp/cookies-%{VCH-NAME} + Should contain ${output} docker personality + +Get Container Logs + Login And Save Cookies + ${rc} ${output}= Run And Return Rc and Output docker %{VCH-PARAMS} pull ${busybox} + Should Be Equal As Integers ${rc} 0 + Should Not Contain ${output} Error + ${rc} ${container}= Run And Return Rc and Output docker %{VCH-PARAMS} create ${busybox} /bin/top + Should Be Equal As Integers ${rc} 0 + Should Not Contain ${container} Error + ${rc} ${output}= Run And Return Rc and Output docker %{VCH-PARAMS} start ${container} + Log ${output} + Should Be Equal As Integers ${rc} 0 + Should Not Contain ${output} Error + ${vmName}= Get VM Display Name ${container} + ${rc} ${output}= Run And Return Rc and Output curl -sk %{VIC-ADMIN}/container-logs.tar.gz -b /tmp/cookies-%{VCH-NAME} | (cd /tmp; tar xvzf - ${vmName}/tether.debug ${vmName}/vmware.log) + Log ${output} + ${rc} ${output}= Run And Return Rc and Output ls -l /tmp/${vmName}/vmware.log + Should Be Equal As Integers ${rc} 0 + ${rc} ${output}= Run And Return Rc and Output ls -l /tmp/${vmName}/tether.debug + Should Be Equal As Integers ${rc} 0 + ${rc} ${output}= Run And Return Rc and Output grep 'prepping for switch to container filesystem' /tmp/${vmName}/tether.debug + Should Be Equal As Integers ${rc} 0 + Run rm -f /tmp/${vmName}/tether.debug /tmp/${vmName}/vmware.log + +Get VICAdmin Log + Login And Save Cookies + ${rc} ${output}= Run And Return Rc And Output curl -sk %{VIC-ADMIN}/logs/vicadmin.log -b /tmp/cookies-%{VCH-NAME} + Log ${output} + Should contain ${output} Launching vicadmin pprof server + +Check that VIC logs do not contain sensitive data + Scrape Logs For The Password \ No newline at end of file From 834c14f06bf7591e9ac3313ff059f1ac8863c579 Mon Sep 17 00:00:00 2001 From: Jason Morris Date: Tue, 17 Apr 2018 17:00:34 -0500 Subject: [PATCH 2/8] Test update to nightly --- .../5-28-VICAdmin-Isolated.md} | 2 +- .../5-28-VICAdmin-Isolated.robot} | 62 ++++++++++++++----- 2 files changed, 47 insertions(+), 17 deletions(-) rename tests/{test-cases/Group9-VIC-Admin/9-04-VICAdmin-Isolated.md => manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.md} (97%) rename tests/{test-cases/Group9-VIC-Admin/9-04-VICAdmin-Isolated.robot => manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot} (60%) diff --git a/tests/test-cases/Group9-VIC-Admin/9-04-VICAdmin-Isolated.md b/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.md similarity index 97% rename from tests/test-cases/Group9-VIC-Admin/9-04-VICAdmin-Isolated.md rename to tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.md index 426b5b7d52..2506c691ec 100644 --- a/tests/test-cases/Group9-VIC-Admin/9-04-VICAdmin-Isolated.md +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.md @@ -1,4 +1,4 @@ -Test 9-01 - VIC Admin Isolated +Test 5-28 - VIC Admin Isolated ======= # Purpose: diff --git a/tests/test-cases/Group9-VIC-Admin/9-04-VICAdmin-Isolated.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot similarity index 60% rename from tests/test-cases/Group9-VIC-Admin/9-04-VICAdmin-Isolated.robot rename to tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot index e97c06f90f..91d8fbc211 100644 --- a/tests/test-cases/Group9-VIC-Admin/9-04-VICAdmin-Isolated.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot @@ -11,28 +11,63 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License - *** Settings *** -Documentation Test 9-04 - VICAdmin Isolated +Documentation Test 5-28 - VICAdmin Isolated Resource ../../resources/Util.robot Suite Setup Setup VCH With No WAN Suite Teardown Teardown VCH With No WAN Default Tags *** Keywords *** +Static IP Address Create + [Timeout] 110 minutes + Log To Console Starting Static IP Address setup... + Set Suite Variable ${NIMBUS_LOCATION} NIMBUS_LOCATION=wdc + Run Keyword And Ignore Error Nimbus Cleanup ${list} ${false} + ${name}= Evaluate 'vic-5-28-' + str(random.randint(1000,9999)) modules=random + ${out}= Deploy Nimbus Testbed %{NIMBUS_USER} %{NIMBUS_PASSWORD} --noSupportBundles --plugin testng --vcvaBuild ${VC_VERSION} --esxBuild ${ESX_VERSION} --testbedName vic-simple-cluster --testbedSpecRubyFile /dbc/pa-dbc1111/mhagen/nimbus-testbeds/testbeds/vic-simple-cluster.rb --runName ${name} + + Open Connection %{NIMBUS_GW} + Wait Until Keyword Succeeds 10 min 30 sec Login %{NIMBUS_USER} %{NIMBUS_PASSWORD} + ${vc-ip}= Get IP ${name}.vc.0 + ${pod}= Fetch POD ${name}.vc.0 + Set Suite Variable ${NIMBUS_POD} ${pod} + Close Connection + + Set Suite Variable @{list} %{NIMBUS_USER}-${name}.esx.0 %{NIMBUS_USER}-${name}.esx.1 %{NIMBUS_USER}-${name}.esx.2 %{NIMBUS_USER}-${name}.nfs.0 %{NIMBUS_USER}-${name}.vc.0 + Log To Console Finished Creating Cluster ${name} + + ${out}= Get Static IP Address + Set Suite Variable ${static} ${out} + Append To List ${list} %{STATIC_WORKER_NAME} + + Log To Console Set environment variables up for GOVC + Set Environment Variable GOVC_URL ${vc-ip} + Set Environment Variable GOVC_USERNAME Administrator@vsphere.local + Set Environment Variable GOVC_PASSWORD Admin\!23 + + Log To Console Deploy VIC to the VC cluster + Set Environment Variable TEST_URL_ARRAY ${vc-ip} + Set Environment Variable TEST_USERNAME Administrator@vsphere.local + Set Environment Variable TEST_PASSWORD Admin\!23 + Set Environment Variable BRIDGE_NETWORK bridge + Set Environment Variable PUBLIC_NETWORK vm-network + Remove Environment Variable TEST_DATACENTER + Set Environment Variable TEST_DATASTORE nfs0-1 + Set Environment Variable TEST_RESOURCE cls + Set Environment Variable TEST_TIMEOUT 15m + Setup VCH With No WAN - Set Test Environment Variables + Wait Until Keyword Succeeds 10x 10m Static IP Address Create + Log To Console Create a vch with a public network on a no-wan portgroup. ${vlan}= Evaluate str(random.randint(1, 195)) modules=random - ${vswitch}= Run Keyword If '%{HOST_TYPE}' == 'ESXi' Run govc host.vswitch.info -json | jq -r ".Vswitch[0].Name" - ${out}= Run Keyword If '%{HOST_TYPE}' == 'ESXi' Run govc host.portgroup.add -vswitch ${vswitch} -vlan=${vlan} dpg-no-wan - - ${dvs}= Run Keyword If '%{HOST_TYPE}' == 'VC' Run govc find -type DistributedVirtualSwitch | head -n1 - ${rc} ${output}= Run Keyword If '%{HOST_TYPE}' == 'VC' Run And Return Rc And Output govc dvs.portgroup.add -vlan=${vlan} -dvs ${dvs} dpg-no-wan + ${dvs}= Run govc find -type DistributedVirtualSwitch | head -n1 + ${rc} ${output}= Run And Return Rc And Output govc dvs.portgroup.add -vlan=${vlan} -dvs ${dvs} dpg-no-wan - ${output}= Run bin/vic-machine-linux create --debug 1 --name=%{VCH-NAME} --target=%{TEST_URL}%{TEST_DATACENTER} --thumbprint=%{TEST_THUMBPRINT} --user=%{TEST_USERNAME} --image-store=%{TEST_DATASTORE} --password=%{TEST_PASSWORD} --force=true --compute-resource=%{TEST_RESOURCE} --no-tlsverify --bridge-network=%{BRIDGE_NETWORK} --management-network=%{PUBLIC_NETWORK} --management-network-ip=10.10.10.2/24 --client-network=%{PUBLIC_NETWORK} --client-network-ip=10.10.10.3/24 --public-network= --insecure-registry wdc-harbor-ci.eng.vmware.com + ${output}= Run bin/vic-machine-linux create --debug 1 --name=%{VCH-NAME} --target=%{TEST_URL}%{TEST_DATACENTER} --thumbprint=%{TEST_THUMBPRINT} --user=%{TEST_USERNAME} --image-store=%{TEST_DATASTORE} --password=%{TEST_PASSWORD} --force=true --compute-resource=%{TEST_RESOURCE} --no-tlsverify --bridge-network=%{BRIDGE_NETWORK} --management-network=%{PUBLIC_NETWORK} --client-network=%{PUBLIC_NETWORK} --client-network-ip &{static}[ip]/&{static}[netmask] --client-network-gateway &{static}[gateway] --public-network dpg-no-wan --public-network-ip 192.168.100.2/24 --public-network-gateway 192.168.100.1 --dns-server 10.170.16.48 --insecure-registry wdc-harbor-ci.eng.vmware.com Get Docker Params ${output} @@ -40,9 +75,7 @@ Setup VCH With No WAN Teardown VCH With No WAN Cleanup VIC Appliance On Test Server - - ${vswitch}= Run Keyword If '%{HOST_TYPE}' == 'ESXi' Run govc host.vswitch.info -json | jq -r ".Vswitch[0].Name" - ${out}= Run Keyword If '%{HOST_TYPE}' == 'ESXi' Run govc host.portgroup.remove -vswitch ${vswitch} dpg-no-wan + Run Keyword And Ignore Error Nimbus Cleanup ${list} Login And Save Cookies [Tags] secret @@ -102,7 +135,4 @@ Get VICAdmin Log Login And Save Cookies ${rc} ${output}= Run And Return Rc And Output curl -sk %{VIC-ADMIN}/logs/vicadmin.log -b /tmp/cookies-%{VCH-NAME} Log ${output} - Should contain ${output} Launching vicadmin pprof server - -Check that VIC logs do not contain sensitive data - Scrape Logs For The Password \ No newline at end of file + Should contain ${output} Launching vicadmin pprof server \ No newline at end of file From 8748551b93f11f2392db5f772428f7df1c9f2d32 Mon Sep 17 00:00:00 2001 From: Jason Morris Date: Thu, 19 Apr 2018 13:28:13 -0500 Subject: [PATCH 3/8] Update docker params keyword use --- .../Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot index 91d8fbc211..27d82efb83 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot @@ -59,7 +59,8 @@ Static IP Address Create Setup VCH With No WAN Wait Until Keyword Succeeds 10x 10m Static IP Address Create - + Set Test Environment Variables + Log To Console Create a vch with a public network on a no-wan portgroup. ${vlan}= Evaluate str(random.randint(1, 195)) modules=random @@ -69,7 +70,7 @@ Setup VCH With No WAN ${output}= Run bin/vic-machine-linux create --debug 1 --name=%{VCH-NAME} --target=%{TEST_URL}%{TEST_DATACENTER} --thumbprint=%{TEST_THUMBPRINT} --user=%{TEST_USERNAME} --image-store=%{TEST_DATASTORE} --password=%{TEST_PASSWORD} --force=true --compute-resource=%{TEST_RESOURCE} --no-tlsverify --bridge-network=%{BRIDGE_NETWORK} --management-network=%{PUBLIC_NETWORK} --client-network=%{PUBLIC_NETWORK} --client-network-ip &{static}[ip]/&{static}[netmask] --client-network-gateway &{static}[gateway] --public-network dpg-no-wan --public-network-ip 192.168.100.2/24 --public-network-gateway 192.168.100.1 --dns-server 10.170.16.48 --insecure-registry wdc-harbor-ci.eng.vmware.com - Get Docker Params ${output} + Get Docker Params ${output} ${false} Set Environment Variable VIC-ADMIN %{VCH-IP}:2378 From 9f158db094dfd64aebf14589fbaa4b10346ad1e4 Mon Sep 17 00:00:00 2001 From: Jason Morris Date: Thu, 19 Apr 2018 15:43:28 -0500 Subject: [PATCH 4/8] Use a common keyword for static deployment. --- .../5-26-Static-IP-Address.robot | 39 ------------------ .../5-28-VICAdmin-Isolated.robot | 40 +------------------ tests/resources/Nimbus-Util.robot | 38 ++++++++++++++++++ 3 files changed, 39 insertions(+), 78 deletions(-) diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-26-Static-IP-Address.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-26-Static-IP-Address.robot index ae3571fb13..08f37fda3f 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-26-Static-IP-Address.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-26-Static-IP-Address.robot @@ -18,45 +18,6 @@ Resource ../../resources/Util.robot Suite Setup Wait Until Keyword Succeeds 10x 10m Static IP Address Create Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} -*** Keywords *** -Static IP Address Create - [Timeout] 110 minutes - Log To Console Starting Static IP Address test... - Set Suite Variable ${NIMBUS_LOCATION} NIMBUS_LOCATION=wdc - Run Keyword And Ignore Error Nimbus Cleanup ${list} ${false} - ${name}= Evaluate 'vic-5-26-' + str(random.randint(1000,9999)) modules=random - ${out}= Deploy Nimbus Testbed %{NIMBUS_USER} %{NIMBUS_PASSWORD} --noSupportBundles --plugin testng --vcvaBuild ${VC_VERSION} --esxBuild ${ESX_VERSION} --testbedName vic-simple-cluster --testbedSpecRubyFile /dbc/pa-dbc1111/mhagen/nimbus-testbeds/testbeds/vic-simple-cluster.rb --runName ${name} - - Open Connection %{NIMBUS_GW} - Wait Until Keyword Succeeds 10 min 30 sec Login %{NIMBUS_USER} %{NIMBUS_PASSWORD} - ${vc-ip}= Get IP ${name}.vc.0 - ${pod}= Fetch POD ${name}.vc.0 - Set Suite Variable ${NIMBUS_POD} ${pod} - Close Connection - - Set Suite Variable @{list} %{NIMBUS_USER}-${name}.esx.0 %{NIMBUS_USER}-${name}.esx.1 %{NIMBUS_USER}-${name}.esx.2 %{NIMBUS_USER}-${name}.nfs.0 %{NIMBUS_USER}-${name}.vc.0 - Log To Console Finished Creating Cluster ${name} - - ${out}= Get Static IP Address - Set Suite Variable ${static} ${out} - Append To List ${list} %{STATIC_WORKER_NAME} - - Log To Console Set environment variables up for GOVC - Set Environment Variable GOVC_URL ${vc-ip} - Set Environment Variable GOVC_USERNAME Administrator@vsphere.local - Set Environment Variable GOVC_PASSWORD Admin\!23 - - Log To Console Deploy VIC to the VC cluster - Set Environment Variable TEST_URL_ARRAY ${vc-ip} - Set Environment Variable TEST_USERNAME Administrator@vsphere.local - Set Environment Variable TEST_PASSWORD Admin\!23 - Set Environment Variable BRIDGE_NETWORK bridge - Set Environment Variable PUBLIC_NETWORK vm-network - Remove Environment Variable TEST_DATACENTER - Set Environment Variable TEST_DATASTORE nfs0-1 - Set Environment Variable TEST_RESOURCE cls - Set Environment Variable TEST_TIMEOUT 15m - *** Test Cases *** Test Log To Console \nStarting test... diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot index 27d82efb83..8b332d858c 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot @@ -19,44 +19,6 @@ Suite Teardown Teardown VCH With No WAN Default Tags *** Keywords *** -Static IP Address Create - [Timeout] 110 minutes - Log To Console Starting Static IP Address setup... - Set Suite Variable ${NIMBUS_LOCATION} NIMBUS_LOCATION=wdc - Run Keyword And Ignore Error Nimbus Cleanup ${list} ${false} - ${name}= Evaluate 'vic-5-28-' + str(random.randint(1000,9999)) modules=random - ${out}= Deploy Nimbus Testbed %{NIMBUS_USER} %{NIMBUS_PASSWORD} --noSupportBundles --plugin testng --vcvaBuild ${VC_VERSION} --esxBuild ${ESX_VERSION} --testbedName vic-simple-cluster --testbedSpecRubyFile /dbc/pa-dbc1111/mhagen/nimbus-testbeds/testbeds/vic-simple-cluster.rb --runName ${name} - - Open Connection %{NIMBUS_GW} - Wait Until Keyword Succeeds 10 min 30 sec Login %{NIMBUS_USER} %{NIMBUS_PASSWORD} - ${vc-ip}= Get IP ${name}.vc.0 - ${pod}= Fetch POD ${name}.vc.0 - Set Suite Variable ${NIMBUS_POD} ${pod} - Close Connection - - Set Suite Variable @{list} %{NIMBUS_USER}-${name}.esx.0 %{NIMBUS_USER}-${name}.esx.1 %{NIMBUS_USER}-${name}.esx.2 %{NIMBUS_USER}-${name}.nfs.0 %{NIMBUS_USER}-${name}.vc.0 - Log To Console Finished Creating Cluster ${name} - - ${out}= Get Static IP Address - Set Suite Variable ${static} ${out} - Append To List ${list} %{STATIC_WORKER_NAME} - - Log To Console Set environment variables up for GOVC - Set Environment Variable GOVC_URL ${vc-ip} - Set Environment Variable GOVC_USERNAME Administrator@vsphere.local - Set Environment Variable GOVC_PASSWORD Admin\!23 - - Log To Console Deploy VIC to the VC cluster - Set Environment Variable TEST_URL_ARRAY ${vc-ip} - Set Environment Variable TEST_USERNAME Administrator@vsphere.local - Set Environment Variable TEST_PASSWORD Admin\!23 - Set Environment Variable BRIDGE_NETWORK bridge - Set Environment Variable PUBLIC_NETWORK vm-network - Remove Environment Variable TEST_DATACENTER - Set Environment Variable TEST_DATASTORE nfs0-1 - Set Environment Variable TEST_RESOURCE cls - Set Environment Variable TEST_TIMEOUT 15m - Setup VCH With No WAN Wait Until Keyword Succeeds 10x 10m Static IP Address Create Set Test Environment Variables @@ -75,8 +37,8 @@ Setup VCH With No WAN Set Environment Variable VIC-ADMIN %{VCH-IP}:2378 Teardown VCH With No WAN - Cleanup VIC Appliance On Test Server Run Keyword And Ignore Error Nimbus Cleanup ${list} + Cleanup VIC Appliance On Test Server Login And Save Cookies [Tags] secret diff --git a/tests/resources/Nimbus-Util.robot b/tests/resources/Nimbus-Util.robot index ac8c2992ed..90e16ecfea 100644 --- a/tests/resources/Nimbus-Util.robot +++ b/tests/resources/Nimbus-Util.robot @@ -451,6 +451,44 @@ Power Off Host ${out}= Execute Command poweroff -d 0 -f Close connection +Static IP Address Create + [Timeout] 110 minutes + Log To Console Starting Static IP Address test... + Set Suite Variable ${NIMBUS_LOCATION} NIMBUS_LOCATION=wdc + Run Keyword And Ignore Error Nimbus Cleanup ${list} ${false} + ${name}= Evaluate 'vic-5-26-' + str(random.randint(1000,9999)) modules=random + ${out}= Deploy Nimbus Testbed %{NIMBUS_USER} %{NIMBUS_PASSWORD} --noSupportBundles --plugin testng --vcvaBuild ${VC_VERSION} --esxBuild ${ESX_VERSION} --testbedName vic-simple-cluster --testbedSpecRubyFile /dbc/pa-dbc1111/mhagen/nimbus-testbeds/testbeds/vic-simple-cluster.rb --runName ${name} + + Open Connection %{NIMBUS_GW} + Wait Until Keyword Succeeds 10 min 30 sec Login %{NIMBUS_USER} %{NIMBUS_PASSWORD} + ${vc-ip}= Get IP ${name}.vc.0 + ${pod}= Fetch POD ${name}.vc.0 + Set Suite Variable ${NIMBUS_POD} ${pod} + Close Connection + + Set Suite Variable @{list} %{NIMBUS_USER}-${name}.esx.0 %{NIMBUS_USER}-${name}.esx.1 %{NIMBUS_USER}-${name}.esx.2 %{NIMBUS_USER}-${name}.nfs.0 %{NIMBUS_USER}-${name}.vc.0 + Log To Console Finished Creating Cluster ${name} + + ${out}= Get Static IP Address + Set Suite Variable ${static} ${out} + Append To List ${list} %{STATIC_WORKER_NAME} + + Log To Console Set environment variables up for GOVC + Set Environment Variable GOVC_URL ${vc-ip} + Set Environment Variable GOVC_USERNAME Administrator@vsphere.local + Set Environment Variable GOVC_PASSWORD Admin\!23 + + Log To Console Deploy VIC to the VC cluster + Set Environment Variable TEST_URL_ARRAY ${vc-ip} + Set Environment Variable TEST_USERNAME Administrator@vsphere.local + Set Environment Variable TEST_PASSWORD Admin\!23 + Set Environment Variable BRIDGE_NETWORK bridge + Set Environment Variable PUBLIC_NETWORK vm-network + Remove Environment Variable TEST_DATACENTER + Set Environment Variable TEST_DATASTORE nfs0-1 + Set Environment Variable TEST_RESOURCE cls + Set Environment Variable TEST_TIMEOUT 15m + Create Static IP Worker Open Connection %{NIMBUS_GW} Wait Until Keyword Succeeds 10 min 30 sec Login %{NIMBUS_USER} %{NIMBUS_PASSWORD} From e9f99ad11fc771fb2d37112946941884e0706de1 Mon Sep 17 00:00:00 2001 From: Jason Morris Date: Thu, 19 Apr 2018 16:50:43 -0500 Subject: [PATCH 5/8] Check container log size --- .../5-28-VICAdmin-Isolated.robot | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot index 8b332d858c..89c4497f53 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot @@ -1,4 +1,4 @@ -# Copyright 2016-2017 VMware, Inc. All Rights Reserved. +# Copyright 2016-2018 VMware, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,13 +29,12 @@ Setup VCH With No WAN ${dvs}= Run govc find -type DistributedVirtualSwitch | head -n1 ${rc} ${output}= Run And Return Rc And Output govc dvs.portgroup.add -vlan=${vlan} -dvs ${dvs} dpg-no-wan + Should Be Equal As Integers ${rc} 0 ${output}= Run bin/vic-machine-linux create --debug 1 --name=%{VCH-NAME} --target=%{TEST_URL}%{TEST_DATACENTER} --thumbprint=%{TEST_THUMBPRINT} --user=%{TEST_USERNAME} --image-store=%{TEST_DATASTORE} --password=%{TEST_PASSWORD} --force=true --compute-resource=%{TEST_RESOURCE} --no-tlsverify --bridge-network=%{BRIDGE_NETWORK} --management-network=%{PUBLIC_NETWORK} --client-network=%{PUBLIC_NETWORK} --client-network-ip &{static}[ip]/&{static}[netmask] --client-network-gateway &{static}[gateway] --public-network dpg-no-wan --public-network-ip 192.168.100.2/24 --public-network-gateway 192.168.100.1 --dns-server 10.170.16.48 --insecure-registry wdc-harbor-ci.eng.vmware.com Get Docker Params ${output} ${false} - Set Environment Variable VIC-ADMIN %{VCH-IP}:2378 - Teardown VCH With No WAN Run Keyword And Ignore Error Nimbus Cleanup ${list} Cleanup VIC Appliance On Test Server @@ -86,10 +85,12 @@ Get Container Logs ${vmName}= Get VM Display Name ${container} ${rc} ${output}= Run And Return Rc and Output curl -sk %{VIC-ADMIN}/container-logs.tar.gz -b /tmp/cookies-%{VCH-NAME} | (cd /tmp; tar xvzf - ${vmName}/tether.debug ${vmName}/vmware.log) Log ${output} - ${rc} ${output}= Run And Return Rc and Output ls -l /tmp/${vmName}/vmware.log + ${rc} ${output}= Run And Return Rc and Output cat /tmp/${vmName}/vmware.log Should Be Equal As Integers ${rc} 0 - ${rc} ${output}= Run And Return Rc and Output ls -l /tmp/${vmName}/tether.debug + Should Not Be Empty ${output} + ${rc} ${output}= Run And Return Rc and Output cat /tmp/${vmName}/tether.debug Should Be Equal As Integers ${rc} 0 + Should Not Be Empty ${output} ${rc} ${output}= Run And Return Rc and Output grep 'prepping for switch to container filesystem' /tmp/${vmName}/tether.debug Should Be Equal As Integers ${rc} 0 Run rm -f /tmp/${vmName}/tether.debug /tmp/${vmName}/vmware.log From cddd734676428c776491dd889d85886e70fc4070 Mon Sep 17 00:00:00 2001 From: Jason Morris Date: Thu, 19 Apr 2018 17:51:41 -0500 Subject: [PATCH 6/8] Specify client network route --- .../5-28-VICAdmin-Isolated.robot | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot index 89c4497f53..ac336e469c 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot @@ -14,11 +14,15 @@ *** Settings *** Documentation Test 5-28 - VICAdmin Isolated Resource ../../resources/Util.robot -Suite Setup Setup VCH With No WAN +Suite Setup Deploy Testbed With Static IP Suite Teardown Teardown VCH With No WAN Default Tags *** Keywords *** +Deploy Testbed With Static IP + Setup VCH With No WAN + Deploy VCH With No WAN + Setup VCH With No WAN Wait Until Keyword Succeeds 10x 10m Static IP Address Create Set Test Environment Variables @@ -31,13 +35,13 @@ Setup VCH With No WAN ${rc} ${output}= Run And Return Rc And Output govc dvs.portgroup.add -vlan=${vlan} -dvs ${dvs} dpg-no-wan Should Be Equal As Integers ${rc} 0 - ${output}= Run bin/vic-machine-linux create --debug 1 --name=%{VCH-NAME} --target=%{TEST_URL}%{TEST_DATACENTER} --thumbprint=%{TEST_THUMBPRINT} --user=%{TEST_USERNAME} --image-store=%{TEST_DATASTORE} --password=%{TEST_PASSWORD} --force=true --compute-resource=%{TEST_RESOURCE} --no-tlsverify --bridge-network=%{BRIDGE_NETWORK} --management-network=%{PUBLIC_NETWORK} --client-network=%{PUBLIC_NETWORK} --client-network-ip &{static}[ip]/&{static}[netmask] --client-network-gateway &{static}[gateway] --public-network dpg-no-wan --public-network-ip 192.168.100.2/24 --public-network-gateway 192.168.100.1 --dns-server 10.170.16.48 --insecure-registry wdc-harbor-ci.eng.vmware.com +Deploy VCH With No WAN + ${output}= Run bin/vic-machine-linux create --debug 1 --name=%{VCH-NAME} --target=%{TEST_URL}%{TEST_DATACENTER} --thumbprint=%{TEST_THUMBPRINT} --user=%{TEST_USERNAME} --image-store=%{TEST_DATASTORE} --password=%{TEST_PASSWORD} --force=true --compute-resource=%{TEST_RESOURCE} --no-tlsverify --bridge-network=%{BRIDGE_NETWORK} --management-network=%{PUBLIC_NETWORK} --client-network=%{PUBLIC_NETWORK} --client-network-ip &{static}[ip]/&{static}[netmask] --client-network-gateway 10.0.0.0/8:&{static}[gateway] --public-network dpg-no-wan --public-network-ip 192.168.100.2/24 --public-network-gateway 192.168.100.1 --dns-server 10.170.16.48 --insecure-registry wdc-harbor-ci.eng.vmware.com Get Docker Params ${output} ${false} Teardown VCH With No WAN Run Keyword And Ignore Error Nimbus Cleanup ${list} - Cleanup VIC Appliance On Test Server Login And Save Cookies [Tags] secret From a59194e3aa5fdc45f91a64086aa590f10c19148b Mon Sep 17 00:00:00 2001 From: Jason Morris Date: Thu, 19 Apr 2018 17:59:23 -0500 Subject: [PATCH 7/8] Fail to pull docker image --- .../5-28-VICAdmin-Isolated.md | 11 +++--- .../5-28-VICAdmin-Isolated.robot | 34 +++++-------------- 2 files changed, 14 insertions(+), 31 deletions(-) diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.md b/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.md index 2506c691ec..bb870c5b38 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.md +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.md @@ -24,10 +24,15 @@ This test requires that a vSphere environment be running and available, which dS 1. Log in 2. Page displays vic-machine name in title -## WAN Status +## WAN Status Should Fail 1. Log in 2. Page displays warning symbols for wan connection status +## Fail To Pull Docker Image +1. Log in +2. Pull docker busybox +3. Fail to pull busybox + ## Get Portlayer Log 1. Log in 2. Portlayer Log access is allowed and logs are downloaded @@ -40,10 +45,6 @@ This test requires that a vSphere environment be running and available, which dS 1. Log in 2. Docker Personality Log access is allowed and logs are downloaded -## Get Container Logs -1. Log in -2. Container Log access is allowed and logs are downloaded - ## Get VICAdmin Log 1. Log in 2. VICAdmin Log access is allowed and logs are downloaded \ No newline at end of file diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot index ac336e469c..60f14ffeb7 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot @@ -36,6 +36,7 @@ Setup VCH With No WAN Should Be Equal As Integers ${rc} 0 Deploy VCH With No WAN + [Tags] secret ${output}= Run bin/vic-machine-linux create --debug 1 --name=%{VCH-NAME} --target=%{TEST_URL}%{TEST_DATACENTER} --thumbprint=%{TEST_THUMBPRINT} --user=%{TEST_USERNAME} --image-store=%{TEST_DATASTORE} --password=%{TEST_PASSWORD} --force=true --compute-resource=%{TEST_RESOURCE} --no-tlsverify --bridge-network=%{BRIDGE_NETWORK} --management-network=%{PUBLIC_NETWORK} --client-network=%{PUBLIC_NETWORK} --client-network-ip &{static}[ip]/&{static}[netmask] --client-network-gateway 10.0.0.0/8:&{static}[gateway] --public-network dpg-no-wan --public-network-ip 192.168.100.2/24 --public-network-gateway 192.168.100.1 --dns-server 10.170.16.48 --insecure-registry wdc-harbor-ci.eng.vmware.com Get Docker Params ${output} ${false} @@ -54,11 +55,17 @@ Display HTML ${rc} ${output}= Run And Return Rc And Output curl -sk %{VIC-ADMIN} -b /tmp/cookies-%{VCH-NAME} Should contain ${output} VIC: %{VCH-NAME} -WAN Status +WAN Status Should Fail Login And Save Cookies ${rc} ${output}= Run And Return Rc And Output curl -sk %{VIC-ADMIN} -b /tmp/cookies-%{VCH-NAME} Should contain ${output}
Registry and Internet Connectivity +Fail To Pull Docker Image + Login And Save Cookies + ${rc} ${output}= Run And Return Rc and Output docker %{VCH-PARAMS} pull ${busybox} + Should Be Equal As Integers ${rc} 1 + Should contain ${output} no route to host + Get Portlayer Log Login And Save Cookies ${rc} ${output}= Run And Return Rc And Output curl -sk %{VIC-ADMIN}/logs/port-layer.log -b /tmp/cookies-%{VCH-NAME} @@ -74,31 +81,6 @@ Get Docker Personality Log ${rc} ${output}= Run And Return Rc And Output curl -sk %{VIC-ADMIN}/logs/docker-personality.log -b /tmp/cookies-%{VCH-NAME} Should contain ${output} docker personality -Get Container Logs - Login And Save Cookies - ${rc} ${output}= Run And Return Rc and Output docker %{VCH-PARAMS} pull ${busybox} - Should Be Equal As Integers ${rc} 0 - Should Not Contain ${output} Error - ${rc} ${container}= Run And Return Rc and Output docker %{VCH-PARAMS} create ${busybox} /bin/top - Should Be Equal As Integers ${rc} 0 - Should Not Contain ${container} Error - ${rc} ${output}= Run And Return Rc and Output docker %{VCH-PARAMS} start ${container} - Log ${output} - Should Be Equal As Integers ${rc} 0 - Should Not Contain ${output} Error - ${vmName}= Get VM Display Name ${container} - ${rc} ${output}= Run And Return Rc and Output curl -sk %{VIC-ADMIN}/container-logs.tar.gz -b /tmp/cookies-%{VCH-NAME} | (cd /tmp; tar xvzf - ${vmName}/tether.debug ${vmName}/vmware.log) - Log ${output} - ${rc} ${output}= Run And Return Rc and Output cat /tmp/${vmName}/vmware.log - Should Be Equal As Integers ${rc} 0 - Should Not Be Empty ${output} - ${rc} ${output}= Run And Return Rc and Output cat /tmp/${vmName}/tether.debug - Should Be Equal As Integers ${rc} 0 - Should Not Be Empty ${output} - ${rc} ${output}= Run And Return Rc and Output grep 'prepping for switch to container filesystem' /tmp/${vmName}/tether.debug - Should Be Equal As Integers ${rc} 0 - Run rm -f /tmp/${vmName}/tether.debug /tmp/${vmName}/vmware.log - Get VICAdmin Log Login And Save Cookies ${rc} ${output}= Run And Return Rc And Output curl -sk %{VIC-ADMIN}/logs/vicadmin.log -b /tmp/cookies-%{VCH-NAME} From bc4e10d95438a6bcc732bfb59d93cd88e0fbe6c5 Mon Sep 17 00:00:00 2001 From: Jason Morris Date: Tue, 24 Apr 2018 09:25:34 -0500 Subject: [PATCH 8/8] Adjust keyword usage for handling arguments --- .../5-26-Static-IP-Address.robot | 8 ++++++- .../5-28-VICAdmin-Isolated.robot | 21 ++++++++++++++----- .../Group5-Functional-Tests/TestCases.md | 2 +- tests/resources/Nimbus-Util.robot | 7 ++++--- 4 files changed, 28 insertions(+), 10 deletions(-) diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-26-Static-IP-Address.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-26-Static-IP-Address.robot index 08f37fda3f..65adb78c3f 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-26-Static-IP-Address.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-26-Static-IP-Address.robot @@ -15,9 +15,15 @@ *** Settings *** Documentation Test 5-26 - Static IP Address Resource ../../resources/Util.robot -Suite Setup Wait Until Keyword Succeeds 10x 10m Static IP Address Create +Suite Setup Setup VC With Static IP Suite Teardown Run Keyword And Ignore Error Nimbus Cleanup ${list} + +*** Keywords *** +Setup VC With Static IP + ${name}= Evaluate 'vic-5-26-' + str(random.randint(1000,9999)) modules=random + Wait Until Keyword Succeeds 10x 10m Create Simple VC Cluster With Static IP ${name} + *** Test Cases *** Test Log To Console \nStarting test... diff --git a/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot b/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot index 60f14ffeb7..bb7a9ccef7 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot +++ b/tests/manual-test-cases/Group5-Functional-Tests/5-28-VICAdmin-Isolated.robot @@ -20,11 +20,12 @@ Default Tags *** Keywords *** Deploy Testbed With Static IP - Setup VCH With No WAN + Setup VC With No WAN Deploy VCH With No WAN -Setup VCH With No WAN - Wait Until Keyword Succeeds 10x 10m Static IP Address Create +Setup VC With No WAN + ${name}= Evaluate 'vic-5-28-' + str(random.randint(1000,9999)) modules=random + Wait Until Keyword Succeeds 10x 10m Create Simple VC Cluster With Static IP ${name} Set Test Environment Variables Log To Console Create a vch with a public network on a no-wan portgroup. @@ -36,10 +37,14 @@ Setup VCH With No WAN Should Be Equal As Integers ${rc} 0 Deploy VCH With No WAN + ${out}= Deploy VCH With No WAN Secret + Log ${out} + Get Docker Params ${out} ${false} + +Deploy VCH With No WAN Secret [Tags] secret ${output}= Run bin/vic-machine-linux create --debug 1 --name=%{VCH-NAME} --target=%{TEST_URL}%{TEST_DATACENTER} --thumbprint=%{TEST_THUMBPRINT} --user=%{TEST_USERNAME} --image-store=%{TEST_DATASTORE} --password=%{TEST_PASSWORD} --force=true --compute-resource=%{TEST_RESOURCE} --no-tlsverify --bridge-network=%{BRIDGE_NETWORK} --management-network=%{PUBLIC_NETWORK} --client-network=%{PUBLIC_NETWORK} --client-network-ip &{static}[ip]/&{static}[netmask] --client-network-gateway 10.0.0.0/8:&{static}[gateway] --public-network dpg-no-wan --public-network-ip 192.168.100.2/24 --public-network-gateway 192.168.100.1 --dns-server 10.170.16.48 --insecure-registry wdc-harbor-ci.eng.vmware.com - - Get Docker Params ${output} ${false} + [Return] ${output} Teardown VCH With No WAN Run Keyword And Ignore Error Nimbus Cleanup ${list} @@ -53,32 +58,38 @@ Login And Save Cookies Display HTML Login And Save Cookies ${rc} ${output}= Run And Return Rc And Output curl -sk %{VIC-ADMIN} -b /tmp/cookies-%{VCH-NAME} + Log ${output} Should contain ${output} VIC: %{VCH-NAME} WAN Status Should Fail Login And Save Cookies ${rc} ${output}= Run And Return Rc And Output curl -sk %{VIC-ADMIN} -b /tmp/cookies-%{VCH-NAME} + Log ${output} Should contain ${output}
Registry and Internet Connectivity Fail To Pull Docker Image Login And Save Cookies ${rc} ${output}= Run And Return Rc and Output docker %{VCH-PARAMS} pull ${busybox} + Log ${output} Should Be Equal As Integers ${rc} 1 Should contain ${output} no route to host Get Portlayer Log Login And Save Cookies ${rc} ${output}= Run And Return Rc And Output curl -sk %{VIC-ADMIN}/logs/port-layer.log -b /tmp/cookies-%{VCH-NAME} + Log ${output} Should contain ${output} Launching portlayer server Get VCH-Init Log Login And Save Cookies ${rc} ${output}= Run And Return Rc And Output curl -sk %{VIC-ADMIN}/logs/init.log -b /tmp/cookies-%{VCH-NAME} + Log ${output} Should contain ${output} reaping child processes Get Docker Personality Log Login And Save Cookies ${rc} ${output}= Run And Return Rc And Output curl -sk %{VIC-ADMIN}/logs/docker-personality.log -b /tmp/cookies-%{VCH-NAME} + Log ${output} Should contain ${output} docker personality Get VICAdmin Log diff --git a/tests/manual-test-cases/Group5-Functional-Tests/TestCases.md b/tests/manual-test-cases/Group5-Functional-Tests/TestCases.md index 2eb7e414c3..66cfa3a767 100644 --- a/tests/manual-test-cases/Group5-Functional-Tests/TestCases.md +++ b/tests/manual-test-cases/Group5-Functional-Tests/TestCases.md @@ -52,4 +52,4 @@ Group 5 - Functional Tests - [Test 5-27 - Selenium Grid](5-27-Selenium-Grid.md) - - +[Test 5-28 - VICAdmin Isolated](5-28-VICAdmin-Isolated.md) diff --git a/tests/resources/Nimbus-Util.robot b/tests/resources/Nimbus-Util.robot index 90e16ecfea..fcbc733d4f 100644 --- a/tests/resources/Nimbus-Util.robot +++ b/tests/resources/Nimbus-Util.robot @@ -451,13 +451,14 @@ Power Off Host ${out}= Execute Command poweroff -d 0 -f Close connection -Static IP Address Create +Create Simple VC Cluster With Static IP + [Arguments] ${name}=vic-simple-vc-static-ip [Timeout] 110 minutes - Log To Console Starting Static IP Address test... Set Suite Variable ${NIMBUS_LOCATION} NIMBUS_LOCATION=wdc Run Keyword And Ignore Error Nimbus Cleanup ${list} ${false} - ${name}= Evaluate 'vic-5-26-' + str(random.randint(1000,9999)) modules=random + Log To Console Create a new simple vc cluser with static ip support... ${out}= Deploy Nimbus Testbed %{NIMBUS_USER} %{NIMBUS_PASSWORD} --noSupportBundles --plugin testng --vcvaBuild ${VC_VERSION} --esxBuild ${ESX_VERSION} --testbedName vic-simple-cluster --testbedSpecRubyFile /dbc/pa-dbc1111/mhagen/nimbus-testbeds/testbeds/vic-simple-cluster.rb --runName ${name} + Log ${out} Open Connection %{NIMBUS_GW} Wait Until Keyword Succeeds 10 min 30 sec Login %{NIMBUS_USER} %{NIMBUS_PASSWORD}