Tempest Integration of Sahara

Sahara 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.

Run Tempest tests on Devstack

See how to configure Tempest here.

Tempest automatically discovers installed plugins. That’s why you just need to install the Python packages that contains the Sahara Tempest plugin in the same environment where Tempest is installed.

$ git clone https://git.openstack.org/openstack/sahara-tests
$ cd sahara-tests/
$ pip install sahara-tests/

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 sahara_tempest_plugin.tests.cli.test_scenario.Scenario.test_plugin_cli

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 sahara_tempest_plugin.tests.cli

Useful links:

Run Tempest tests using Rally

First of all, be sure that Rally is installed and working. There should be a Rally deployment with correct working Sahara service in it.

Full information can be found on this link.

Using this information, you can install rally verify tool and plugin for testing Sahara. After this you are free to run Sahara Tempest tests. Here are some examples of how to run all the tests:

$ rally verify start --regex sahara_tempest_plugin.tests

If you want to run client or cli tests, you need to add the following line to generated config in [data-processing] field:

test_image_name = IMAGE_NAME

where IMAGE_NAME is the name of image on which you would like to run tests.

Table Of Contents

Previous topic

System(scenario) tests for Sahara project

Project Source

This Page