Switch from using GLOBAL_VM_PROPERTIES hash 31/2231/1
authorJerry Flood <jf9860@att.com>
Thu, 16 Mar 2017 20:44:17 +0000 (16:44 -0400)
committerJerry Flood <jf9860@att.com>
Thu, 16 Mar 2017 20:46:23 +0000 (16:46 -0400)
to GLOBAL_INJECTED_<name> variables

Change-Id: Ibbb28f3eaaa1cbad9b6df64d3b2edf8876c24d51
Signed-off-by: Jerry Flood <jf9860@att.com>
red.xml
robot/resources/openstack/keystone_interface.robot
robot/resources/openstack/openstack_common.robot
robot/resources/sdngc_interface.robot

diff --git a/red.xml b/red.xml
index 7a8e5f9..9a4b92c 100644 (file)
--- a/red.xml
+++ b/red.xml
@@ -23,9 +23,9 @@
         <path location="robot/library"/>
     </pythonpath>
     <classpath/>
-    <variableFiles path="../properties/integration_preload_parameters.py"/>
-    <variableFiles path="../properties/integration_robot_properties.py"/>
-    <variableFiles path="../properties/sample_vm_properties.py"/>
+    <variableFiles path="testsuite/properties/integration_preload_parameters.py"/>
+    <variableFiles path="testsuite/properties/dfw_robot_properties.py"/>
+    <variableFiles path="testsuite/properties/dfw_vm_properties.py"/>
     <variableFiles path="testsuite/robot/assets/service_mappings.py"/>
     <excludedForValidation/>
     <isValidatedFileSizeCheckingEnabled>true</isValidatedFileSizeCheckingEnabled>
index 6c48e12..63f7245 100644 (file)
@@ -51,5 +51,4 @@ Set Openstack Credentials
     [Return]   ${user}   ${pass}
 
 Get Openstack Credentials
-    Dictionary Should Contain Key  ${GLOBAL_VM_PROPERTIES}   openstack_username
-    [Return]   ${GLOBAL_VM_PROPERTIES['openstack_username']}    ${GLOBAL_VM_PROPERTIES['openstack_password']}
\ No newline at end of file
+    [Return]   ${GLOBAL_INJECTED_OPENSTACK_USERNAME}    ${GLOBAL_INJECTED_OPENSTACK_PASSWORD}
\ No newline at end of file
index ef370c6..7783060 100644 (file)
@@ -67,8 +67,7 @@ Get Openstack Region
     [Documentation]   Returns the current openstack region test variable
     ...               Defaults to the openstack region of the Robot VM
     Return From Keyword If   len('${OPENSTACK_SERVICE_REGION}') > 0   ${OPENSTACK_SERVICE_REGION}
-    Dictionary Should Contain Key    ${GLOBAL_VM_PROPERTIES}   region
-    Set Test Variable   ${OPENSTACK_SERVICE_REGION}   ${GLOBAL_VM_PROPERTIES['region']}
+    Set Test Variable   ${OPENSTACK_SERVICE_REGION}   ${GLOBAL_INJECTED_REGION}
     Log   Setting OPENSTACK_SERVICE_REGION=${OPENSTACK_SERVICE_REGION}
     [Return]   ${OPENSTACK_SERVICE_REGION}
 
index d413b6e..ee8d09e 100644 (file)
@@ -133,7 +133,9 @@ Get Template Parameters
     ${hostid}=    Get Substring    ${uuid}    -4
     ${ecompnet}=    Evaluate    ${GLOBAL_BUILD_NUMBER}%255
     # Initialize the value map with the properties generated from the Robot VM /opt/config folder
-    ${valuemap}=   Copy Dictionary   ${GLOBAL_VM_PROPERTIES}
+    ${valuemap}=   Create Dictionary
+    Set To Dictionary   ${valuemap}   artifacts_version=${GLOBAL_INJECTED_ARTIFACTS_VERSION}
+    Set To Dictionary   ${valuemap}   network=${GLOBAL_INJECTED_NETWORK} 
     # update the value map with unique values.
     Set To Dictionary   ${valuemap}   uuid=${uuid}   hostid=${hostid}    ecompnet=${ecompnet}
     ${parameters}=    Create Dictionary