${vnf_scale_max_wait_time}= Evaluate ${vnf_scale_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER}
Should Contain Any ${scale_type} SCALE_IN SCALE_OUT msg=Unknown scale type: ${scale_type} values=False
${osm_vnf_scale_command}= Set Variable osm vnf-scale --scaling-group ${scaling_group}
- IF ${scale_type}=='SCALE_IN'
+ IF '${scale_type}'=='SCALE_IN'
${osm_vnf_scale_command}= Catenate ${osm_vnf_scale_command} --scale-in
ELSE
${osm_vnf_scale_command}= Catenate ${osm_vnf_scale_command} --scale-out
Should Be Equal As Integers ${rc} ${SUCCESS_RETURN_CODE}
Should Contain Any ${stdout} FAILED COMPLETED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False
+Check For NS Operation Cancelled
+ [Documentation] Check whether the operation was cancelled or not.
+ [Arguments] ${ns_operation_id}
+ Should Not Be Empty ${ns_operation_id}
+ ${rc} ${stdout}= Run And Return Rc And Output osm ns-op-show ${ns_operation_id} --literal | yq -r '.operationState, .isCancelPending'
+ Log ${stdout}
+ Should Be Equal As Integers ${rc} ${SUCCESS_RETURN_CODE}
+ Should Contain ${stdout} FAILED_TEMP\nfalse msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False
+
Get Operations By Type
[Documentation] Keyword to get the operation by type
[Arguments] ${ns_id} ${type}