aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile1
-rwxr-xr-xdocker/common.sh8
-rwxr-xr-xdocker/run_tests.sh39
3 files changed, 29 insertions, 19 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 69c2bd48f..0765eb848 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -66,6 +66,7 @@ RUN git clone -b stable https://github.com/boucherv-orange/clearwater-live-test
RUN git clone https://github.com/openstack/networking-bgpvpn ${repos_dir}/bgpvpn
RUN git clone https://gerrit.onosproject.org/OnosSystemTest ${repos_dir}/onos
RUN git clone https://github.com/opnfv/promise ${repos_dir}/promise
+RUN git clone https://gerrit.opnfv.org/gerrit/ovno ${repos_dir}/ovno
RUN pip install -r ${repos_dir}/functest/docker/requirements.pip
RUN pip install -r ${repos_dir}/rally/requirements.txt
diff --git a/docker/common.sh b/docker/common.sh
index f03572d76..1f1cc75df 100755
--- a/docker/common.sh
+++ b/docker/common.sh
@@ -55,8 +55,6 @@ RALLY_VENV_DIR=$(cat $config_file | grep -w dir_rally_inst | awk 'END {print $NF
# Repos
RALLY_BRANCH=$(cat $config_file | grep -w rally_branch | awk 'END {print $NF}')
RALLY_COMMIT=$(cat $config_file | grep -w rally_commit | awk 'END {print $NF}')
-FUNCTEST_BRANCH=$(cat $config_file | grep -w functest_branch | awk 'END {print $NF}')
-FUNCTEST_COMMIT=$(cat $config_file | grep -w functest_commit | awk 'END {print $NF}')
RELENG_BRANCH=$(cat $config_file | grep -w releng_branch | awk 'END {print $NF}')
RELENG_COMMIT=$(cat $config_file | grep -w releng_commit | awk 'END {print $NF}')
VIMS_BRANCH=$(cat $config_file | grep -w vims_test_branch | awk 'END {print $NF}')
@@ -67,6 +65,8 @@ ONOS_BRANCH=$(cat $config_file | grep -w onos_branch | awk 'END {print $NF}')
ONOS_COMMIT=$(cat $config_file | grep -w onos_commit | awk 'END {print $NF}')
PROMISE_BRANCH=$(cat $config_file | grep -w promise_branch | awk 'END {print $NF}')
PROMISE_COMMIT=$(cat $config_file | grep -w promise_commit | awk 'END {print $NF}')
+OVNO_BRANCH=$(cat $config_file | grep -w ovno_branch | awk 'END {print $NF}')
+OVNO_COMMIT=$(cat $config_file | grep -w ovno_commit | awk 'END {print $NF}')
echo "_____Parsed needed data from ${config_file}:"
@@ -82,8 +82,6 @@ echo "FUNCTEST_CONF_DIR=${FUNCTEST_CONF_DIR}"
echo "FUNCTEST_DATA_DIR=${FUNCTEST_DATA_DIR}"
echo "RALLY_VENV_DIR=${RALLY_VENV_DIR}"
echo "####### Repositories #######"
-echo "FUNCTEST_BRANCH=${FUNCTEST_BRANCH}"
-echo "FUNCTEST_COMMIT=${FUNCTEST_COMMIT}"
echo "RELENG_BRANCH=${RELENG_BRANCH}"
echo "RELENG_COMMIT=${RELENG_COMMIT}"
echo "RALLY_BRANCH=${RALLY_BRANCH}"
@@ -94,6 +92,8 @@ echo "ONOS_BRANCH=${ONOS_BRANCH}"
echo "ONOS_COMMIT=${ONOS_COMMIT}"
echo "PROMISE_BRANCH=${PROMISE_BRANCH}"
echo "PROMISE_COMMIT=${PROMISE_COMMIT}"
+echo "OVNO_BRANCH=${OVNO_BRANCH}"
+echo "OVNO_COMMIT=${OVNO_COMMIT}"
echo "############################"
info () {
diff --git a/docker/run_tests.sh b/docker/run_tests.sh
index 2225791a4..cb6fb0c80 100755
--- a/docker/run_tests.sh
+++ b/docker/run_tests.sh
@@ -10,20 +10,19 @@
usage="Script to trigger the tests automatically.
usage:
- bash $(basename "$0") [--offline] [-h|--help] [-t <test_name>]
+ bash $(basename "$0") [-h|--help] [-t <test_name>]
where:
- -o|--offline optional offline mode (experimental)
-h|--help show this help text
-r|--report push results to database (false by default)
-t|--test run specific set of tests
- <test_name> one or more of the following: vping,odl,rally,tempest,vims,onos, promise. Separated by comma.
+ <test_name> one or more of the following: vping,odl,rally,tempest,vims,onos,promise,ovno. Separated by comma.
examples:
$(basename "$0")
$(basename "$0") --test vping,odl
- $(basename "$0") --offline -t tempest,rally"
+ $(basename "$0") -t tempest,rally"
# Support for Functest offline
@@ -32,12 +31,7 @@ offline=false
report=""
# Get the list of runnable tests
# Check if we are in CI mode
-if [[ -n "$DEPLOY_SCENARIO" && "$DEPLOY_SCENARIO" != "none" ]]; then
- testcase=`cat /home/opnfv/functest/conf/testcase-list.txt`
- arr_test=("$testcase")
-else
- arr_test=(vping tempest vims rally)
-fi
+
function clean_openstack(){
echo -e "\n\nCleaning Openstack environment..."
@@ -50,7 +44,7 @@ function run_test(){
test_name=$1
echo ""
echo "----------------------------------------------"
- echo " Running test case: $i"
+ echo " Running test cases: $i"
echo "----------------------------------------------"
echo ""
case $test_name in
@@ -69,11 +63,11 @@ function run_test(){
if [ $INSTALLER_TYPE == "fuel" ]; then
odl_port=8282
elif [ $INSTALLER_TYPE == "apex" ]; then
- pass
+ :
elif [ $INSTALLER_TYPE == "joid" ]; then
- pass
+ :
elif [ $INSTALLER_TYPE == "compass" ]; then
- pass
+ :
else
error "INSTALLER_TYPE not valid."
exit 1
@@ -138,6 +132,10 @@ function run_test(){
info "Running Doctor test..."
python ${FUNCTEST_REPO_DIR}/testcases/features/doctor.py
;;
+ "ovno")
+ info "Running OpenContrail test..."
+ # TODO
+ ;;
esac
}
@@ -170,6 +168,17 @@ while [[ $# > 0 ]]
shift # past argument or value
done
+
+tests_file="/home/opnfv/functest/conf/testcase-list.txt"
+if [[ -n "$DEPLOY_SCENARIO" && "$DEPLOY_SCENARIO" != "none" ]] &&\
+ [[ -f $tests_file ]]; then
+ echo "testcase-list.txt content:";cat $test_file; echo ""
+ arr_test=($(cat $tests_file))
+else
+ arr_test=(vping tempest vims rally)
+fi
+echo "arr_test: "${arr_test[@]}
+
BASEDIR=`dirname $0`
source ${BASEDIR}/common.sh
@@ -208,7 +217,7 @@ if [ "${TEST}" != "" ]; then
run_test $i
done
else
- info "Executing all the tests"
+ info "Executing tests..."
for i in "${arr_test[@]}"; do
run_test $i
done