diff options
Diffstat (limited to 'cmso-robot/robot/resources/test_templates')
-rw-r--r-- | cmso-robot/robot/resources/test_templates/optimizer.robot | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cmso-robot/robot/resources/test_templates/optimizer.robot b/cmso-robot/robot/resources/test_templates/optimizer.robot new file mode 100644 index 0000000..9c4d563 --- /dev/null +++ b/cmso-robot/robot/resources/test_templates/optimizer.robot @@ -0,0 +1,24 @@ +*** Settings *** +Documentation Creates VID VNF Instance +Library StringTemplater +Library String +Library OperatingSystem +Library UUID +Library Collections +Library DateTime +Resource ../optimizer_common.robot +Resource ../json_templater.robot +Resource ../files.robot +*** Variables **** + + +*** Keywords *** +Optimizer Validation Template + [Arguments] ${template_folder} ${request_file} ${expected_status_code} ${expected_message} ${variables}=[] + ${uuid}= Generate UUID + ${map}= Create Dictionary uuid=${uuid} + ${data}= Fill JSON Template File ${template_folder}/${request_file} ${map} + ${resp}= Post Optimizer alias optimize/schedule ${data} + @{listVars}= Evaluate ${variables} + Validate JSON Error ${resp.json()} ${expected_Message} ${listVars} + |