aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/clamp/APIs/04__Verify_API_Models.robot
blob: f4f7626905a270679bbb715505befcc0597418af (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
*** Settings ***
Library     Collections
Library     RequestsLibrary
Library     OperatingSystem
Library     json

*** Test Cases ***
Verify HolmesModel1
    ${auth}=    Create List     admin    5f4dcc3b5aa765d61d8327deb882cf99
    Create Session   clamp  http://localhost:8080   auth=${auth}
    ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/model/ClHolmes1
    Should Contain Match    ${resp}   *templateHolmes1*
    Should Contain Match    ${resp}   *DC1*
    Should Contain Match    ${resp}   *DC2*
    Should Contain Match    ${resp}   *Policy1*
    Should Contain Match    ${resp}   *vnfRecipe*
    Should Contain Match    ${resp}   *180*
    Should Contain Match    ${resp}   *345*
    Should Contain Match    ${resp}   *Config Policy name1*

Verify HolmesModel2
    ${auth}=    Create List     admin    5f4dcc3b5aa765d61d8327deb882cf99
    Create Session   clamp  http://localhost:8080   auth=${auth}
    ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/model/ClHolmes2
    Should Contain Match    ${resp}   *templateHolmes2*
    Should Contain Match    ${resp}   *DC2*
    Should Contain Match    ${resp}   *DC3*
    Should Contain Match    ${resp}   *Policy2*
    Should Contain Match    ${resp}   *enbRecipe*
    Should Contain Match    ${resp}   *reset*
    Should Contain Match    ${resp}   *360*
    Should Contain Match    ${resp}   *345*
    Should Contain Match    ${resp}   *Config Policy Name2*

Verify TCAModel1
    ${auth}=    Create List     admin    5f4dcc3b5aa765d61d8327deb882cf99
    Create Session   clamp  http://localhost:8080   auth=${auth}
    ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/model/ClTCA1
    Should Contain Match    ${resp}   *templateTCA1*
    Should Contain Match    ${resp}   *vnfRecipe*
    Should Contain Match    ${resp}   *DC1*
    Should Contain Match    ${resp}   *DC2*
    Should Contain Match    ${resp}   *Policy3*
    Should Contain Match    ${resp}   *345*
    Should Contain Match    ${resp}   *200*
    Should Contain Match    ${resp}   *ONSET*

Verify TCAModel2
    ${auth}=    Create List     admin    5f4dcc3b5aa765d61d8327deb882cf99
    Create Session   clamp  http://localhost:8080   auth=${auth}
    ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/model/ClTCA2
    Should Contain Match    ${resp}   *templateTCA2*
    Should Contain Match    ${resp}   *vnfRecipe*
    Should Contain Match    ${resp}   *DC1*
    Should Contain Match    ${resp}   *DC2*
    Should Contain Match    ${resp}   *DC3*
    Should Contain Match    ${resp}   *Policy4*
    Should Contain Match    ${resp}   *vLoadBalancer*
    Should Contain Match    ${resp}   *345*
    Should Contain Match    ${resp}   *300*
    Should Contain Match    ${resp}   *VM*

Get model names
    ${auth}=    Create List     admin    5f4dcc3b5aa765d61d8327deb882cf99
    Create Session   clamp  http://localhost:8080   auth=${auth}
    ${resp}=    Get Request    clamp   /restservices/clds/v1/clds/model-names
    Should Contain Match    ${resp}   *ClHolmes1*
    Should Contain Match    ${resp}   *ClHolmes2*
    Should Contain Match    ${resp}   *ClTCA1*
    Should Contain Match    ${resp}   *ClTCA2*
    Should Not Contain Match    ${resp}   *ClTCA99*
    Should Not Contain Match    ${resp}   *ClHolmes99*