deb-designate/doc/source/tempest.rst
Paul Glass 669ab5c830 Functional tests: minus tempest, plus noauth support
* Functional tests no longer need tempest installed
* Functional tests can run against a Keystone-less environment

Change-Id: I2c2603b7207bfa09bb96ad180b959e4164096858
2015-04-21 15:46:53 +00:00

1.5 KiB

Tempest tests

The Tempest tests are functional tests that hit a live Designate endpoint and verify responses.

Installation

The tests depend on both tempest-lib and tempest:

# tempest-lib is in test-requirements.txt
cd designate
pip install -r requirements.txt -r test-requirements.txt
python setup.py develop

Configuration

The Tempest tests look for the TEMPEST_CONFIG environment variable, or the file tempest.conf in the current directory which contains the config below. Set use_noauth=True to hit a Designate endpoint without Keystone.

[identity]
# Replace these with values that represent your identity configuration
uri=http://localhost:5000/v2.0
uri_v3=http://localhost:5000/v3
auth_version=v2
region=RegionOne

username=admin
tenant_name=admin
password=password
domain_name=Default

admin_username=admin
admin_tenant_name=admin
admin_password=password
admin_domain_name=Default

[noauth]
use_noauth=False
designate_endpoint=http://127.0.0.1:9001
tenant_id='noauth-project'

Execution

The tests should work with any test runner, like nose:

cd functionaltests
pip install nose
nosetests --logging-level=WARN api/

A file .testr.conf is included for use with testr:

cd functionaltests
pip install testrepository
testr init
testr run