aboutsummaryrefslogtreecommitdiffstats
path: root/cmso-robot/robot/testsuites/MiscTests.robot
blob: 987f7d6ccd7cda596b34d16b4549ac4e5de66b20 (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

@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .cpf { color: #75715e } /* Comment.PreprocFile */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cs { color: #75715e } /* Comment.Special */
.highlight .gd { color: #f92672 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gi { color: #a6e22e } /* Generic.Inserted */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #75715e } /* Generic.Subheading */
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
.highlight .kn { color: #f92672 } /* Keyword.Namespace */
.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
.highlight .kr { color: #66d9ef } /* Keyword.Reserved */
.highlight .kt { color: #66d9ef } /* Keyword.Type */
.highlight .ld { color: #e6db74 } /* Literal.Date */
.highlight .m { color: #ae81ff } /* Literal.Number */
.highlight .s { color: #e6db74 } /* Literal.String */
.highlight .na { color: #a6e22e } /* Name.Attribute */
.highlight .nb { color: #f8f8f2 } /* Name.Builtin */
.highlight .nc { color: #a6e22e } /* Name.Class */
.highlight .no { color: #66d9ef } /* Name.Constant */
.highlight .nd { color: #a6e22e } /* Name.Decorator */
.highlight .ni { color: #f8f8f2 } /* Name.Entity */
.highlight .ne { color: #a6e22e } /* Name.Exception */
.highlight .nf { color: #a6e22e } /* Name.Function */
.highlight .nl {
*** Settings ***
Documentation   Creates VID VNF Instance

Library   StringTemplater
Library   UUID
Library   Collections

Resource    ../resources/optimizer_common.robot
Resource    ../resources/scheduler_common.robot
Resource    ../resources/ticketmgt_common.robot
Resource    ../resources/topology_common.robot
Resource    ../resources/scheduler_requests/approval_requests.robot

# Test Setup
# Test Teardown   
*** Variable***
${user_name}=    
${password}=    
${uuid_list_file}=    robot/assets/get_schedule_UUIDs.txt
${template_folder}=    robot/assets/templates/changemanagement
*** Test Cases ***
Test CMSO Optimizer Admin
    [Tags]   ete   
    ${response}=    Get Optimizer Plain Text   alias    admin/password   
    Should Contain   ${response.text}   kECFDaLusYNHTN6Q4DmsYw==

Test CMSO Service Admin
    [Tags]   ete 
    ${response}=    Get Scheduler Plain Text   alias    /cmso/v1/admin/password
    Should Contain   ${response.text}   kECFDaLusYNHTN6Q4DmsYw==

Test CMSO Ticket Mgt Admin
    [Tags]   ete 
    ${response}=    Get Ticket Mgt Plain Text   alias    admin/password
    Should Contain   ${response.text}   kECFDaLusYNHTN6Q4DmsYw==

Test CMSO Topology Admin
    [Tags]   ete 
    ${response}=    Get Topology Plain Text   alias    admin/password
    Should Contain   ${response.text}   kECFDaLusYNHTN6Q4DmsYw==

Test CMSO Optimizer Health
    [Tags]   ete   
    ${response}=    Get Optimizer   alias    health   
    Dictionary Should Contain Item   ${response.json()}   healthy  True 
     
Test CMSO Service Health
    [Tags]   ete 
    ${response}=    Get Scheduler   alias    /cmso/v1/health
    Dictionary Should Contain Item   ${response.json()}   healthy  True 
       

Test CMSO Ticket Mgt Health
    [Tags]   ete 
    ${response}=    Get Ticket Mgt   alias    health
    Dictionary Should Contain Item   ${response.json()}   healthy  True 
    

Test CMSO Topology Health
    [Tags]   ete 
    ${response}=    Get Topology   alias    health
    Dictionary Should Contain Item   ${response.json()}   healthy  True 
    
Test CMSO Optimizer Policies
    [Tags]   ete   
    ${response}=    Get Optimizer   alias  policies   
    Should Be Equal As Strings   ${response.status_code}   200
    ##Should Contain   ${response.json()}   kECFDaLusYNHTN6Q4DmsYw==

Test CMSO Optimizer Get Schedule
    [Tags]   ete   
    ${response}=    Get Optimizer   alias  optimize/schedule/id1   
    Should Be Equal As Strings   ${response.status_code}   200
    ##Should Contain   ${response.json()}   kECFDaLusYNHTN6Q4DmsYw==

Test CMSO Optimizer Delete Schedule
    [Tags]   ete   
    ${response}=    Delete Optimizer   alias  optimize/schedule/id1   
    Should Be Equal As Strings   ${response.status_code}   204
    ##Should Contain   ${response.json()}   kECFDaLusYNHTN6Q4DmsYw==


Test CMSO Ticket Mgt Get Tickets
    [Tags]   ete 
    ${response}=    Get Ticket Mgt   alias    tickets
    Should Be Equal As Strings   ${response.status_code}   200
    ##Dictionary Should Contain Item   ${response.json()}   healthy  True 

Test CMSO Ticket Mgt Get Ticket
    [Tags]   ete 
    ${response}=    Get Ticket Mgt   alias    ticket/none
    Should Be Equal As Strings   ${response.status_code}   200
    ##Dictionary Should Contain Item   ${response.json()}   healthy  True 

Get Not Found Schedule
    [Tags]   ete 
    ${response}=   Get Change Management   alias   schedules/doesNotExist
    Should Be Equal As Strings   ${response.status_code}   404

Delete Not Found Schedule
    [Tags]   ete 
    ${response}=   Delete Change Management   alias   schedules/doesNotExist
    Should Be Equal As Strings   ${response.status_code}   404

Approve Not Found Schedule
    [Tags]   ete 
    Send Tier2 Approval   DoesNotExist   jf9860    Accespted   status_code=400