+ Should Contain ${stdout} COMPLETED msg=The ns-action with id ${ns_operation_id} was not completed values=False
+
+
+Check For NS Operation Failed
+ [Documentation] Check wheter the status of the desired operation is "FAILED" 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 .operationState | tr -d \\"
+ log ${stdout}
+ Should Be Equal As Integers ${rc} ${success_return_code}
+ Should Contain ${stdout} FAILED msg=Timeout waiting for ns-action with id ${ns_operation_id} values=False
+
+
+Check For NS Operation Ended
+ [Documentation] Check wheter the status of the desired operation is "FAILED" or "COMPLETED".
+
+ [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 .operationState | tr -d \\"
+ log ${stdout}
+ 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