Merge "Add template for BGPVPN test case in run_tests.sh"
authorjose.lausuch <jose.lausuch@ericsson.com>
Tue, 15 Dec 2015 08:47:59 +0000 (08:47 +0000)
committerGerrit Code Review <gerrit@172.30.200.206>
Tue, 15 Dec 2015 08:47:59 +0000 (08:47 +0000)
1  2 
docker/run_tests.sh

@@@ -93,9 -88,20 +93,21 @@@ function run_test()
          ;;
          "rally")
              info "Running Rally benchmark suite..."
 -            python ${FUNCTEST_REPO_DIR}/testcases/VIM/OpenStack/CI/libraries/run_rally.py --debug ${FUNCTEST_REPO_DIR}/ all
 +            python ${FUNCTEST_REPO_DIR}/testcases/VIM/OpenStack/CI/libraries/run_rally.py \
 +                --debug ${FUNCTEST_REPO_DIR}/ all ${report}
          ;;
+         "bgpvpn_template")
+             info "Running BGPVPN Tempest test case..."
+             tempest_dir=$(find /root/.rally -type d -name for-deploy*)
+             # TODO:
+             # do the call of your test case here.
+             # the bgpvpn repo is cloned in $BGPVPN_REPO_DIR
+             # tempest is installed in $tempest_dir
+             # Suggestion:
+             #   mkdir ${tempest_dir}/tempest/api/bgpvpn/
+             #   cp ${BGPVPN_REPO_DIR}/networking_bgpvpn_tempest/<whatever you need> \
+             #       ${tempest_dir}/tempest/api/bgpvpn/
+             #   ${tempest_dir}/run_tempest.sh tempest.api.bgpvpn.<test_case_name>
      esac
  }