66bc3b15f6e6e241a3e6e9fefbef032d47f86a59
[integration/csit.git] / tests / clamp / UIs / 03__Verify_UI_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 Holmes CL well created
13     ${resp}=    Get Request    ${clamp_session}   /restservices/clds/v1/clds/model-names
14     Should Contain Match    ${resp}   *HolmesModel1*
15     Should Not Contain Match    ${resp}   *HolmesModel99*
16
17 Verify TCA CL well create
18     ${resp}=    Get Request    ${clamp_session}   /restservices/clds/v1/clds/model-names
19     Should Contain Match    ${resp}   *TCAModel1*
20     Should Not Contain Match    ${resp}   *TCAModel99*
21
22 Verify HolmesModel1
23     ${resp}=    Get Request    ${clamp_session}   /restservices/clds/v1/clds/model/HolmesModel1
24     Should Contain Match    ${resp}   *templateHolmes1*
25     Should Contain Match    ${resp}   *DC2*
26     Should Contain Match    ${resp}   *DC3*
27     Should Contain Match    ${resp}   *Policy1*
28     Should Contain Match    ${resp}   *07e266fc-49ab-4cd7-8378-ca4676f1b9ec*
29     Should Contain Match    ${resp}   *migrate*
30     Should Contain Match    ${resp}   *240*
31     Should Contain Match    ${resp}   *390*
32     Should Contain Match    ${resp}   *Logic1*
33     Should Contain Match    ${resp}   *config Policy Name1*
34
35 Verify TCAModel1
36     ${resp}=    Get Request    ${clamp_session}   /restservices/clds/v1/clds/model/TCAModel1
37     Should Contain Match    ${resp}   *templateTCA1*
38     Should Contain Match    ${resp}   *DESIGN*
39     Should Contain Match    ${resp}   *vnfRecipe*
40     Should Contain Match    ${resp}   *DC1*
41     Should Contain Match    ${resp}   *DC3*
42     Should Contain Match    ${resp}   *Policy2*
43     Should Contain Match    ${resp}   *restart*
44     Should Contain Match    ${resp}   *280*
45     Should Contain Match    ${resp}   *400*
46
47 Get model names
48     ${resp}=    Get Request    ${clamp_session}   /restservices/clds/v1/clds/model-names
49     Should Contain Match    ${resp}   *HolmesModel1*
50     Should Contain Match    ${resp}   *TCAModel1*
51     Should Not Contain Match    ${resp}   *TCAModel99*
52     Should Not Contain Match    ${resp}   *HolmesModel99*