diff options
Diffstat (limited to 'robot/resources/so/direct_instantiate.robot')
-rw-r--r-- | robot/resources/so/direct_instantiate.robot | 6 |
1 files changed, 4 insertions, 2 deletions
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} |