aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2019-08-02 10:56:54 -0400
committerDR695H <dr695h@att.com>2019-08-02 10:56:54 -0400
commit2d8bd80f6c940914532213691d60c304ef7420f3 (patch)
treef04bfea211e2947ed8143119e416ff45a8bd0b89 /robot/resources
parentd0453b281ae4121d24d9f8dba96e50b3f8666744 (diff)
dont reference the dictionary in properties
Issue-ID: TEST-184 Change-Id: I5d72aa9f0d102f6099c9fff442c84b9d3b28a1f2 Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robot/resources')
-rw-r--r--robot/resources/sdngc_interface.robot3
-rw-r--r--robot/resources/so/direct_instantiate.robot6
2 files changed, 5 insertions, 4 deletions
diff --git a/robot/resources/sdngc_interface.robot b/robot/resources/sdngc_interface.robot
index 779611e3..ff85c69d 100644
--- a/robot/resources/sdngc_interface.robot
+++ b/robot/resources/sdngc_interface.robot
@@ -157,8 +157,7 @@ Get Template Parameters
${ecompnet}= Evaluate (${GLOBAL_BUILD_NUMBER}%128)+128
- # Initialize the value map with the properties generated from the Robot VM /opt/config folder
- ${valuemap}= Copy Dictionary ${GLOBAL_INJECTED_PROPERTIES}
+ ${valuemap}= Get Globally Injected Parameters
# These should be deprecated by the above....
Set To Dictionary ${valuemap} artifacts_version=${GLOBAL_INJECTED_ARTIFACTS_VERSION}
diff --git a/robot/resources/so/direct_instantiate.robot b/robot/resources/so/direct_instantiate.robot
index 0c74d5f6..31deab96 100644
--- a/robot/resources/so/direct_instantiate.robot
+++ b/robot/resources/so/direct_instantiate.robot
@@ -6,7 +6,8 @@ Library Collections
Library String
Library DateTime
Library SoUtils
-Library ONAPLibrary.PreloadData
+Library ONAPLibrary.PreloadData
+Library ONAPLibrary.Utilities
Resource ../global_properties.robot
*** Keywords ***
@@ -19,13 +20,14 @@ Instantiate Service Direct To SO
${preload_dict}= Get Default Preload Data preload
${template}= Create Dictionary
@{keys}= Get Dictionary Keys ${preload_dict}
+ ${parameters}= Get Globally Injected Parameters
:FOR ${key} IN @{keys}
\ ${value}= Get From Dictionary ${preload_dict} ${key}
\ ${tmp_value}= Set Variable If 'GLOBAL_' in $value ${value}
\ ${tmp_value}= Run Keyword If 'GLOBAL_' in $value Replace String ${tmp_value} \$ ${EMPTY}
\ ${tmp_value}= Run Keyword If 'GLOBAL_' in $value Replace String ${tmp_value} { ${EMPTY}
\ ${tmp_value}= Run Keyword If 'GLOBAL_' in $value Replace String ${tmp_value} } ${EMPTY}
- \ ${value}= Set Variable If 'GLOBAL_' in $value ${GLOBAL_INJECTED_PROPERTIES["${tmp_value}"]} ${value}
+ \ ${value}= Set Variable If 'GLOBAL_' in $value ${parameters["${tmp_value}"]} ${value}
\ ${new_key}= Catenate \$ { ${key} }
\ ${new_key}= Evaluate '${new_key}'.replace(' ','')
\ Set To Dictionary ${template} ${new_key} ${value}