X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Ftests.git;a=blobdiff_plain;f=robot-systest%2Flib%2Fjuju_lib.robot;fp=robot-systest%2Flib%2Fjuju_lib.robot;h=45208a8b82b48805d78f17854ec3b1e38e1f7fa4;hp=b125679ab4801460b0070cf3e415b61d69b0d5c1;hb=321726f7804f92c56bb07ffb7301e3eb28daf574;hpb=bd91f86bd3391a47e0037c3f22431dcd0a6d5103 diff --git a/robot-systest/lib/juju_lib.robot b/robot-systest/lib/juju_lib.robot index b125679..45208a8 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} ${host}= Remove String Using Regexp ${endpoint} :([0-9]+)$ ${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} + Log ${stdout} [Return] ${stdout} Get Model Name @@ -30,7 +30,7 @@ Get Model Name Should Not Be Empty ${ns_id} ${kdu_name} ${host}= Remove String Using Regexp ${endpoint} :([0-9]+)$ ${stdout}= Execute Remote Command Check Rc Return Output ${host} ${username} ${password} ${privatekey} juju models | grep -i ${kdu_name} | grep -i ${ns_id} | cut -f1 -d " " - log ${stdout} + Log ${stdout} ${model_name}= Set Variable ${kdu_name}-${ns_id} Should Be Equal As Strings ${model_name} ${stdout} [Return] ${stdout} @@ -41,7 +41,7 @@ Get Application Name VDU Level Charm Should Not Be Empty ${model_name} ${host}= Remove String Using Regexp ${endpoint} :([0-9]+)$ ${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} + Log ${stdout} Should Not Be Empty ${stdout} Should Contain ${stdout} ${ee_name} [Return] ${stdout} @@ -52,7 +52,7 @@ Get Application Name NS Level Charm Should Not Be Empty ${model_name} ${host}= Remove String Using Regexp ${endpoint} :([0-9]+)$ ${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} + Log ${stdout} Should Not Be Empty ${stdout} [Return] ${stdout} @@ -62,7 +62,7 @@ Get Application Name VNF Level Charm Should Not Be Empty ${model_name} ${host}= Remove String Using Regexp ${endpoint} :([0-9]+)$ ${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} + Log ${stdout} Should Not Be Empty ${stdout} Should Contain ${stdout} ${ee_name} [Return] ${stdout} \ No newline at end of file