2.4 KiB
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 at Tempest Configuration Guide.
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. You can specify the name of
test or a more complex regular expression. While any
testr
-based test runner can be used, the official command
for executing Tempest tests is tempest run
.
For example, the following command will run a specific subset of tests:
$ tempest run --regex '^sahara_tempest_plugin.tests.cli.test_scenario.Scenario.'
The full syntax of tempest run
is described on the relavant
section of the Tempest documentation.
Other 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.