X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Ftestsuite%2Fbasic_26-secure_helm_execution_environment.robot;h=10b3f24682cbf740219e2af3b75084ad37a02239;hb=bbae1a7e282f0dbaf808bf0eba27cf4aa5023523;hp=ae518e75c8eaf432d38dbced3cb98f296505cce8;hpb=321726f7804f92c56bb07ffb7301e3eb28daf574;p=osm%2Ftests.git diff --git a/robot-systest/testsuite/basic_26-secure_helm_execution_environment.robot b/robot-systest/testsuite/basic_26-secure_helm_execution_environment.robot index ae518e7..10b3f24 100644 --- a/robot-systest/testsuite/basic_26-secure_helm_execution_environment.robot +++ b/robot-systest/testsuite/basic_26-secure_helm_execution_environment.robot @@ -21,33 +21,40 @@ Resource %{ROBOT_DEVOPS_FOLDER}/lib/nsd_lib.robot Resource %{ROBOT_DEVOPS_FOLDER}/lib/ns_lib.robot Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot -Force Tags basic_26 cluster_ee_config daily regression +Force Tags basic_26 cluster_ee_config regression Suite Teardown Run Keyword And Ignore Error Suite Cleanup *** Variables *** # NS and VNF descriptor package folder and ids -${vnfd_pkg} simple_secure_ee_vnf -${vnfd_name} simple_secure_ee-vnf -${nsd_pkg} simple_secure_ee_ns -${nsd_name} simple_secure_ee-ns +${vnfd_pkg} simple_ee_vnf +${vnfd_name} simple_ee-vnf +${nsd_pkg} simple_ee_ns +${nsd_name} simple_ee-ns # NS instance name and configuration ${ns_name} basic_26_secure_helm_ee_test ${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] } +${ns_timeout} 5min -# SSH keys and username to be used -${publickey} %{HOME}/.ssh/id_rsa.pub -${privatekey} %{HOME}/.ssh/id_rsa +# SSH keys and username to be used to connect to the VNF ${username} ubuntu ${password} ${EMPTY} +${publickey} %{HOME}/.ssh/id_rsa.pub +${privatekey} %{HOME}/.ssh/id_rsa + +# SSH keys and username to be used to connect to OSM VM +${osm_host} %{OSM_HOSTNAME} +${osm_username} ubuntu +${osm_password} ${EMPTY} +${osm_privatekey} %{OSM_RSA_FILE} +# Variables related to day1 and day2 ${action_name} touch ${new_action_name} mkdir ${vnf_member_index} simple ${day_1_file_name} /home/ubuntu/first-touch -${ns_timeout} 15min *** Test Cases *** @@ -88,6 +95,23 @@ Check Remote File Created Via Day 1 Operation Check If remote File Exists ${vnf_ip_addr} ${username} ${password} ${privatekey} ${day_1_file_name} +Get data from EE pod + + Open Connection ${osm_host} + Login With Public Key ${osm_username} keyfile=${osm_privatekey} + ${pod}= Execute Remote Command Check Rc Return Output ${osm_host} ${osm_username} ${osm_password} ${osm_privatekey} kubectl get pod -n ${ns_id} --no-headers -o custom-columns=":metadata.name" + ${svc}= Execute Remote Command Check Rc Return Output ${osm_host} ${osm_username} ${osm_password} ${osm_privatekey} kubectl get svc -n ${ns_id} -l app.kubernetes.io/name=eechart -o jsonpath='{.items[0].spec.clusterIP}' + Set Suite Variable ${pod_name} ${pod} + Set Suite Variable ${svc_ip} ${svc} + + +Fail when trying to access gRPC server without TLS + + ${command} = Catenate python3 osm_ee/frontend_client.py ${svc_ip} 50050 sleep + ${result}= Execute Remote Command Check Rc Return Output ${osm_host} ${osm_username} ${osm_password} ${osm_privatekey} kubectl exec -it -n ${ns_id} ${pod_name} -- ${command} + Should Contain ${result} Connection lost + + Delete NS Instance [Tags] cleanup