summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordongwenjuan <dong.wenjuan@zte.com.cn>2017-09-06 15:42:28 +0800
committerdongwenjuan <dong.wenjuan@zte.com.cn>2017-09-07 08:41:10 +0800
commit6cea1a661ea3ba43a546edd7b5451794c523d0db (patch)
tree13605c5c387e2f9a758d7d7ca13d9ea581f23a48
parentdfb3c066a1c325ba7ca028be98d9ec04af994f48 (diff)
add python test indication
Change-Id: I2c56ce653e05727d13a26bf7bdd2595107a6ffba Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
-rw-r--r--docs/development/overview/testing.rst27
1 files changed, 26 insertions, 1 deletions
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 <container_id> python /home/opnfv/repos/functest/functest/ci/prepare_env.py start
docker exec <container_id> 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