Use CBS in HV-VES testsuites
[integration/csit.git] / tests / clamp / APIs / 04__Verify_API_Models.robot
1 *** Settings ***
2 Library     Collections
3 Library     RequestsLibrary
4 Library     OperatingSystem
5 Library     json
6
7 *** Variables ***
8 ${login}                     admin
9 ${passw}                     password
10
11 *** Test Cases ***
12 Verify HolmesModel1
13     ${resp}=    Get Request    ${clamp_session}   /restservices/clds/v1/clds/model/ClHolmes1
14     Should Contain Match    ${resp}   *plateHolmes1*
15     Should Contain Match    ${resp}   *DC1*
16     Should Contain Match    ${resp}   *DC2*
17     Should Contain Match    ${resp}   *Policy1*
18     Should Contain Match    ${resp}   *vnfRecipe*
19     Should Contain Match    ${resp}   *180*
20     Should Contain Match    ${resp}   *345*
21     Should Contain Match    ${resp}   *Config Policy name1*
22
23 Verify HolmesModel2
24     ${resp}=    Get Request    ${clamp_session}   /restservices/clds/v1/clds/model/ClHolmes2
25     Should Contain Match    ${resp}   *plateHolmes2*
26     Should Contain Match    ${resp}   *DC2*
27     Should Contain Match    ${resp}   *DC3*
28     Should Contain Match    ${resp}   *Policy2*
29     Should Contain Match    ${resp}   *vnfRecipe*
30     Should Contain Match    ${resp}   *migrate*
31     Should Contain Match    ${resp}   *360*
32     Should Contain Match    ${resp}   *345*
33     Should Contain Match    ${resp}   *Config Policy Name2*
34
35 Verify TCAModel1
36     ${resp}=    Get Request    ${clamp_session}   /restservices/clds/v1/clds/model/ClTCA1
37     Should Contain Match    ${resp}   *plateTCA1*
38     Should Contain Match    ${resp}   *enbRecipe*
39     Should Contain Match    ${resp}   *DC1*
40     Should Contain Match    ${resp}   *DC2*
41     Should Contain Match    ${resp}   *Policy3*
42     Should Contain Match    ${resp}   *345*
43     Should Contain Match    ${resp}   *200*
44     Should Contain Match    ${resp}   *ONSET*
45
46 Verify TCAModel2
47     ${resp}=    Get Request    ${clamp_session}   /restservices/clds/v1/clds/model/ClTCA2
48     Should Contain Match    ${resp}   *lateTCA2*
49     Should Contain Match    ${resp}   *enbRecipe*
50     Should Contain Match    ${resp}   *DC1*
51     Should Contain Match    ${resp}   *DC2*
52     Should Contain Match    ${resp}   *DC3*
53     Should Contain Match    ${resp}   *Policy4*
54     Should Contain Match    ${resp}   *tcaPol*
55     Should Contain Match    ${resp}   *345*
56     Should Contain Match    ${resp}   *300*
57     Should Contain Match    ${resp}   *VM*
58
59 Get model names
60     ${resp}=    Get Request    ${clamp_session}   /restservices/clds/v1/clds/model-names
61     Should Contain Match    ${resp}   *ClHolmes1*
62     Should Contain Match    ${resp}   *ClHolmes2*
63     Should Contain Match    ${resp}   *ClTCA1*
64     Should Contain Match    ${resp}   *ClTCA2*
65     Should Not Contain Match    ${resp}   *ClTCA99*
66     Should Not Contain Match    ${resp}   *ClHolmes99*
67