aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/clamp/APIs
diff options
context:
space:
mode:
authorehautot <eh552t@intl.att.com>2018-02-27 18:32:11 +0100
committerehautot <eh552t@intl.att.com>2018-02-27 18:32:22 +0100
commit5b9917d3ad117491b5bd89ee63c4752c4add4a27 (patch)
tree91844a1aa9c81cdc5070d944d3bc67149e510c0d /test/csit/tests/clamp/APIs
parenteed634e3decd94328291c8623a5e7fd37075eef0 (diff)
Add more integration tests for clamp APIs UIs
Change-Id: I7a48bf19f72215316f3fb63db7a4f8a62f7b1aea Signed-off-by: ehautot <eh552t@intl.att.com> Issue-ID: CLAMP-100
Diffstat (limited to 'test/csit/tests/clamp/APIs')
-rw-r--r--test/csit/tests/clamp/APIs/02__Create_CL_TCA.robot (renamed from test/csit/tests/clamp/APIs/01__Create_CL_TCA.robot)0
-rw-r--r--test/csit/tests/clamp/APIs/03__VariousApis.robot8
-rw-r--r--test/csit/tests/clamp/APIs/04__Verify_API_Models.robot73
3 files changed, 73 insertions, 8 deletions
diff --git a/test/csit/tests/clamp/APIs/01__Create_CL_TCA.robot b/test/csit/tests/clamp/APIs/02__Create_CL_TCA.robot
index 4805ced60..4805ced60 100644
--- a/test/csit/tests/clamp/APIs/01__Create_CL_TCA.robot
+++ b/test/csit/tests/clamp/APIs/02__Create_CL_TCA.robot
diff --git a/test/csit/tests/clamp/APIs/03__VariousApis.robot b/test/csit/tests/clamp/APIs/03__VariousApis.robot
index 47441e894..f875e4c62 100644
--- a/test/csit/tests/clamp/APIs/03__VariousApis.robot
+++ b/test/csit/tests/clamp/APIs/03__VariousApis.robot
@@ -30,14 +30,6 @@ Get model bpmn by name
Should Contain Match ${resp} *Policy_*
Should Contain Match ${resp} *EndEvent_*
-Get model by name
- ${auth}= Create List admin 5f4dcc3b5aa765d61d8327deb882cf99
- Create Session clamp http://localhost:8080 auth=${auth}
- ${resp}= Get Request clamp /restservices/clds/v1/clds/model/ClHolmes1
- Dictionary Should Contain Key ${resp.json()} templateName
- Dictionary Should Contain Key ${resp.json()} bpmnText
- Dictionary Should Contain Key ${resp.json()} imageText
-
Get model names
${auth}= Create List admin 5f4dcc3b5aa765d61d8327deb882cf99
Create Session clamp http://localhost:8080 auth=${auth}
diff --git a/test/csit/tests/clamp/APIs/04__Verify_API_Models.robot b/test/csit/tests/clamp/APIs/04__Verify_API_Models.robot
new file mode 100644
index 000000000..f4f762690
--- /dev/null
+++ b/test/csit/tests/clamp/APIs/04__Verify_API_Models.robot
@@ -0,0 +1,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*
+