allow running test_vimconn without user ssh keys. Change installation to copy .gitign... 85/485/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Tue, 4 Oct 2016 08:00:54 +0000 (08:00 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Tue, 4 Oct 2016 08:00:54 +0000 (08:00 +0000)
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
scripts/install-openmano.sh
test/test_vimconn.sh

index 9aaf028..c7e03aa 100755 (executable)
@@ -264,6 +264,7 @@ if [[ -z $NOCLONE ]]; then
 #####        DOWNLOAD SOURCE                                #####
 #################################################################'
     su $SUDO_USER -c 'git clone '"${GIT_URL}"' openmano'
+    su $SUDO_USER -c 'cp openmano/.gitignore-common openmano/.gitignore'
     #[[ -z $DEVELOP ]] && su $SUDO_USER -c 'git checkout <tag version>'
 fi
 
index aedf20a..7542d6c 100755 (executable)
@@ -268,13 +268,8 @@ then
     #USER_KEY=""
     key_param1=""
     key_param2=""
-    #for file_key in ${HOME}/.ssh/*.pub
-    #do
-    #    [[ -n ${USER_KEY} ]] && USER_KEY="${USER_KEY},"
-    #    USER_KEY="${USER_KEY}$(cat $file_key)"
-    #done
-    #[[  -n ${USER_KEY} ]] && key_param1="--keypair=${USER}:${USER_KEY}" && key_param2="--keypair=${USER_KEY}"
-    key_param1=--keypair-auto
+    #add user keys if present at .ssh    
+    ls ${HOME}/.ssh/*.pub > /dev/null 2>&1 && key_param1=--keypair-auto
 
     for sce in simple complex2
     do