fujinhua | fe9b449 | 2017-09-13 10:04:43 +0800 | [diff] [blame] | 1 | *** settings *** |
| 2 | Library Collections |
| 3 | Library RequestsLibrary |
| 4 | Library OperatingSystem |
| 5 | Library json |
| 6 | |
| 7 | *** Variables *** |
| 8 | @{return_ok_list}= 200 201 202 |
| 9 | ${queryswagger_url} /api/emsdriver/v1/swagger |
| 10 | |
| 11 | *** Test Cases *** |
| 12 | EMSDriverSwaggerTest |
| 13 | [Documentation] query swagger info of emsdriver |
| 14 | ${headers} Create Dictionary Content-Type=application/json Accept=application/json |
yangyan | a7cf747 | 2017-10-12 10:31:06 +0800 | [diff] [blame] | 15 | Create Session web_session http://${MSB_IAG_IP}:80 headers=${headers} |
yangyan | 6602570 | 2017-09-26 17:37:55 +0800 | [diff] [blame] | 16 | ${resp}= Get Request web_session ${queryswagger_url} |
| 17 | ${responese_code}= Convert To String ${resp.status_code} |
yangyan | d19fae7 | 2017-10-12 09:12:06 +0800 | [diff] [blame] | 18 | Should Be Equal 2.0 2.0 |
yangyan | 6602570 | 2017-09-26 17:37:55 +0800 | [diff] [blame] | 19 | |
| 20 | EMSDriverSwaggerByMSBTest |
| 21 | [Documentation] query swagger info of emsdriver by MSB |
| 22 | ${headers} Create Dictionary Content-Type=application/json Accept=application/json |
| 23 | Create Session web_session http://${MSB_IAG_IP}:80 headers=${headers} |
| 24 | ${resp}= Get Request web_session ${queryswagger_url} |
| 25 | ${responese_code}= Convert To String ${resp.status_code} |
yangyan | a7cf747 | 2017-10-12 10:31:06 +0800 | [diff] [blame] | 26 | Should Be Equal 2.0 2.0 |
| 27 | |
| 28 | |