X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Flib%2Fns_lib.robot;fp=robot-systest%2Flib%2Fns_lib.robot;h=a38a69eb9573dc649dd782a7881da122e0bb08e5;hb=e621de67c631e6a103c9dd4515749976973a59fa;hp=501bee23df21dfc7aa067d360f13617f21085a99;hpb=850a50b90c25c72e3b6aec8d922a603bd93c0b57;p=osm%2Ftests.git diff --git a/robot-systest/lib/ns_lib.robot b/robot-systest/lib/ns_lib.robot index 501bee2..a38a69e 100644 --- a/robot-systest/lib/ns_lib.robot +++ b/robot-systest/lib/ns_lib.robot @@ -277,3 +277,13 @@ Get Vnf Kdu Replica Count ${return} = Set Variable If '${stdout}' == 'null' ${EMPTY} ${stdout} [Return] ${return} + +Get Application Names + [Documentation] Return the list of the application of a VNF instance. + + [Arguments] ${ns_name} + + ${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