*** 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 ***
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