diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-06-08 18:31:59 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-06-08 18:31:59 +0000 |
commit | b6bd47562985528bc8bbc0586c1da2e08cf64f3f (patch) | |
tree | 8ca1c9024e7da614a28282a91b5539553ddfeb7e /TESTING.rst | |
parent | 8d9fcb2d3037004cd1ad5136c449d80cdc5a5865 (diff) | |
parent | 814fbc05011b3204102c1f930fce24c2fc3c9b62 (diff) | |
download | neutron-b6bd47562985528bc8bbc0586c1da2e08cf64f3f.tar.gz |
Merge "api-tests: Common way to define required extensions"
Diffstat (limited to 'TESTING.rst')
-rw-r--r-- | TESTING.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/TESTING.rst b/TESTING.rst index b0184d6504..34d62b1b48 100644 --- a/TESTING.rst +++ b/TESTING.rst @@ -368,6 +368,12 @@ Tests for other resources should be contributed to the Neutron repository. Scenario tests should be similarly split up between Tempest and Neutron according to the API they're targeting. +To create an API test, the testing class must at least inherit from +neutron.tests.tempest.api.base.BaseNetworkTest base class. As some of tests +may require certain extensions to be enabled, the base class provides +``required_extensions`` class attribute which can be used by subclasses to +define a list of required extensions for particular test class. + Scenario Tests ~~~~~~~~~~~~~~ |