summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-09-24 08:40:02 +0000
committerGerrit Code Review <review@openstack.org>2015-09-24 08:40:02 +0000
commitf2192badc132786c1258dbb733feb451fcb9a5e6 (patch)
treec286c2577ac5dcf67f397a082f03e31823737d32 /doc
parentb97ae05612522180cc6f64485212811329da9645 (diff)
parent6daf82777ec72337cc0afa6a702e66b64b622488 (diff)
downloadpython-designateclient-f2192badc132786c1258dbb733feb451fcb9a5e6.tar.gz
Merge "Layout some functional tests for the V2 CLI"
Diffstat (limited to 'doc')
-rw-r--r--doc/source/functional-tests.rst67
-rw-r--r--doc/source/index.rst1
2 files changed, 68 insertions, 0 deletions
diff --git a/doc/source/functional-tests.rst b/doc/source/functional-tests.rst
new file mode 100644
index 0000000..3726eb9
--- /dev/null
+++ b/doc/source/functional-tests.rst
@@ -0,0 +1,67 @@
+================
+Functional Tests
+================
+
+The functional tests invoke the client executable to see that it actually works
+with a running Designate. WARNING: these tests will create and delete zones,
+recordsets, and other resources in Designate.
+
+Installation
+------------
+
+.. code-block:: shell-session
+
+ cd python-designateclient
+ pip install python-openstackclient
+ pip install -r requirements.txt -r test-requirements.txt
+ pip install -e .
+
+Configuration
+-------------
+
+The functional tests look for a variable ``TEMPEST_CONFIG`` which specifies a
+config file for the test.
+
+.. code-block:: shell-session
+
+ export TEMPEST_CONFIG=tempest.conf
+
+The tests will use Keystone to grab the Designate endpoint to test against.
+They need at least three users (two regular users, and one admin) for all the
+tests to run.
+
+.. code-block:: shell-session
+
+ [identity]
+ uri = http://localhost:5000/v2.0
+ uri_v3 = http://localhost:5000/v3
+ auth_version = v2
+ region = RegionOne
+
+ username = demo
+ tenant_name = demo
+ password = password
+ domain_name = Default
+
+ alt_username = alt_demo
+ alt_tenant_name = alt_demo
+ alt_password = password
+ alt_domain_name = Default
+
+ admin_username = admin
+ admin_tenant_name = admin
+ admin_password = password
+ admin_domain_name = Default
+
+ [designateclient]
+ # the directory containing the openstack executable
+ directory=/root/python-designateclient/.venv/bin
+
+Running the tests
+-----------------
+
+The functional tests are run with tox (installed with ``pip install tox``):
+
+.. code-block:: shell-session
+
+ tox -e functional
diff --git a/doc/source/index.rst b/doc/source/index.rst
index b252f5b..dd89358 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -21,6 +21,7 @@ Contents
shell-examples
shell-v2
contributing
+ functional-tests
Indices and tables
==================