X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Ftestsuite%2Fbasic_26-secure_helm_execution_environment.robot;h=952de04cd87a247f17cfa634a1faacacfe1fbe9f;hb=ed30e5231e3a3cd59c864b2749559fb269aa3468;hp=54806baa6419e8f50c2e4b2ba2d68449c189aa2a;hpb=73951e60380e7b6b908945237cd82c115f81f882;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 54806ba..952de04 100644 --- a/robot-systest/testsuite/basic_26-secure_helm_execution_environment.robot +++ b/robot-systest/testsuite/basic_26-secure_helm_execution_environment.robot @@ -28,10 +28,10 @@ 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 @@ -39,7 +39,7 @@ ${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] } # SSH keys and username to be used ${publickey} %{HOME}/.ssh/id_rsa.pub -${privatekey} %{HOME}/.ssh/id_rsa +${privatekey} %{OSM_RSA_FILE} ${username} ubuntu ${password} ${EMPTY} @@ -49,6 +49,8 @@ ${vnf_member_index} simple ${day_1_file_name} /home/ubuntu/first-touch ${ns_timeout} 15min +${host} %{OSM_HOSTNAME} +${username} ubuntu *** Test Cases *** Create VNF Descriptor @@ -71,7 +73,7 @@ Instantiate Network Service Get Management Ip Address ${ip_addr} Get Vnf Management Ip Address ${ns_id} ${vnf_member_index} - log ${ip_addr} + Log ${ip_addr} Set Suite Variable ${vnf_ip_addr} ${ip_addr} @@ -88,6 +90,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 ${host} + Login With Public Key ${username} keyfile=${privatekey} + ${pod}= Execute Remote Command Check Rc Return Output ${host} ${username} ${password} ${privatekey} kubectl get pod -n ${ns_id} --no-headers -o custom-columns=":metadata.name" + ${svc}= Execute Remote Command Check Rc Return Output ${host} ${username} ${password} ${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 ${host} ${username} ${password} ${privatekey} kubectl exec -it -n ${ns_id} ${pod_name} -- ${command} + Should Contain ${result} Connection lost + + Delete NS Instance [Tags] cleanup