Fix the call to the ODL test. 51/4851/1
authorjose.lausuch <jose.lausuch@ericsson.com>
Fri, 18 Dec 2015 10:36:25 +0000 (11:36 +0100)
committerjose.lausuch <jose.lausuch@ericsson.com>
Fri, 18 Dec 2015 10:36:25 +0000 (11:36 +0100)
TODO: specific parameters for each installer

Change-Id: I5c0a88261c70319f7bf89c2ff28d55f740e443d2
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
docker/prepare_env.sh
docker/run_tests.sh

index 5a39c84..0c618bf 100755 (executable)
@@ -92,6 +92,7 @@ if [ $offline == false ]; then
         info "Functest repo: given commit is ${FUNCTEST_COMMIT}. Reseting..."
         git reset --hard ${FUNCTEST_COMMIT}
     fi
+    source ${BASEDIR}/common.sh
 
     info "Updating Releng repository...."
     cd ${RELENG_REPO_DIR}
index 64b1fc8..c75110b 100755 (executable)
@@ -50,30 +50,26 @@ function run_test(){
         ;;
         "odl")
             info "Running ODL test..."
+            neutron_ip=$(keystone catalog --service identity | grep publicURL | cut -f3 -d"/" | cut -f1 -d":")
+            odl_ip=$(keystone catalog --service network | grep publicURL | cut -f3 -d"/" | cut -f1 -d":")
+            usr_name=$(env | grep OS | grep OS_USERNAME | cut -f2 -d'=')
+            password=$(env | grep OS | grep OS_PASSWORD | cut -f2 -d'=')
+            odl_port=8181
             if [ $INSTALLER_TYPE == "fuel" ]; then
-                odl_ip=$(keystone catalog --service network | grep publicURL | cut -f3 -d"/" | cut -f1 -d":")
-                neutron_ip=$(keystone catalog --service identity | grep publicURL | cut -f3 -d"/" | cut -f1 -d":")
-                usr_name=$(env | grep OS | grep OS_USERNAME | cut -f2 -d'=')
-                pass=$(env | grep OS | grep OS_PASSWORD | cut -f2 -d'=')
-                odl_port=8181
-                ODL_PORT=$odl_port ODL_IP=$odl_ip NEUTRON_IP=$neutron_ip USR_NAME=$usr_name PASS=$pass \
-                ${FUNCTEST_REPO_DIR}/testcases/Controllers/ODL/CI/start_tests.sh
-            elif [ $INSTALLER_TYPE == "foreman" ]; then
-                #odl_port=8081
-                ${FUNCTEST_REPO_DIR}/testcases/Controllers/ODL/CI/start_tests.sh
+                odl_port=8282
             elif [ $INSTALLER_TYPE == "apex" ]; then
-                # TODO
-                ${FUNCTEST_REPO_DIR}/testcases/Controllers/ODL/CI/start_tests.sh
+                pass
             elif [ $INSTALLER_TYPE == "joid" ]; then
-                # TODO
-                ${FUNCTEST_REPO_DIR}/testcases/Controllers/ODL/CI/start_tests.sh
+                pass
             elif [ $INSTALLER_TYPE == "compass" ]; then
-                # TODO
-                ${FUNCTEST_REPO_DIR}/testcases/Controllers/ODL/CI/start_tests.sh
+                pass
             else
                 error "INSTALLER_TYPE not valid."
                 exit 1
             fi
+            ODL_PORT=$odl_port ODL_IP=$odl_ip NEUTRON_IP=$neutron_ip USR_NAME=$usr_name PASS=$password \
+                ${FUNCTEST_REPO_DIR}/testcases/Controllers/ODL/CI/start_tests.sh
+
             # save ODL results
             odl_logs="${FUNCTEST_REPO_DIR}/testcases/Controllers/ODL/CI/logs"
             if [ -d ${odl_logs} ]; then