blob: f327283962d17f2d42107bfcd8a8b1ead64670a0 [file] [log] [blame]
Gary Wu9abb61c2018-09-27 10:38:50 -07001*** Settings ***
2Library Collections
3Library RequestsLibrary
4Library OperatingSystem
5Library json
6
7*** Variables ***
8${login} admin
9${passw} password
10
11*** Test Cases ***
12Get Clamp properties
13 ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/cldsInfo
14 Dictionary Should Contain Key ${resp.json()} userName
15 Dictionary Should Contain Key ${resp.json()} permissionReadCl
16
17Get Clamp Info
18 ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/cldsInfo
19 Dictionary Should Contain Key ${resp.json()} userName
20 Dictionary Should Contain Key ${resp.json()} cldsVersion
21
22Get model bpmn by name
23 ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/model/bpmn/ClHolmes1
24 Should Contain Match ${resp} *StartEvent_*
25 Should Contain Match ${resp} *VesCollector_*
26 Should Contain Match ${resp} *Holmes_*
27 Should Contain Match ${resp} *Policy_*
28 Should Contain Match ${resp} *EndEvent_*
29
30Get model names
31 ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/model-names
32 Should Contain Match ${resp} *ClHolmes1*
33 Should Contain Match ${resp} *ClHolmes2*
34 Should Contain Match ${resp} *ClTCA1*
35 Should Contain Match ${resp} *ClTCA2*
36 Should Not Contain Match ${resp} *ClHolmes99*
37 Should Not Contain Match ${resp} *ClTCA99*