X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Flib%2Fjuju_lib.robot;h=8cc450cb96e0c09c6f00390ef60bdfb662eaab41;hb=a131bf078c13b0c63ace7555be0944ac5e2fc588;hp=94db455e6003db608753fa3822c014d09a4b3149;hpb=71e24ea27944fdc3710aa5eb744c308486f060d7;p=osm%2Ftests.git diff --git a/robot-systest/lib/juju_lib.robot b/robot-systest/lib/juju_lib.robot index 94db455..8cc450c 100644 --- a/robot-systest/lib/juju_lib.robot +++ b/robot-systest/lib/juju_lib.robot @@ -21,7 +21,7 @@ Get Scale Number Should Not Be Empty ${application_name} ${model_name} ${stdout}= Execute Remote Command Check Rc Return Output ${host} ${username} ${password} ${privatekey} juju show-status ${application_name} --format yaml -m ${model_name} | grep scale | awk -F ': ' '{print $2}' log ${stdout} - [Return] ${stdout} + [Return] ${stdout} Get Model Name [Arguments] ${host} ${username} ${password} ${privatekey} ${ns_id} ${kdu_name} @@ -31,4 +31,33 @@ Get Model Name log ${stdout} ${model_name}= Set Variable ${kdu_name}-${ns_id} Should Be Equal As Strings ${model_name} ${stdout} - [Return] ${stdout} + [Return] ${stdout} + +Get Application Name VDU Level Charm + [Arguments] ${host} ${username} ${password} ${privatekey} ${model_name} ${vdu_profile_id} ${ee_name} + + Should Not Be Empty ${model_name} + ${stdout}= Execute Remote Command Check Rc Return Output ${host} ${username} ${password} ${privatekey} juju status -m ${model_name} | grep "\\-vdu" | grep -v "*" | grep -i ${vdu_profile_id} | cut -f1 -d " " + log ${stdout} + Should Not Be Empty ${stdout} + Should Contain ${stdout} ${ee_name} + [Return] ${stdout} + +Get Application Name NS Level Charm + [Arguments] ${host} ${username} ${password} ${privatekey} ${model_name} ${charm_name} + + Should Not Be Empty ${model_name} + ${stdout}= Execute Remote Command Check Rc Return Output ${host} ${username} ${password} ${privatekey} juju status -m ${model_name} | grep "\\-ns" | grep -v "*" | grep -i ${charm_name} | cut -f1 -d " " + log ${stdout} + Should Not Be Empty ${stdout} + [Return] ${stdout} + +Get Application Name VNF Level Charm + [Arguments] ${host} ${username} ${password} ${privatekey} ${model_name} ${vnf_profile_id} ${ee_name} + + Should Not Be Empty ${model_name} + ${stdout}= Execute Remote Command Check Rc Return Output ${host} ${username} ${password} ${privatekey} juju status -m ${model_name} | grep "\\-vnf" | grep -v "*" | grep -i ${vnf_profile_id} | cut -f1 -d " " + log ${stdout} + Should Not Be Empty ${stdout} + Should Contain ${stdout} ${ee_name} + [Return] ${stdout} \ No newline at end of file