diff options
author | Shankaranarayanan Puzhavakath Narayanan <snarayanan@research.att.com> | 2019-03-28 19:05:59 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-03-28 19:05:59 +0000 |
commit | b49d93de48e5404b1a17ddb1b2f4c3b432de9506 (patch) | |
tree | c8ba02758302a3499866be042dedcdf9cc2fb7a8 /cmso-robot/robot/testsuites/OptimizerValidation.robot | |
parent | 5d6976a51d62e85aa8e3b284fd3070098f9e4dec (diff) | |
parent | 8684696712cfe4120092b291cb124accc5712f62 (diff) |
Merge "Testsuie for Optimizer mS"
Diffstat (limited to 'cmso-robot/robot/testsuites/OptimizerValidation.robot')
-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 |