aboutsummaryrefslogtreecommitdiffstats
path: root/tests/clamp/UIs/03__Verify_UI_Models.robot
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-09-27 10:38:50 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-09-27 10:39:43 -0700
commit9abb61ca2cea1907cab2cec312d6dca6e53a93cd (patch)
treec8ff0718b6626832efd3ff3acc48590dbd6cb64c /tests/clamp/UIs/03__Verify_UI_Models.robot
parenta328a3e2e531240ea4a9ed2ce4a284af1be5e225 (diff)
Move CSIT to integration/csit repo
To facilite branching of CSIT tests, all CSIT test code and scripts are relocated to the integration/csit repo. Change-Id: I1e4c0eff44691f73f8098b3c52764107f6b8b8df Issue-ID: INT-671 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'tests/clamp/UIs/03__Verify_UI_Models.robot')
-rw-r--r--tests/clamp/UIs/03__Verify_UI_Models.robot52
1 files changed, 52 insertions, 0 deletions
diff --git a/tests/clamp/UIs/03__Verify_UI_Models.robot b/tests/clamp/UIs/03__Verify_UI_Models.robot
new file mode 100644
index 00000000..66bc3b15
--- /dev/null
+++ b/tests/clamp/UIs/03__Verify_UI_Models.robot
@@ -0,0 +1,52 @@
+*** Settings ***
+Library Collections
+Library RequestsLibrary
+Library OperatingSystem
+Library json
+
+*** Variables ***
+${login} admin
+${passw} password
+
+*** Test Cases ***
+Verify Holmes CL well created
+ ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/model-names
+ Should Contain Match ${resp} *HolmesModel1*
+ Should Not Contain Match ${resp} *HolmesModel99*
+
+Verify TCA CL well create
+ ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/model-names
+ Should Contain Match ${resp} *TCAModel1*
+ Should Not Contain Match ${resp} *TCAModel99*
+
+Verify HolmesModel1
+ ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/model/HolmesModel1
+ Should Contain Match ${resp} *templateHolmes1*
+ Should Contain Match ${resp} *DC2*
+ Should Contain Match ${resp} *DC3*
+ Should Contain Match ${resp} *Policy1*
+ Should Contain Match ${resp} *07e266fc-49ab-4cd7-8378-ca4676f1b9ec*
+ Should Contain Match ${resp} *migrate*
+ Should Contain Match ${resp} *240*
+ Should Contain Match ${resp} *390*
+ Should Contain Match ${resp} *Logic1*
+ Should Contain Match ${resp} *config Policy Name1*
+
+Verify TCAModel1
+ ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/model/TCAModel1
+ Should Contain Match ${resp} *templateTCA1*
+ Should Contain Match ${resp} *DESIGN*
+ Should Contain Match ${resp} *vnfRecipe*
+ Should Contain Match ${resp} *DC1*
+ Should Contain Match ${resp} *DC3*
+ Should Contain Match ${resp} *Policy2*
+ Should Contain Match ${resp} *restart*
+ Should Contain Match ${resp} *280*
+ Should Contain Match ${resp} *400*
+
+Get model names
+ ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/model-names
+ Should Contain Match ${resp} *HolmesModel1*
+ Should Contain Match ${resp} *TCAModel1*
+ Should Not Contain Match ${resp} *TCAModel99*
+ Should Not Contain Match ${resp} *HolmesModel99*