Networking L2GW Tempest plugin contains api, cli and clients tests.
There are several ways to run Tempest tests: it is possible to run them using your Devstack or using Rally.
See how to configure Tempest at Tempest Configuration Guide.
Tempest automatically discovers installed plugins. That’s why you just need to install the Python packages that contains the Networking L2GW Tempest plugin in the same environment where Tempest is installed.
$ git clone https://git.openstack.org/openstack/networking-l2gw-tempest-plugin
$ cd networking-l2gw-tempest-plugin/
$ pip install networking-l2gw-tempest-plugin/
After that you can run Tempest tests. There you can specify the name of
test (and even run a single test from directory). One way to run Tempest
tests by using ostestr
command, for instance:
$ ostestr networking_l2gw_tempest_plugin.tests.api.test_l2gw_extensions.L2GatewayExtensionTestJSON.test_create_show_list_delete_l2gateway_connection
The command tempest run
is another way to run tests. See the additional
information about using this command.
For example, the following command will run all the Tempest tests.
$ tempest run
Finally, you can use testr
directly to run the tests. For example,
the following command will run all the cli-tests:
$ testr run networking_l2gw_tempest_plugin.tests.api
Useful links:
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.