diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-01-11 16:45:00 +0100 |
---|---|---|
committer | Morgan Richomme <morgan.richomme@orange.com> | 2016-01-12 09:59:07 +0000 |
commit | 0f4828114b80b9077d451692843847dd692f94b9 (patch) | |
tree | 5acfff95cc0eba37cef7fe95864ceb72c58f73ef /docker | |
parent | 3ff47a399463ea71e4ae83fb5ce70e338e2de9a7 (diff) |
Prepare Promise integration in Functest
JIRA: FUNCTEST-68
Change-Id: I9dd3e49cf7cbcec932fb08af359c6e4784818155
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
(cherry picked from commit 3d064f457576fe87cce5813af7d33cf45e898e3d)
Diffstat (limited to 'docker')
-rw-r--r-- | docker/Dockerfile | 1 | ||||
-rwxr-xr-x | docker/common.sh | 4 | ||||
-rwxr-xr-x | docker/prepare_env.sh | 13 | ||||
-rwxr-xr-x | docker/run_tests.sh | 8 |
4 files changed, 24 insertions, 2 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index 3cd6d90f8..6ae06e235 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -65,6 +65,7 @@ RUN git clone https://github.com/opendaylight/integration.git ${repos_dir}/odl_i RUN git clone -b stable https://github.com/boucherv-orange/clearwater-live-test ${repos_dir}/vims-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 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 4ea0907a4..aabc32cbe 100755 --- a/docker/common.sh +++ b/docker/common.sh @@ -55,6 +55,8 @@ BGPVPN_BRANCH=$(cat $config_file | grep -w bgpvpn_branch | awk 'END {print $NF}' BGPVPN_COMMIT=$(cat $config_file | grep -w bgpvpn_commit | awk 'END {print $NF}') 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}') echo "_____Parsed needed data from ${config_file}:" @@ -80,6 +82,8 @@ echo "VIMS_BRANCH=${VIMS_BRANCH}" echo "VIMS_COMMIT=${VIMS_COMMIT}" echo "ONOS_BRANCH=${ONOS_BRANCH}" echo "ONOS_COMMIT=${ONOS_COMMIT}" +echo "PROMISE_BRANCH=${PROMISE_BRANCH}" +echo "PROMISE_COMMIT=${PROMISE_COMMIT}" echo "############################" info () { diff --git a/docker/prepare_env.sh b/docker/prepare_env.sh index cae53b7c0..321ae9fe3 100755 --- a/docker/prepare_env.sh +++ b/docker/prepare_env.sh @@ -156,6 +156,19 @@ if [ $offline == false ]; then git reset --hard ${ONOS_COMMIT} fi + info "Updating PROMISE repository...." + cd ${PROMISE_REPO_DIR} + if [ ${PROMISE_BRANCH} != "master" ]; then + info "PROMISE repo: checkout ${PROMISE} branch..." + git checkout ${PROMISE_BRANCH} + fi + info "PROMISE repo: pulling to latest..." + git pull + if [ ${PROMISE_COMMIT} != "latest" ]; then + info "PROMISE repo: given commit is ${PROMISE_COMMIT}. Reseting..." + git reset --hard ${PROMISE_COMMIT} + fi + fi # We do this regardless if its online or offline mode. diff --git a/docker/run_tests.sh b/docker/run_tests.sh index dcaaeb9bb..257fab1d9 100755 --- a/docker/run_tests.sh +++ b/docker/run_tests.sh @@ -17,7 +17,7 @@ where: -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. Separated by comma. + <test_name> one or more of the following: vping,odl,rally,tempest,vims,onos, promise. Separated by comma. examples: @@ -115,7 +115,11 @@ function run_test(){ "onos") info "Running ONOS test case..." python ${FUNCTEST_REPO_DIR}/testcases/Controllers/ONOS/Teston/CI/onosfunctest.py - esac + ;; + "promise") + info "Running PROMISE test case..." + # TODO + esac } |