summaryrefslogtreecommitdiffstats
path: root/cmso-robot/robot/testsuites/OptimizerValidation.robot
blob: f676ce70f7a6ee7aab9b9610f8a1dc304ffb0a3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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