# 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} %{OSM_RSA_FILE}
+# SSH keys and username to be used to connect to the VNF
${username} ubuntu
${password} ${EMPTY}
+${publickey} %{HOME}/.ssh/id_rsa.pub
+${privatekey} %{OSM_RSA_FILE}
+
+# 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
-${host} %{OSM_HOSTNAME}
-${username} ubuntu
*** Test Cases ***
Create VNF Descriptor
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}'
+ 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 ${host} ${username} ${password} ${privatekey} kubectl exec -it -n ${ns_id} ${pod_name} -- ${command}
+ ${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