Test for 1609 bug
[osm/tests.git] / robot-systest / lib / ns_lib.robot
index 501bee2..a38a69e 100644 (file)
@@ -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