blob: d4013deedd876a0b0caa25793d519381e2e12607 [file] [log] [blame]
Liexiang Yue33394352019-03-06 15:01:11 +08001*** settings ***
2Library Collections
3Library RequestsLibrary
4Library OperatingSystem
5Library json
6
7*** Variables ***
8@{return_ok_list}= 200 201 202
9${querysample_fcaps_url} /samples
10
11*** Test Cases ***
12FcapsSampleTest
13 [Documentation] query sample info rest test
14 ${headers} Create Dictionary Content-Type=application/json Accept=application/json
15 Create Session web_session http://${SERVICE_IP}:${SERVICE_PORT} headers=${headers}
16 ${resp}= Get Request web_session ${querysample_fcaps_url}
17 ${responese_code}= Convert To String ${resp.status_code}
18 List Should Contain Value ${return_ok_list} ${responese_code}
19 ${response_json} json.loads ${resp.content}
20 Should Be Equal ${response_json['status']} active