designate/contrib/tempest
Doug Hellmann f9c55abbff Drop use of 'oslo' namespace package
The Oslo libraries have moved all of their code out of the 'oslo'
namespace package into per-library packages. The namespace package was
retained during kilo for backwards compatibility, but will be removed by
the liberty-2 milestone. This change removes the use of the namespace
package, replacing it with the new package names.

The patches in the libraries will be put on hold until application
patches have landed, or L2, whichever comes first. At that point, new
versions of the libraries without namespace packages will be released as
a major version update.

Please merge this patch, or an equivalent, before L2 to avoid problems
with those library releases.

Blueprint: remove-namespace-packages
https://blueprints.launchpad.net/oslo-incubator/+spec/remove-namespace-packages

Change-Id: Ia21c15e8eca6bf456f7cfe13f815f5ce068601e7
2015-05-06 20:36:49 +00:00
..
dns_clients Fixes docstring typos 2014-09-24 15:26:52 -07:00
dns_schema Designate API tests for Tempest Framework 2014-07-30 11:44:27 +00:00
dns_tests Designate API tests for Tempest Framework 2014-07-30 11:44:27 +00:00
README.rst Designate API tests for Tempest Framework 2014-07-30 11:44:27 +00:00
clients.py Designate API tests for Tempest Framework 2014-07-30 11:44:27 +00:00
config.py Drop use of 'oslo' namespace package 2015-05-06 20:36:49 +00:00
tempest.conf.sample Designate API tests for Tempest Framework 2014-07-30 11:44:27 +00:00

README.rst

Designate API Testing using Tempest Framework.

This is a set of Designate API tests written for Tempest Framework to be run against a live OpenStack cluster with Designate service enabled.

Configuration

Detailed configuration of Designate tests and configuration files is the scope of this document.

Added all the required parameters in etc/tempest.conf.sample to enable Designate service.

The sample config file is auto generated using the script (based on parameters added in config.py): tools/generate_sample.sh

To run Tempest, you first need to create a configuration file that will tell Tempest where to find the designate service.

The easiest way to create a configuration file is to copy the sample (tempest.conf.sample) one in the etc/ directory.

$> cd $TEMPEST_ROOT_DIR $> cp etc/tempest.conf.sample etc/tempest.conf

After that, open up the etc/tempest.conf file and edit the configuration variables to match valid data in your environment. This includes your Keystone endpoint, a valid user and credentials, and reference data to be used in testing.

Tests and Clients for Designate feature

1> Added tests for Domains, Records, Servers of Designate API

under dns_tests folder.

2> Added respective supporting functions for Json Interface

under dns_clients folder.

3> Modified respective clients.py and config.py files with respect

to Designate service and should be placed under'tempest' folder.

4> Implemented Schema validation for all the Designate operations as per

current Tempest framework under dns_schema.

Steps to execute Designate API tests.

In order to run Designate API tests against Tempest Suite, all the above test scripts and client files has to be placed in paths as mentioned below.

1> Clone Tempest

git clone https://github.com/openstack/tempest.git

2> Add the following files

$> cp tempest.conf.sample $TEMPEST_ROOT_DIR/tempest/etc $> cp config.py TEMPEST_ROOT_DIR/tempest $> cp clients.py TEMPEST_ROOT_DIR/tempest $> cp -r dns_clients TEMPEST_ROOT_DIR/tempest/services/dns $> cp -r dns_schema TEMPEST_ROOT_DIR/tempest/api_schema/dns $> cp -r dns_tests TEMPEST_ROOT_DIR/tempest/api/dns

After setting up your configuration files, you can execute the set of designate tests by using testr. $> testr run --parallel

To run one single test

$> testr run --parallel tempest.api.dns.test_domains.DnsDomainsTest.test_list_domains