X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Flib%2Fjuju_lib.robot;fp=robot-systest%2Flib%2Fjuju_lib.robot;h=27601cca1a4414f96a3e4166c6854ef6faf42240;hb=7e4328a86d625a850ed808bbab0cfcbb1f6fee40;hp=94db455e6003db608753fa3822c014d09a4b3149;hpb=b794b156c26d64bcc19ac5a8b542e687a7ec8eba;p=osm%2Ftests.git diff --git a/robot-systest/lib/juju_lib.robot b/robot-systest/lib/juju_lib.robot index 94db455..27601cc 100644 --- a/robot-systest/lib/juju_lib.robot +++ b/robot-systest/lib/juju_lib.robot @@ -16,17 +16,19 @@ ${success_return_code} 0 *** Keywords *** Get Scale Number - [Arguments] ${host} ${username} ${password} ${privatekey} ${application_name} ${model_name} + [Arguments] ${endpoint} ${username} ${password} ${privatekey} ${application_name} ${model_name} 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} [Return] ${stdout} Get Model Name - [Arguments] ${host} ${username} ${password} ${privatekey} ${ns_id} ${kdu_name} + [Arguments] ${endpoint} ${username} ${password} ${privatekey} ${ns_id} ${kdu_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} ${model_name}= Set Variable ${kdu_name}-${ns_id}