eh552t | 67c43e6 | 2017-10-03 17:18:00 +0200 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Library Collections |
| 3 | Library RequestsLibrary |
| 4 | Library OperatingSystem |
| 5 | Library json |
| 6 | |
| 7 | |
| 8 | *** Test Cases *** |
| 9 | Get 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 | |
| 16 | Get 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 | |
| 23 | Get 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 | |
| 33 | Get 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 | |
| 41 | Get 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* |