From 6cea1a661ea3ba43a546edd7b5451794c523d0db Mon Sep 17 00:00:00 2001 From: dongwenjuan Date: Wed, 6 Sep 2017 15:42:28 +0800 Subject: add python test indication Change-Id: I2c56ce653e05727d13a26bf7bdd2595107a6ffba Signed-off-by: dongwenjuan --- docs/development/overview/testing.rst | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/docs/development/overview/testing.rst b/docs/development/overview/testing.rst index cd39ee03..08a4d933 100644 --- a/docs/development/overview/testing.rst +++ b/docs/development/overview/testing.rst @@ -29,7 +29,10 @@ OpenStack services. .. _OpenStack CLI manual: https://docs.openstack.org/user-guide/common/cli-set-environment-variables-using-openstack-rc.html -Then, you can run the script as follows: +Run Bash Test Script +~~~~~~~~~~~~~~~~~~~~ + +You can run the bash script as follows: .. code-block:: bash @@ -46,6 +49,24 @@ INSPECTOR_TYPE can be specified either 'sample'(default) or 'congress'. For testing with stable version, checkout stable branch of doctor repo before './run.sh'. +The bash test script will be deprecated(only bug fixes) after E Release. + +Run Python Test Script +~~~~~~~~~~~~~~~~~~~~~~ + +You can run the python script as follows: + +.. code-block:: bash + + git clone https://gerrit.opnfv.org/gerrit/doctor + cd doctor && tox + +You can see all the configurations with default values in sample configuration +file `doctor.sample.conf`_. And you can also modify the file to meet your +environment and then run the test. + +.. _doctor.sample.conf: https://git.opnfv.org/doctor/tree/etc/doctor.sample.conf + Run Functest Suite ================== @@ -60,10 +81,14 @@ Functest container. You can run the Doctor test with the following steps: -e INSTALLER_TYPE=${INSTALLER_TYPE} \ -e INSTALLER_IP=${INSTALLER_IP} \ -e INSPECTOR_TYPE=sample \ + -e PYTHON_ENABLE=True \ opnfv/functest:${DOCKER_TAG} /bin/bash docker exec python /home/opnfv/repos/functest/functest/ci/prepare_env.py start docker exec functest testcase run doctor +Add an environment variable *PYTHON_ENABLE* to indicate that using Python or +Bash to run the test when start the docker container. + See `Functest Userguide`_ for more information. .. _Functest Userguide: http://artifacts.opnfv.org/functest/docs/userguide/index.html -- cgit 1.2.3-korg