-
- ${rand}= Generate Random String 4 [NUMBERS]
- ${ns_name}= Catenate SEPARATOR=_ ${ns_name_prefix} ${rand}
- Set Suite Variable ${ns_name}
- log ${ns_name}
- ${id}= Instantiate Network Service ${ns_name} ${nsd_name} %{VIM_TARGET} --config '${ns_config}' --ssh_keys ${publickey}
- log ${id}
- Set Suite Variable ${ns_id} ${id}
- WAIT UNTIL KEYWORD SUCCEEDS ${ns_launch_max_wait_time} ${ns_launch_pol_time} Check For Ns Instance To Configured ${ns_name}
- ${rc} ${stdout}= run and return rc and output osm ns-list --filter id="${ns_id}" | grep ${ns_id} | awk '{print $8}'
- log ${stdout}
+ [Documentation] Assert failure when trying to instantiate the NS instance and there are not enough resources in the VIM.
+ ${rand}= Generate Random String 4 [NUMBERS]
+ ${ns_name}= Catenate SEPARATOR=_ ${NS_NAME_PREFIX} ${rand}
+ Set Suite Variable ${NS_NAME}
+ Log ${NS_NAME}
+ ${id}= Instantiate Network Service ${NS_NAME} ${NSD_NAME} %{VIM_TARGET} --config '${NS_CONFIG}' --ssh_keys ${PUBLICKEY}
+ Log ${id}
+ Set Suite Variable ${NS_ID} ${id}
+ WAIT UNTIL KEYWORD SUCCEEDS ${NS_LAUNCH_MAX_WAIT_TIME} ${NS_LAUNCH_POL_TIME} Check For Ns Instance To Configured ${NS_NAME}
+ ${rc} ${stdout}= Run And Return Rc And Output osm ns-list --filter id="${NS_ID}" | grep ${NS_ID} | awk '{print $8}'
+ Log ${rc},${stdout}