Library RequestsLibrary
Library OperatingSystem
Library json
-Library HttpLibrary.HTTP
*** Variables ***
@{return_ok_list}= 200 201 202 204
[Documentation] query swagger info vnflcm by MSB
${headers} Create Dictionary Content-Type=application/json Accept=application/json
Create Session web_session http://${VNFLCM_IP}:8801 headers=${headers}
- ${resp}= Get Request web_session ${queryswagger_url}
+ ${resp}= GET On Session web_session ${queryswagger_url}
${responese_code}= Convert To String ${resp.status_code}
List Should Contain Value ${return_ok_list} ${responese_code}
${response_json} json.loads ${resp.content}
[Documentation] check health for vnflcm by MSB
${headers} Create Dictionary Content-Type=application/json Accept=application/json
Create Session web_session http://${VNFLCM_IP}:8801 headers=${headers}
- ${resp}= Get Request web_session ${healthcheck_url}
+ ${resp}= GET On Session web_session ${healthcheck_url}
${responese_code}= Convert To String ${resp.status_code}
List Should Contain Value ${return_ok_list} ${responese_code}
${response_json} json.loads ${resp.content}
[Documentation] check health for vnflcm by MSB
${headers} Create Dictionary Content-Type=application/json Accept=application/json
Create Session web_session http://${VNFLCM_IP}:8801 headers=${headers}
- ${resp}= Get Request web_session ${query_vnfs_url}
+ ${resp}= GET On Session web_session ${query_vnfs_url}
${responese_code}= Convert To String ${resp.status_code}
- List Should Contain Value ${return_ok_list} ${responese_code}
+ List Should Contain Value ${return_ok_list} ${responese_code}
\ No newline at end of file