summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaul Glass <paul.glass@rackspace.com>2015-08-24 15:41:17 +0000
committerPaul Glass <paul.glass@rackspace.com>2015-09-23 14:30:35 +0000
commit6daf82777ec72337cc0afa6a702e66b64b622488 (patch)
tree4ff24e9e74a5fba687e1a46c7b681f28a185f715 /doc
parent649e7d48c8bcd76b1ef1f5d8f0f87e8f1056fd24 (diff)
downloadpython-designateclient-6daf82777ec72337cc0afa6a702e66b64b622488.tar.gz
Layout some functional tests for the V2 CLI
Change-Id: Ib2d1261bcb0362c586c0aae4b9c5a8a563f07c71
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
==================