diff options
author | 2019-03-28 06:46:34 -0400 | |
---|---|---|
committer | 2019-03-28 06:47:04 -0400 | |
commit | 8684696712cfe4120092b291cb124accc5712f62 (patch) | |
tree | 5333b80f6274917093e588109f148a60e1f1ffb6 /cmso-robot/robot/testsuites | |
parent | 0b477ebe952a088c278482f2d30b843559266a37 (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/testsuites')
-rw-r--r-- | cmso-robot/robot/testsuites/OptimizerValidation.robot | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/cmso-robot/robot/testsuites/OptimizerValidation.robot b/cmso-robot/robot/testsuites/OptimizerValidation.robot new file mode 100644 index 0000000..f676ce7 --- /dev/null +++ b/cmso-robot/robot/testsuites/OptimizerValidation.robot @@ -0,0 +1,48 @@ +*** Settings *** +Documentation Creates VID VNF Instance + +Library StringTemplater +Library UUID +Library OperatingSystem +Resource ../resources/test_templates/optimizer.robot + +# Test Setup +Test Template Optimizer Validation Template +# Test Teardown +*** Variable *** +${status_code_variable}= 400 +${template_folder}= robot/assets/templates/OptimizerValidation +*** Test Cases *** + +Missing RequestId ${template_folder} MissingRequestId.json 400 CMSO.MISSING_REQUIRED_ATTRIBUTE ["requestId"] + [Tags] opt_validation + +Missing ConcurrencyLimit ${template_folder} MissingConcurrencyLimit.json 400 CMSO.MISSING_REQUIRED_ATTRIBUTE ["concurrencyLimit"] + [Tags] opt_validation + +Missing NormalDuration ${template_folder} MissingNormalDuration.json 400 CMSO.MISSING_REQUIRED_ATTRIBUTE ["normalDuration"] + [Tags] opt_validation + +Missing ChangeWindow ${template_folder} MissingChangeWindow.json 400 CMSO.MISSING_REQUIRED_ATTRIBUTE ["changeWindows"] + [Tags] opt_validation + +Empty ChangeWindows ${template_folder} EmptyChangeWindows.json 400 CMSO.MISSING_REQUIRED_ATTRIBUTE ["changeWindows"] + [Tags] opt_validation + +Missing Elements ${template_folder} MissingElements.json 400 CMSO.MISSING_REQUIRED_ATTRIBUTE ["elements"] + [Tags] opt_validation + +Empty Elements ${template_folder} EmptyElements.json 400 CMSO.MISSING_REQUIRED_ATTRIBUTE ["elements"] + [Tags] opt_validation + +Missing ElementId ${template_folder} MissingElementId.json 400 CMSO.MISSING_REQUIRED_ATTRIBUTE ["elementId"] + [Tags] opt_validation + +Missing StartTime ${template_folder} MissingStartTime.json 400 CMSO.MISSING_REQUIRED_ATTRIBUTE ["startTime"] + [Tags] opt_validation + +Missing EndTime ${template_folder} MissingEndTime.json 400 CMSO.MISSING_REQUIRED_ATTRIBUTE ["endTime"] + [Tags] opt_validation + +Invalid Change Window ${template_folder} InvalidChangeWindow.json 400 CMSO.INVALID_CHANGE_WINDOW + [Tags] opt_validation |