blob: fb671ca41b6ef28a50d7673be82b00368c95f9d0 [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
ehautot7e5552d2018-04-06 19:07:02 +020013 ${auth}= Create List ${login} ${passw}
eh552t67c43e62017-10-03 17:18:00 +020014 Create Session clamp http://localhost:8080 auth=${auth}
15 ${resp}= Get Request clamp /restservices/clds/v1/clds/properties
16 Dictionary Should Contain Key ${resp.json()} global
17 Dictionary Should Contain Key ${resp.json()['global']} location
18
19Get Clamp Info
ehautot7e5552d2018-04-06 19:07:02 +020020 ${auth}= Create List ${login} ${passw}
eh552t67c43e62017-10-03 17:18:00 +020021 Create Session clamp http://localhost:8080 auth=${auth}
22 ${resp}= Get Request clamp /restservices/clds/v1/clds/cldsInfo
23 Dictionary Should Contain Key ${resp.json()} userName
24 Dictionary Should Contain Key ${resp.json()} cldsVersion
25
26Get model bpmn by name
ehautot7e5552d2018-04-06 19:07:02 +020027 ${auth}= Create List ${login} ${passw}
eh552t67c43e62017-10-03 17:18:00 +020028 Create Session clamp http://localhost:8080 auth=${auth}
ehautotaf8aad22018-02-23 12:36:37 +010029 ${resp}= Get Request clamp /restservices/clds/v1/clds/model/bpmn/ClHolmes1
eh552t67c43e62017-10-03 17:18:00 +020030 Should Contain Match ${resp} *StartEvent_*
31 Should Contain Match ${resp} *VesCollector_*
32 Should Contain Match ${resp} *Holmes_*
33 Should Contain Match ${resp} *Policy_*
34 Should Contain Match ${resp} *EndEvent_*
35
eh552t67c43e62017-10-03 17:18:00 +020036Get model names
ehautot7e5552d2018-04-06 19:07:02 +020037 ${auth}= Create List ${login} ${passw}
eh552t67c43e62017-10-03 17:18:00 +020038 Create Session clamp http://localhost:8080 auth=${auth}
39 ${resp}= Get Request clamp /restservices/clds/v1/clds/model-names
ehautotaf8aad22018-02-23 12:36:37 +010040 Should Contain Match ${resp} *ClHolmes1*
41 Should Contain Match ${resp} *ClHolmes2*
42 Should Contain Match ${resp} *ClTCA1*
43 Should Contain Match ${resp} *ClTCA2*
44 Should Not Contain Match ${resp} *ClHolmes99*
45 Should Not Contain Match ${resp} *ClTCA99*