X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Flib%2Fvnfd_lib.robot;h=fdef1acccefe73500e198e4891c91c90a4e72f1f;hb=refs%2Fchanges%2F89%2F9189%2F2;hp=828ea0a1f735dce29f0dadcf2127427487dd5fee;hpb=4edf733e765a1069a34d6fccf940af27ae39dad6;p=osm%2Fdevops.git diff --git a/robot-systest/lib/vnfd_lib.robot b/robot-systest/lib/vnfd_lib.robot index 828ea0a1..fdef1acc 100644 --- a/robot-systest/lib/vnfd_lib.robot +++ b/robot-systest/lib/vnfd_lib.robot @@ -22,6 +22,10 @@ # 1. Feature 7829: Jayant Madavi, Mrityunjay Yadav : MY00514913@techmahindra.com : 06-sep-2019 ## +*** Settings *** +Library String + + *** Variables *** ${success_return_code} 0 ${delete_max_wait_time} 1min @@ -42,7 +46,10 @@ Create VNFD ${rc} ${stdout}= Run and Return RC and Output osm vnfd-create ${vnfd_pkg} log ${stdout} Should Be Equal As Integers ${rc} ${success_return_code} - [Return] ${stdout} + ${lines}= Get Line Count ${stdout} + ${last}= Evaluate ${lines} - 1 + ${id}= Get Line ${stdout} ${last} + [Return] ${id} Delete VNFD