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 | |
ehautot | 7e5552d | 2018-04-06 19:07:02 +0200 | [diff] [blame] | 7 | *** Variables *** |
| 8 | ${login} admin |
| 9 | ${passw} password |
eh552t | 67c43e6 | 2017-10-03 17:18:00 +0200 | [diff] [blame] | 10 | |
| 11 | *** Test Cases *** |
| 12 | Get Clamp properties |
eh552t | 7edf080 | 2018-07-30 12:48:48 +0200 | [diff] [blame] | 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 |
eh552t | 67c43e6 | 2017-10-03 17:18:00 +0200 | [diff] [blame] | 16 | |
| 17 | Get Clamp Info |
eh552t | bc1d800 | 2018-07-04 14:43:49 +0200 | [diff] [blame] | 18 | ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/cldsInfo |
eh552t | 67c43e6 | 2017-10-03 17:18:00 +0200 | [diff] [blame] | 19 | Dictionary Should Contain Key ${resp.json()} userName |
| 20 | Dictionary Should Contain Key ${resp.json()} cldsVersion |
| 21 | |
| 22 | Get model bpmn by name |
eh552t | bc1d800 | 2018-07-04 14:43:49 +0200 | [diff] [blame] | 23 | ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/model/bpmn/ClHolmes1 |
eh552t | 67c43e6 | 2017-10-03 17:18:00 +0200 | [diff] [blame] | 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 | |
eh552t | 67c43e6 | 2017-10-03 17:18:00 +0200 | [diff] [blame] | 30 | Get model names |
eh552t | bc1d800 | 2018-07-04 14:43:49 +0200 | [diff] [blame] | 31 | ${resp}= Get Request ${clamp_session} /restservices/clds/v1/clds/model-names |
ehautot | af8aad2 | 2018-02-23 12:36:37 +0100 | [diff] [blame] | 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* |