summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-07-31 07:50:53 +0000
committerGerrit Code Review <review@openstack.org>2015-07-31 07:50:53 +0000
commit996f8da6f022071f99a2f31d75b192569d30e7ee (patch)
tree672b54b73648f701fc0ec85aeb198fcb0182a30e
parentc8a468f1492ef624453abda5ac39dd650601886c (diff)
parentb2c70504c52595f2252d40591ba5d47084f35174 (diff)
downloadpython-barbicanclient-996f8da6f022071f99a2f31d75b192569d30e7ee.tar.gz
Merge "Adding Documentation for running Functional Tests on the Python-Barbican Client"
-rw-r--r--doc/source/functional_tests.rst63
-rw-r--r--doc/source/index.rst1
2 files changed, 64 insertions, 0 deletions
diff --git a/doc/source/functional_tests.rst b/doc/source/functional_tests.rst
new file mode 100644
index 0000000..661d670
--- /dev/null
+++ b/doc/source/functional_tests.rst
@@ -0,0 +1,63 @@
+Running Functional Tests
+========================
+
+In order to run functional tests you must enter into the top-level directory
+of the python-barbicanclient and run:
+
+.. code-block:: bash
+
+ tox -e functional
+
+By default, the functional tox job will use nosetests to execute the functional
+tests. This is primarily due to nose being a very well known and common
+workflow among developers.
+
+Prerequisites
+-------------
+
+In order to run functional tests, Barbican must be running and configured to
+use the Keystone Middleware. For more information on setting up this up
+please visit http://docs.openstack.org/developer/barbican/setup/keystone.html
+
+
+Functional Test Configuration
+-----------------------------
+
+A configuration file for functional tests must be edited before the tests
+can be run. In the top-level directory of the python-barbicanclient, edit
+``/etc/functional_tests.conf`` to the values you setup in Keystone.
+
+.. code-block:: bash
+
+ [DEFAULT]
+ # Leaving this as a placeholder
+
+ [keymanager]
+ # Replace values that represent barbican server and user information
+ url=http://localhost:9311
+ username=barbican
+ password=secretservice
+ project_name=service
+ project_id=service
+ #max_payload_size=10000
+ project_domain_name=Default
+
+ [identity]
+ # Replace these with values that represent your identity configuration
+ uri=http://localhost:5000/v2.0
+ uri_v3=http://localhost:5000/v3
+ auth_version=v3
+
+ username=admin
+ tenant_name=admin
+ password=password
+ domain_name=Default
+
+ admin_username=admin
+ admin_tenant_name=admin
+ admin_password=password
+ admin_domain_name=Default
+
+
+ [identity-feature-enabled]
+ # Leaving this as a placeholder
diff --git a/doc/source/index.rst b/doc/source/index.rst
index 0bc240c..331c18e 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -21,6 +21,7 @@ Contents:
cli_usage
reference
contributing
+ functional_tests
Indices and tables
==================