X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=tests%2Fvfc%2Fnfvo-lcm%2Ftest.robot;h=ed4b6ce2e5a4ea411f36099623b08f9958cae36c;hb=bc2aad2a09236015499c82b4b58d639cd1231445;hp=452392f95e23eb6ae77a637eb18f47655b79fe82;hpb=4d49e7b724ec9ddfec53c11cfacfeca61a542a51;p=integration%2Fcsit.git diff --git a/tests/vfc/nfvo-lcm/test.robot b/tests/vfc/nfvo-lcm/test.robot index 452392f9..ed4b6ce2 100644 --- a/tests/vfc/nfvo-lcm/test.robot +++ b/tests/vfc/nfvo-lcm/test.robot @@ -5,13 +5,12 @@ Library RequestsLibrary Library OperatingSystem Library json Library HttpLibrary.HTTP +Library ONAPLibrary.Utilities *** Variables *** @{return_ok_list}= 200 201 202 204 ${queryswagger_url} /api/nslcm/v1/swagger.json -${create_ns_url} /api/nslcm/v1/ns -${delete_ns_url} /api/nslcm/v1/ns -${get_ns_url} /api/nslcm/v1/ns +${ns_url} /api/nslcm/v1/ns ${get_subscriptions_url} /api/nslcm/v1/subscriptions ${healthcheck_url} /api/nslcm/v1/health_check ${get_job_url} /api/nslcm/v1/jobs @@ -26,34 +25,23 @@ ${ns_instances_url} /api/nslcm/v1/ns_instances #json files ${create_ns_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/create_ns.json ${heal_ns_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/heal_ns.json -${instantiate_ns_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/instantiate_ns.json -${postdeal_ns_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/postdeal_ns.json ${scale_ns_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/scale_ns.json ${update_ns_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/update_ns.json ${terminate_ns_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/terminate_ns.json -${update_job_ns_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/update_job_ns.json ${create_vnf_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/create_vnf.json ${terminate_vnf_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/terminate_vnf.json ${create_vl_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/create_vl.json -${create_sfcs_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/create_sfc.json ${create_subscriptions_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/create_subscription.json -${create_pnfs_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/create_pnf.json ${create_ns_instance_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/create_ns_instance.json -${heal_ns_instance_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/heal_ns_instance.json -${instantiate_ns_instance_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/instantiate_ns_instance.json -${postdeal_ns_instance_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/postdeal_ns_instance.json -${scale_ns_instance_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/scale_ns_instance.json -${update_ns_instance_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/update_ns_instance.json ${terminate_ns_instance_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/terminate_ns_instance.json +${update_ns_instance_json} ${SCRIPTS}/../tests/vfc/nfvo-lcm/jsoninput/update_ns_instance.json #global variables ${nsInstId} ${jobInstId} ${vnfInstId} ${vlInstId} -${sfcInstId} -${pnfId} ${nsInstanceId} *** Test Cases *** @@ -61,7 +49,7 @@ NslcmSwaggerTest [Documentation] query swagger info of nslcm ${headers} Create Dictionary Content-Type=application/json Accept=application/json Create Session web_session http://${NSLCM_IP}:8403 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} @@ -71,8 +59,8 @@ NslcmSwaggerTest NslcmSwaggerByMSBTest [Documentation] query swagger info of nslcm by MSB ${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 ${queryswagger_url} + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} + ${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} @@ -84,53 +72,22 @@ CreateNSTest ${json_value}= json_from_file ${create_ns_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} + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} Set Request Body ${json_string} - ${resp}= Post Request web_session ${create_ns_url} ${json_string} + ${resp}= Post Request web_session ${ns_url} ${json_string} ${responese_code}= Convert To String ${resp.status_code} List Should Contain Value ${return_ok_list} ${responese_code} ${response_json} json.loads ${resp.content} ${nsInstId}= Convert To String ${response_json['nsInstanceId']} Set Global Variable ${nsInstId} -CreateSfcTest - [Documentation] Create sfc function test - ${json_value}= json_from_file ${create_sfcs_json} - Set To Dictionary ${json_value} nsInstanceId=${nsInstId} - ${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 ${sfcs_url} ${json_string} - ${responese_code}= Convert To String ${resp.status_code} - List Should Contain Value ${return_ok_list} ${responese_code} - ${response_json} json.loads ${resp.content} - ${sfcInstId}= Convert To String ${response_json['sfcInstId']} - Set Global Variable ${sfcInstId} - -QuerySfcTest - [Documentation] Query sfc 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 ${sfcs_url}/${sfcInstId} - ${responese_code}= Convert To String ${resp.status_code} - List Should Contain Value ${return_ok_list} ${responese_code} - -DeleteSfcTest - [Documentation] Delete sfc function test - ${headers} Create Dictionary Content-Type=application/json Accept=application/json - Create Session web_session http://${MSB_IAG_IP}:80 headers=${headers} - ${resp}= Delete Request web_session ${sfcs_url}/${sfcInstId} - ${responese_code}= Convert To String ${resp.status_code} - List Should Contain Value ${return_ok_list} ${responese_code} - CreateVnfTest [Documentation] Create vnf function test ${json_value}= json_from_file ${create_vnf_json} Set To Dictionary ${json_value} nsInstanceId=${nsInstId} ${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} + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} Set Request Body ${json_string} ${resp}= Post Request web_session ${vnfs_url} ${json_string} ${responese_code}= Convert To String ${resp.status_code} @@ -142,8 +99,8 @@ CreateVnfTest QueryVnfTest [Documentation] Query vnf 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 ${vnfs_url}/${vnfInstId} + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} + ${resp}= GET On Session web_session ${vnfs_url}/${vnfInstId} ${responese_code}= Convert To String ${resp.status_code} List Should Contain Value ${return_ok_list} ${responese_code} @@ -152,19 +109,19 @@ TerminateVnfTest ${json_value}= json_from_file ${terminate_vnf_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} + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} Set Request Body ${json_string} - ${resp}= Post Request web_session ${terminate_vnfs_url} ${json_string} + ${resp}= Post Request web_session ${terminate_vnfs_url}/${vnfInstId} ${json_string} ${responese_code}= Convert To String ${resp.status_code} List Should Contain Value ${return_ok_list} ${responese_code} CreateVlTest [Documentation] Create vl function test ${json_value}= json_from_file ${create_vl_json} - Set To Dictionary ${json_value} nsInstanceId=${nsInstId} + Set To Dictionary ${json_value} nsInstanceId=${nsInstId} ${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} + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} Set Request Body ${json_string} ${resp}= Post Request web_session ${vls_url} ${json_string} ${responese_code}= Convert To String ${resp.status_code} @@ -173,49 +130,22 @@ CreateVlTest ${vlInstId}= Convert To String ${response_json['vlId']} Set Global Variable ${vlInstId} -QueryVlTest - [Documentation] Query vl 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 ${vls_url}/${vlInstId} - ${responese_code}= Convert To String ${resp.status_code} - List Should Contain Value ${return_ok_list} ${responese_code} - DeleteVlTest [Documentation] Delete vl function test ${headers} Create Dictionary Content-Type=application/json Accept=application/json - Create Session web_session http://${MSB_IAG_IP}:80 headers=${headers} + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} ${resp}= Delete Request web_session ${vls_url}/${vlInstId} ${responese_code}= Convert To String ${resp.status_code} List Should Contain Value ${return_ok_list} ${responese_code} -InstantiateNSTest - [Documentation] Instantiate Ns function test - ${json_value}= json_from_file ${instantiate_ns_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 ${create_ns_url}/${nsInstId}/instantiate ${json_string} - ${responese_code}= Convert To String ${resp.status_code} - List Should Contain Value ${return_ok_list} ${responese_code} - -QueryNSTest - [Documentation] Query Ns 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 ${get_ns_url}/${nsInstId} - ${responese_code}= Convert To String ${resp.status_code} - List Should Contain Value ${return_ok_list} ${responese_code} - ScaleNSTest [Documentation] Scale Ns function test ${json_value}= json_from_file ${scale_ns_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} + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} Set Request Body ${json_string} - ${resp}= Post Request web_session ${create_ns_url}/${nsInstId}/scale ${json_string} + ${resp}= Post Request web_session ${ns_url}/${nsInstId}/scale ${json_string} ${responese_code}= Convert To String ${resp.status_code} List Should Contain Value ${return_ok_list} ${responese_code} @@ -224,43 +154,20 @@ HealNSTest ${json_value}= json_from_file ${heal_ns_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} + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} Set Request Body ${json_string} - ${resp}= Post Request web_session ${create_ns_url}/${nsInstId}/heal ${json_string} + ${resp}= Post Request web_session ${ns_url}/${nsInstId}/heal ${json_string} ${responese_code}= Convert To String ${resp.status_code} List Should Contain Value ${return_ok_list} ${responese_code} ${response_json} json.loads ${resp.content} ${jobInstId}= Convert To String ${response_json['jobId']} Set Global Variable ${jobInstId} -UpdateJobTest - [Documentation] Update Ns Job function test - ${json_value}= json_from_file ${update_job_ns_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 ${get_job_url}/${jobInstId} ${json_string} - ${responese_code}= Convert To String ${resp.status_code} - List Should Contain Value ${return_ok_list} ${responese_code} - ${response_json} json.loads ${resp.content} - GetJobTest [Documentation] Query Ns Job 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 ${get_job_url}/${jobInstId} - ${responese_code}= Convert To String ${resp.status_code} - List Should Contain Value ${return_ok_list} ${responese_code} - -PostdealNSTest - [Documentation] Postdeal Ns function test - ${json_value}= json_from_file ${postdeal_ns_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 ${create_ns_url}/${nsInstId}/postdeal ${json_string} + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} + ${resp}= GET On Session web_session ${get_job_url}/${jobInstId} ${responese_code}= Convert To String ${resp.status_code} List Should Contain Value ${return_ok_list} ${responese_code} @@ -268,11 +175,10 @@ UpdateNSTest [Documentation] Scale Ns function test ${json_value}= json_from_file ${update_ns_json} ${json_string}= string_from_json ${json_value} - Log ${json_string} ${headers} Create Dictionary Content-Type=application/json Accept=application/json - Create Session web_session http://${MSB_IAG_IP}:80 headers=${headers} + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} Set Request Body ${json_string} - ${resp}= Post Request web_session ${create_ns_url}/${nsInstId}/update ${json_string} + ${resp}= Post Request web_session ${ns_url}/${nsInstId}/update ${json_string} ${responese_code}= Convert To String ${resp.status_code} List Should Contain Value ${return_ok_list} ${responese_code} @@ -281,25 +187,25 @@ TerminateNSTest ${json_value}= json_from_file ${terminate_ns_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} + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} Set Request Body ${json_string} - ${resp}= Post Request web_session ${create_ns_url}/${nsInstId}/terminate ${json_string} + ${resp}= Post Request web_session ${ns_url}/${nsInstId}/terminate ${json_string} ${responese_code}= Convert To String ${resp.status_code} List Should Contain Value ${return_ok_list} ${responese_code} DeleteNSTest [Documentation] Delete NS function test ${headers} Create Dictionary Content-Type=application/json Accept=application/json - Create Session web_session http://${MSB_IAG_IP}:80 headers=${headers} - ${resp}= Delete Request web_session ${delete_ns_url}/${nsInstId} + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} + ${resp}= Delete Request web_session ${ns_url}/${nsInstId} ${responese_code}= Convert To String ${resp.status_code} List Should Contain Value ${return_ok_list} ${responese_code} LcmHealthCheckTest [Documentation] check health for nslcm by MSB ${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 ${healthcheck_url} + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} + ${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} @@ -309,46 +215,16 @@ LcmHealthCheckTest LcmGetNsTest [Documentation] get ns instances for nslcm by MSB ${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 ${get_ns_url} - ${responese_code}= Convert To String ${resp.status_code} - List Should Contain Value ${return_ok_list} ${responese_code} - -CreatePnfsTest - [Documentation] Create pnf function test - ${json_value}= json_from_file ${create_pnfs_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 ${pnfs_url} ${json_string} + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} + ${resp}= GET On Session web_session ${ns_url} ${responese_code}= Convert To String ${resp.status_code} List Should Contain Value ${return_ok_list} ${responese_code} - ${response_json} json.loads ${resp.content} - ${pnfId}= Convert To String ${response_json['pnfId']} - Set Global Variable ${pnfId} QueryAllPnfsTest [Documentation] Query all pnfs 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 ${pnfs_url} - ${responese_code}= Convert To String ${resp.status_code} - List Should Contain Value ${return_ok_list} ${responese_code} - -QueryPnfsTest - [Documentation] Query pnf 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 ${pnfs_url}/${pnfId} - ${responese_code}= Convert To String ${resp.status_code} - List Should Contain Value ${return_ok_list} ${responese_code} - -DeletePnfTest - [Documentation] Delete pnf function test - ${headers} Create Dictionary Content-Type=application/json Accept=application/json - Create Session web_session http://${MSB_IAG_IP}:80 headers=${headers} - ${resp}= Delete Request web_session ${pnfs_url}/${pnfId} + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} + ${resp}= GET On Session web_session ${pnfs_url} ${responese_code}= Convert To String ${resp.status_code} List Should Contain Value ${return_ok_list} ${responese_code} @@ -356,62 +232,21 @@ CreateNSInstanceTest [Documentation] Create NS Instance function test ${json_value}= json_from_file ${create_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} + ${headers} Create Dictionary Content-Type=application/json Accept=application/json globalcustomerid=global-customer-id-test1 servicetype=service-type-test1 + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} Set Request Body ${json_string} ${resp}= Post Request web_session ${ns_instances_url} ${json_string} ${responese_code}= Convert To String ${resp.status_code} List Should Contain Value ${return_ok_list} ${responese_code} ${response_json} json.loads ${resp.content} - ${nsInstanceId}= Convert To String ${response_json['id']} + ${nsInstanceId}= Convert To String ${response_json['nsInstanceId']} Set Global Variable ${nsInstanceId} QueryNSInstancesTest [Documentation] Query Ns Instances 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} - ${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} + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} + ${resp}= GET On Session web_session ${ns_instances_url} ${responese_code}= Convert To String ${resp.status_code} List Should Contain Value ${return_ok_list} ${responese_code} @@ -421,7 +256,7 @@ UpdateNSInstanceTest ${json_string}= string_from_json ${json_value} Log ${json_string} ${headers} Create Dictionary Content-Type=application/json Accept=application/json - Create Session web_session http://${MSB_IAG_IP}:80 headers=${headers} + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} Set Request Body ${json_string} ${resp}= Post Request web_session ${ns_instances_url}/${nsInstId}/update ${json_string} ${responese_code}= Convert To String ${resp.status_code} @@ -432,26 +267,18 @@ TerminateNSInstanceTest ${json_value}= json_from_file ${terminate_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} + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} Set Request Body ${json_string} ${resp}= Post Request web_session ${ns_instances_url}/${nsInstanceId}/terminate ${json_string} ${responese_code}= Convert To String ${resp.status_code} List Should Contain Value ${return_ok_list} ${responese_code} -DeleteNSInstanceTest - [Documentation] Delete 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}= Delete Request web_session ${ns_instances_url}/${nsInstanceId} - ${responese_code}= Convert To String ${resp.status_code} - List Should Contain Value ${return_ok_list} ${responese_code} - LcmCreateSubscriptionsTest [Documentation] Postdeal Ns function test ${json_value}= json_from_file ${create_subscriptions_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} + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} Set Request Body ${json_string} ${resp}= Post Request web_session ${get_subscriptions_url} ${json_string} ${responese_code}= Convert To String ${resp.status_code} @@ -460,7 +287,7 @@ LcmCreateSubscriptionsTest LcmGetSubscriptionsTest [Documentation] get subscriptions for nslcm by MSB ${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 ${get_subscriptions_url} + Create Session web_session http://${NSLCM_IP}:8403 headers=${headers} + ${resp}= GET On Session web_session ${get_subscriptions_url} ${responese_code}= Convert To String ${resp.status_code} List Should Contain Value ${return_ok_list} ${responese_code} \ No newline at end of file