From: aguilarherna Date: Thu, 25 Feb 2021 16:15:50 +0000 (+0100) Subject: ns_lib: new keyword 'Get Vnf Id' X-Git-Tag: branch-sol006v331-start~24 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=ee95f3679074ae5c82a6f338b85590dfcaaaa952;p=osm%2Ftests.git ns_lib: new keyword 'Get Vnf Id' Change-Id: Iaa0139048caff26e0f2325ec18dca874321c62c4 Signed-off-by: aguilarherna --- diff --git a/robot-systest/lib/ns_lib.robot b/robot-systest/lib/ns_lib.robot index d0b9d53..57eb6f5 100644 --- a/robot-systest/lib/ns_lib.robot +++ b/robot-systest/lib/ns_lib.robot @@ -57,6 +57,17 @@ Get Vnf Management Ip Address [Return] ${stdout} +Get Vnf Id + [Arguments] ${ns_id} ${vnf_member_index} + + Should Not Be Empty ${ns_id} + Should Not Be Empty ${vnf_member_index} + ${rc} ${stdout}= Run and Return RC and Output osm vnf-list --filter member-vnf-index-ref=${vnf_member_index} | grep ${ns_id} | awk '{print $2}' 2>&1 + log ${stdout} + Should Be Equal As Integers ${rc} ${success_return_code} + [Return] ${stdout} + + Get Ns Vnf List [Arguments] ${ns_id}