*** 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
# 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}
${day_1_file_name} /home/ubuntu/first-touch
${ns_timeout} 15min
+${host} %{OSM_HOSTNAME}
+${username} ubuntu
*** Test Cases ***
Create VNF Descriptor
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