blob: 902b26d17628c54eafd31dd6036ddc45739a744b [file] [log] [blame]
Flavio Percocob539b2d2016-11-24 23:52:09 +01001========================
2Team and repository tags
3========================
4
ShangXiao7a68f732018-03-14 00:52:53 -07005.. image:: https://governance.openstack.org/tc/badges/designate-tempest-plugin.svg
6 :target: https://governance.openstack.org/tc/reference/tags/index.html
Flavio Percocob539b2d2016-11-24 23:52:09 +01007
8.. Change things from this point on
9
Kiall Mac Innes25fb29e2016-04-07 08:07:04 +010010================================
11Tempest Integration of Designate
12================================
13
14This directory contains Tempest tests to cover the designate project, as well
15as a plugin to automatically load these tests into tempest.
16
17See the tempest plugin docs for information on using it:
ShangXiao7a68f732018-03-14 00:52:53 -070018https://docs.openstack.org/tempest/latest/plugin.html#using-plugins
Kiall Mac Innes25fb29e2016-04-07 08:07:04 +010019
20See the designate docs for information on writing new tests etc:
ShangXiao7a68f732018-03-14 00:52:53 -070021https://docs.openstack.org/designate-tempest-plugin/latest/#writing-new-tests
Kiall Mac Innes25fb29e2016-04-07 08:07:04 +010022
23Running the tests
24-----------------
25
Michael Johnson5eb62212023-02-28 00:21:57 +000026From the tempest directory, setup the tempest virtual environment for the
27designate tempest plugin::
28
29 $ tox -e venv-tempest -- pip3 install -e <path to designate-tempest-plugin>
30
31For example, when using a typical devstack setup::
32
33 $ cd /opt/stack/tempest
34 $ tox -e venv-tempest -- pip3 install -e /opt/stack/designate-tempest-plugin
35
Kiall Mac Innes25fb29e2016-04-07 08:07:04 +010036To run all tests from this plugin, install designate into your environment
37and from the tempest repo, run::
38
Michael Johnson5eb62212023-02-28 00:21:57 +000039 $ tox -e all -- designate
Kiall Mac Innes25fb29e2016-04-07 08:07:04 +010040
41To run a single test case, run with the test case name, for example::
42
Michael Johnson5eb62212023-02-28 00:21:57 +000043 $ tox -e all -- designate_tempest_plugin.tests.api.v2.test_zones.ZonesTest.test_create_zones
Kiall Mac Innes25fb29e2016-04-07 08:07:04 +010044
45To run all tempest tests including this plugin, run::
46
Michael Johnson5eb62212023-02-28 00:21:57 +000047 $ tox -e all