blob: 85782a28eaff768b82c7dedae60549cc23dcaf18 [file] [log] [blame]
eh552t67c43e62017-10-03 17:18:00 +02001*** Settings ***
2Library Collections
3Library RequestsLibrary
4Library OperatingSystem
5Library json
6
7
8*** Test Cases ***
9Get Clamp properties
10 ${auth}= Create List admin 5f4dcc3b5aa765d61d8327deb882cf99
11 Create Session clamp http://localhost:8080 auth=${auth}
12 ${resp}= Get Request clamp /restservices/clds/v1/clds/properties
13 Dictionary Should Contain Key ${resp.json()} global
14 Dictionary Should Contain Key ${resp.json()['global']} location
15
16Get Clamp Info
17 ${auth}= Create List admin 5f4dcc3b5aa765d61d8327deb882cf99
18 Create Session clamp http://localhost:8080 auth=${auth}
19 ${resp}= Get Request clamp /restservices/clds/v1/clds/cldsInfo
20 Dictionary Should Contain Key ${resp.json()} userName
21 Dictionary Should Contain Key ${resp.json()} cldsVersion
22
23Get model bpmn by name
24 ${auth}= Create List admin 5f4dcc3b5aa765d61d8327deb882cf99
25 Create Session clamp http://localhost:8080 auth=${auth}
26 ${resp}= Get Request clamp /restservices/clds/v1/clds/model/bpmn/HolmesModel1
27 Should Contain Match ${resp} *StartEvent_*
28 Should Contain Match ${resp} *VesCollector_*
29 Should Contain Match ${resp} *Holmes_*
30 Should Contain Match ${resp} *Policy_*
31 Should Contain Match ${resp} *EndEvent_*
32
33Get model by name
34 ${auth}= Create List admin 5f4dcc3b5aa765d61d8327deb882cf99
35 Create Session clamp http://localhost:8080 auth=${auth}
36 ${resp}= Get Request clamp /restservices/clds/v1/clds/model/HolmesModel1
37 Dictionary Should Contain Key ${resp.json()} templateName
38 Dictionary Should Contain Key ${resp.json()} bpmnText
39 Dictionary Should Contain Key ${resp.json()} imageText
40
41Get model names
42 ${auth}= Create List admin 5f4dcc3b5aa765d61d8327deb882cf99
43 Create Session clamp http://localhost:8080 auth=${auth}
44 ${resp}= Get Request clamp /restservices/clds/v1/clds/model-names
45 Should Contain Match ${resp} *HolmesModel1*
46 Should Not Contain Match ${resp} *model99*