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 |
ehautot | 44ef19e | 2018-03-26 14:02:12 +0200 | [diff] [blame] | 10 | ${auth}= Create List admin password |
eh552t | 67c43e6 | 2017-10-03 17:18:00 +0200 | [diff] [blame] | 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 |
ehautot | 44ef19e | 2018-03-26 14:02:12 +0200 | [diff] [blame] | 17 | ${auth}= Create List admin password |
eh552t | 67c43e6 | 2017-10-03 17:18:00 +0200 | [diff] [blame] | 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 |
ehautot | 44ef19e | 2018-03-26 14:02:12 +0200 | [diff] [blame] | 24 | ${auth}= Create List admin password |
eh552t | 67c43e6 | 2017-10-03 17:18:00 +0200 | [diff] [blame] | 25 | Create Session clamp http://localhost:8080 auth=${auth} |
ehautot | af8aad2 | 2018-02-23 12:36:37 +0100 | [diff] [blame] | 26 | ${resp}= Get Request clamp /restservices/clds/v1/clds/model/bpmn/ClHolmes1 |
eh552t | 67c43e6 | 2017-10-03 17:18:00 +0200 | [diff] [blame] | 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 | |
eh552t | 67c43e6 | 2017-10-03 17:18:00 +0200 | [diff] [blame] | 33 | Get model names |
ehautot | 44ef19e | 2018-03-26 14:02:12 +0200 | [diff] [blame] | 34 | ${auth}= Create List admin password |
eh552t | 67c43e6 | 2017-10-03 17:18:00 +0200 | [diff] [blame] | 35 | Create Session clamp http://localhost:8080 auth=${auth} |
| 36 | ${resp}= Get Request clamp /restservices/clds/v1/clds/model-names |
ehautot | af8aad2 | 2018-02-23 12:36:37 +0100 | [diff] [blame] | 37 | Should Contain Match ${resp} *ClHolmes1* |
| 38 | Should Contain Match ${resp} *ClHolmes2* |
| 39 | Should Contain Match ${resp} *ClTCA1* |
| 40 | Should Contain Match ${resp} *ClTCA2* |
| 41 | Should Not Contain Match ${resp} *ClHolmes99* |
| 42 | Should Not Contain Match ${resp} *ClTCA99* |