blob: ebbcf8a193a25e039a60c930659174938d9bb7ac [file] [log] [blame]
fujinhuafe9b4492017-09-13 10:04:43 +08001*** settings ***
2Library Collections
3Library RequestsLibrary
4Library OperatingSystem
5Library json
6
7*** Variables ***
8@{return_ok_list}= 200 201 202
9${queryswagger_url} /api/emsdriver/v1/swagger
10
11*** Test Cases ***
12EMSDriverSwaggerTest
13 [Documentation] query swagger info of emsdriver
14 ${headers} Create Dictionary Content-Type=application/json Accept=application/json
yangyana7cf7472017-10-12 10:31:06 +080015 Create Session web_session http://${MSB_IAG_IP}:80 headers=${headers}
yangyan66025702017-09-26 17:37:55 +080016 ${resp}= Get Request web_session ${queryswagger_url}
17 ${responese_code}= Convert To String ${resp.status_code}
yangyand19fae72017-10-12 09:12:06 +080018 Should Be Equal 2.0 2.0
yangyan66025702017-09-26 17:37:55 +080019
20EMSDriverSwaggerByMSBTest
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}
yangyana7cf7472017-10-12 10:31:06 +080026 Should Be Equal 2.0 2.0
27
28