Flavio Percoco | b539b2d | 2016-11-24 23:52:09 +0100 | [diff] [blame] | 1 | ======================== |
| 2 | Team and repository tags |
| 3 | ======================== |
| 4 | |
ShangXiao | 7a68f73 | 2018-03-14 00:52:53 -0700 | [diff] [blame] | 5 | .. image:: https://governance.openstack.org/tc/badges/designate-tempest-plugin.svg |
| 6 | :target: https://governance.openstack.org/tc/reference/tags/index.html |
Flavio Percoco | b539b2d | 2016-11-24 23:52:09 +0100 | [diff] [blame] | 7 | |
| 8 | .. Change things from this point on |
| 9 | |
Kiall Mac Innes | 25fb29e | 2016-04-07 08:07:04 +0100 | [diff] [blame] | 10 | ================================ |
| 11 | Tempest Integration of Designate |
| 12 | ================================ |
| 13 | |
| 14 | This directory contains Tempest tests to cover the designate project, as well |
| 15 | as a plugin to automatically load these tests into tempest. |
| 16 | |
| 17 | See the tempest plugin docs for information on using it: |
ShangXiao | 7a68f73 | 2018-03-14 00:52:53 -0700 | [diff] [blame] | 18 | https://docs.openstack.org/tempest/latest/plugin.html#using-plugins |
Kiall Mac Innes | 25fb29e | 2016-04-07 08:07:04 +0100 | [diff] [blame] | 19 | |
| 20 | See the designate docs for information on writing new tests etc: |
ShangXiao | 7a68f73 | 2018-03-14 00:52:53 -0700 | [diff] [blame] | 21 | https://docs.openstack.org/designate-tempest-plugin/latest/#writing-new-tests |
Kiall Mac Innes | 25fb29e | 2016-04-07 08:07:04 +0100 | [diff] [blame] | 22 | |
| 23 | Running the tests |
| 24 | ----------------- |
| 25 | |
Michael Johnson | 5eb6221 | 2023-02-28 00:21:57 +0000 | [diff] [blame] | 26 | From the tempest directory, setup the tempest virtual environment for the |
| 27 | designate tempest plugin:: |
| 28 | |
| 29 | $ tox -e venv-tempest -- pip3 install -e <path to designate-tempest-plugin> |
| 30 | |
| 31 | For 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 Innes | 25fb29e | 2016-04-07 08:07:04 +0100 | [diff] [blame] | 36 | To run all tests from this plugin, install designate into your environment |
| 37 | and from the tempest repo, run:: |
| 38 | |
Michael Johnson | 5eb6221 | 2023-02-28 00:21:57 +0000 | [diff] [blame] | 39 | $ tox -e all -- designate |
Kiall Mac Innes | 25fb29e | 2016-04-07 08:07:04 +0100 | [diff] [blame] | 40 | |
| 41 | To run a single test case, run with the test case name, for example:: |
| 42 | |
Michael Johnson | 5eb6221 | 2023-02-28 00:21:57 +0000 | [diff] [blame] | 43 | $ tox -e all -- designate_tempest_plugin.tests.api.v2.test_zones.ZonesTest.test_create_zones |
Kiall Mac Innes | 25fb29e | 2016-04-07 08:07:04 +0100 | [diff] [blame] | 44 | |
| 45 | To run all tempest tests including this plugin, run:: |
| 46 | |
Michael Johnson | 5eb6221 | 2023-02-28 00:21:57 +0000 | [diff] [blame] | 47 | $ tox -e all |