aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/clamp/APIs/03__VariousApis.robot
diff options
context:
space:
mode:
authoreh552t <eh552t@intl.att.com>2017-10-03 17:18:00 +0200
committereh552t <eh552t@intl.att.com>2017-10-03 17:18:34 +0200
commit67c43e6e208ce10d0637d63469f68620254fbe27 (patch)
treed1d78b978b7a8e7da629ab7ba7abf3a51de45cf5 /test/csit/tests/clamp/APIs/03__VariousApis.robot
parent56bdb25c0ffdef131ec4bc160e2b686e9aad73ea (diff)
Fix integration tests as some boxes removed
Change-Id: Ic80c5f86e9b1cf8f7fcd99e69b4f00786803f1f2 Signed-off-by: eh552t <eh552t@intl.att.com> Issue-ID: CLAMP-34
Diffstat (limited to 'test/csit/tests/clamp/APIs/03__VariousApis.robot')
-rw-r--r--test/csit/tests/clamp/APIs/03__VariousApis.robot46
1 files changed, 46 insertions, 0 deletions
diff --git a/test/csit/tests/clamp/APIs/03__VariousApis.robot b/test/csit/tests/clamp/APIs/03__VariousApis.robot
new file mode 100644
index 000000000..85782a28e
--- /dev/null
+++ b/test/csit/tests/clamp/APIs/03__VariousApis.robot
@@ -0,0 +1,46 @@
+*** Settings ***
+Library Collections
+Library RequestsLibrary
+Library OperatingSystem
+Library json
+
+
+*** Test Cases ***
+Get Clamp properties
+ ${auth}= Create List admin 5f4dcc3b5aa765d61d8327deb882cf99
+ Create Session clamp http://localhost:8080 auth=${auth}
+ ${resp}= Get Request clamp /restservices/clds/v1/clds/properties
+ Dictionary Should Contain Key ${resp.json()} global
+ Dictionary Should Contain Key ${resp.json()['global']} location
+
+Get Clamp Info
+ ${auth}= Create List admin 5f4dcc3b5aa765d61d8327deb882cf99
+ Create Session clamp http://localhost:8080 auth=${auth}
+ ${resp}= Get Request clamp /restservices/clds/v1/clds/cldsInfo
+ Dictionary Should Contain Key ${resp.json()} userName
+ Dictionary Should Contain Key ${resp.json()} cldsVersion
+
+Get model bpmn by name
+ ${auth}= Create List admin 5f4dcc3b5aa765d61d8327deb882cf99
+ Create Session clamp http://localhost:8080 auth=${auth}
+ ${resp}= Get Request clamp /restservices/clds/v1/clds/model/bpmn/HolmesModel1
+ Should Contain Match ${resp} *StartEvent_*
+ Should Contain Match ${resp} *VesCollector_*
+ Should Contain Match ${resp} *Holmes_*
+ 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/HolmesModel1
+ 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}
+ ${resp}= Get Request clamp /restservices/clds/v1/clds/model-names
+ Should Contain Match ${resp} *HolmesModel1*
+ Should Not Contain Match ${resp} *model99* \ No newline at end of file