- Create Session web_session http://${MSB_IAG_IP}:80 headers=${headers}
- ${resp}= Get Request web_session ${ns_instances_url}
- ${responese_code}= Convert To String ${resp.status_code}
- List Should Contain Value ${return_ok_list} ${responese_code}
-
-QueryNSIntanceTest
- [Documentation] Query One Ns Instance function test
- ${headers} Create Dictionary Content-Type=application/json Accept=application/json
- Create Session web_session http://${MSB_IAG_IP}:80 headers=${headers}
- ${resp}= Get Request web_session ${ns_instances_url}/${nsInstanceId}
- ${responese_code}= Convert To String ${resp.status_code}
- List Should Contain Value ${return_ok_list} ${responese_code}
-
-InstantiateNSInstanceTest
- [Documentation] Instantiate Ns function test
- ${json_value}= json_from_file ${instantiate_ns_instance_json}
- ${json_string}= string_from_json ${json_value}
- ${headers} Create Dictionary Content-Type=application/json Accept=application/json
- Create Session web_session http://${MSB_IAG_IP}:80 headers=${headers}
- Set Request Body ${json_string}
- ${resp}= Post Request web_session ${ns_instances_url}/${nsInstanceId}/instantiate ${json_string}
- ${responese_code}= Convert To String ${resp.status_code}
- List Should Contain Value ${return_ok_list} ${responese_code}
-
-ScaleNSInstanceTest
- [Documentation] Scale Ns Instance function test
- ${json_value}= json_from_file ${scale_ns_instance_json}
- ${json_string}= string_from_json ${json_value}
- ${headers} Create Dictionary Content-Type=application/json Accept=application/json
- Create Session web_session http://${MSB_IAG_IP}:80 headers=${headers}
- Set Request Body ${json_string}
- ${resp}= Post Request web_session ${ns_instances_url}/${nsInstanceId}/scale ${json_string}
- ${responese_code}= Convert To String ${resp.status_code}
- List Should Contain Value ${return_ok_list} ${responese_code}
-
-HealNSInstanceTest
- [Documentation] Heal Ns Instance function test
- ${json_value}= json_from_file ${heal_ns_instance_json}
- ${json_string}= string_from_json ${json_value}
- ${headers} Create Dictionary Content-Type=application/json Accept=application/json
- Create Session web_session http://${MSB_IAG_IP}:80 headers=${headers}
- Set Request Body ${json_string}
- ${resp}= Post Request web_session ${ns_instances_url}/${nsInstanceId}/heal ${json_string}