blob: df6e7e41f5925be0f7b30b7c2677dc0fa76ccaaa [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
ehautot44ef19e2018-03-26 14:02:12 +020010 ${auth}= Create List admin password
eh552t67c43e62017-10-03 17:18:00 +020011 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
ehautot44ef19e2018-03-26 14:02:12 +020017 ${auth}= Create List admin password
eh552t67c43e62017-10-03 17:18:00 +020018 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
ehautot44ef19e2018-03-26 14:02:12 +020024 ${auth}= Create List admin password
eh552t67c43e62017-10-03 17:18:00 +020025 Create Session clamp http://localhost:8080 auth=${auth}
ehautotaf8aad22018-02-23 12:36:37 +010026 ${resp}= Get Request clamp /restservices/clds/v1/clds/model/bpmn/ClHolmes1
eh552t67c43e62017-10-03 17:18:00 +020027 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
eh552t67c43e62017-10-03 17:18:00 +020033Get model names
ehautot44ef19e2018-03-26 14:02:12 +020034 ${auth}= Create List admin password
eh552t67c43e62017-10-03 17:18:00 +020035 Create Session clamp http://localhost:8080 auth=${auth}
36 ${resp}= Get Request clamp /restservices/clds/v1/clds/model-names
ehautotaf8aad22018-02-23 12:36:37 +010037 Should Contain Match ${resp} *ClHolmes1*
38 Should Contain Match ${resp} *ClHolmes2*
39 Should Contain Match ${resp} *ClTCA1*
40 Should Contain Match ${resp} *ClTCA2*
41 Should Not Contain Match ${resp} *ClHolmes99*
42 Should Not Contain Match ${resp} *ClTCA99*