blob: f327283962d17f2d42107bfcd8a8b1ead64670a0 [file] [log] [blame]
eh552t67c43e62017-10-03 17:18:00 +02001*** Settings ***
2Library Collections
3Library RequestsLibrary
4Library OperatingSystem
5Library json
6
ehautot7e5552d2018-04-06 19:07:02 +02007*** Variables ***
8${login} admin
9${passw} password
eh552t67c43e62017-10-03 17:18:00 +020010
11*** Test Cases ***
12Get Clamp properties
eh552t7edf0802018-07-30 12:48:48 +020013 ${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
eh552t67c43e62017-10-03 17:18:00 +020016
17Get Clamp Info
eh552tbc1d8002018-07-04 14:43:49 +020018 ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/cldsInfo
eh552t67c43e62017-10-03 17:18:00 +020019 Dictionary Should Contain Key ${resp.json()} userName
20 Dictionary Should Contain Key ${resp.json()} cldsVersion
21
22Get model bpmn by name
eh552tbc1d8002018-07-04 14:43:49 +020023 ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/model/bpmn/ClHolmes1
eh552t67c43e62017-10-03 17:18:00 +020024 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
eh552t67c43e62017-10-03 17:18:00 +020030Get model names
eh552tbc1d8002018-07-04 14:43:49 +020031 ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/model-names
ehautotaf8aad22018-02-23 12:36:37 +010032 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*