setting up ssh keys to local hosts in SIAB tests
Change-Id: If302c15a5c5b19e3f3f5bc3f5eb5b15c9a38422b
diff --git a/src/test/cord-api/Tests/WorkflowValidations/SIAB.robot b/src/test/cord-api/Tests/WorkflowValidations/SIAB.robot
index 5eb4df8..2bd7ca7 100644
--- a/src/test/cord-api/Tests/WorkflowValidations/SIAB.robot
+++ b/src/test/cord-api/Tests/WorkflowValidations/SIAB.robot
@@ -41,7 +41,7 @@
${kube_node_ip} localhost
${dst_host_ip} 172.18.0.10
${local_user} %{USER}
-${local_pass} %{USER}
+${local_pass} ${None}
*** Test Cases ***
ONU in Correct Location
@@ -307,6 +307,7 @@
Append To List ${container_list} xos-core
Append To List ${container_list} vcore
Set Suite Variable ${container_list}
+ Setup SSH Keys to Localhost
${datetime}= Get Current Datetime On Kubernetes Node localhost ${local_user} ${local_pass}
Set Suite Variable ${datetime}
@@ -406,4 +407,9 @@
[Arguments] ${exists}=True
${rc}= Run And Return RC http -a karaf:karaf GET http://127.0.0.1:30120/onos/segmentrouting/xconnect|jq -r '.xconnects[].vlanId'|grep 222
Run Keyword If '${exists}' == 'True' Should Be Equal As Integers ${rc} 0
- ... ELSE Should Be Equal As Integers ${rc} 1
\ No newline at end of file
+ ... ELSE Should Be Equal As Integers ${rc} 1
+
+Setup SSH Keys to Localhost
+ Run yes y 2>/dev/null | ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
+ Run cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
+ Run chmod og-wx ~/.ssh/authorized_keys