X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=robot-systest%2Flib%2Fns_lib.robot;h=2d6fdb74497f7ee1cd7d45ebb9d8424d5e26742e;hb=fbedfe0b0dc36d2d6b64a0c80ad8847839dfb98f;hp=a38a69eb9573dc649dd782a7881da122e0bb08e5;hpb=ceb1cb4895ab114adf256eafccacb7acb4621fc3;p=osm%2Ftests.git diff --git a/robot-systest/lib/ns_lib.robot b/robot-systest/lib/ns_lib.robot index a38a69e..2d6fdb7 100644 --- a/robot-systest/lib/ns_lib.robot +++ b/robot-systest/lib/ns_lib.robot @@ -76,6 +76,17 @@ Get Vnf Id [Return] ${stdout} +Get Ns Id + [Arguments] ${ns_name} + + Should Not Be Empty ${ns_name} + ${rc} ${stdout}= Run and Return RC and Output osm ns-list | grep ${ns_name} | awk '{print $4}' 2>&1 + log ${stdout} + Should Be Equal As Integers ${rc} ${success_return_code} + Should Not Be Empty ${stdout} + [Return] ${stdout} + + Get Ns Vnf List [Arguments] ${ns_id} @@ -286,4 +297,5 @@ Get Application Names ${rc} ${stdout}= Run and Return RC and Output osm ns-show ${ns_name} --literal | yq ._admin.deployed.VCA[].application | tr -d \\" Should Be Equal As Integers ${rc} ${success_return_code} msg=${stdout} values=False @{app_names} = Split String ${stdout} - [Return] ${app_names} \ No newline at end of file + [Return] ${app_names} +