summaryrefslogtreecommitdiffstats
path: root/cmso-robot/robot/resources/test_templates/optimizer.robot
diff options
context:
space:
mode:
authorJerry Flood <jflood@att.com>2019-03-28 06:46:34 -0400
committerJerry Flood <jflood@att.com>2019-03-28 06:47:04 -0400
commit8684696712cfe4120092b291cb124accc5712f62 (patch)
tree5333b80f6274917093e588109f148a60e1f1ffb6 /cmso-robot/robot/resources/test_templates/optimizer.robot
parent0b477ebe952a088c278482f2d30b843559266a37 (diff)
Testsuie for Optimizer mS
Issue-ID: OPTFRA-430 Change-Id: I4c9f42517019a5b30dd3ecd744bf8f15c939da58 Signed-off-by: Jerry Flood <jflood@att.com>
Diffstat (limited to 'cmso-robot/robot/resources/test_templates/optimizer.robot')
-rw-r--r--cmso-robot/robot/resources/test_templates/optimizer.robot24
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}
+