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 |
ehautot | 7e5552d | 2018-04-06 19:07:02 +0200 | [diff] [blame] | 13 | ${auth}= Create List ${login} ${passw} |
eh552t | 67c43e6 | 2017-10-03 17:18:00 +0200 | [diff] [blame] | 14 | 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 | |
| 19 | Get Clamp Info |
ehautot | 7e5552d | 2018-04-06 19:07:02 +0200 | [diff] [blame] | 20 | ${auth}= Create List ${login} ${passw} |
eh552t | 67c43e6 | 2017-10-03 17:18:00 +0200 | [diff] [blame] | 21 | 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 | |
| 26 | Get model bpmn by name |
ehautot | 7e5552d | 2018-04-06 19:07:02 +0200 | [diff] [blame] | 27 | ${auth}= Create List ${login} ${passw} |
eh552t | 67c43e6 | 2017-10-03 17:18:00 +0200 | [diff] [blame] | 28 | Create Session clamp http://localhost:8080 auth=${auth} |
ehautot | af8aad2 | 2018-02-23 12:36:37 +0100 | [diff] [blame] | 29 | ${resp}= Get Request clamp /restservices/clds/v1/clds/model/bpmn/ClHolmes1 |
eh552t | 67c43e6 | 2017-10-03 17:18:00 +0200 | [diff] [blame] | 30 | 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 | |
eh552t | 67c43e6 | 2017-10-03 17:18:00 +0200 | [diff] [blame] | 36 | Get model names |
ehautot | 7e5552d | 2018-04-06 19:07:02 +0200 | [diff] [blame] | 37 | ${auth}= Create List ${login} ${passw} |
eh552t | 67c43e6 | 2017-10-03 17:18:00 +0200 | [diff] [blame] | 38 | Create Session clamp http://localhost:8080 auth=${auth} |
| 39 | ${resp}= Get Request clamp /restservices/clds/v1/clds/model-names |
ehautot | af8aad2 | 2018-02-23 12:36:37 +0100 | [diff] [blame] | 40 | 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* |