Chapter 2. OpenStack Integration Test Suite Scripts
The OpenStack Integration Test Suite provides some scripts you can use to install, and configure it and the
run_tests.sh script allows you to run tests on your OpenStack deployment. You can find the entire list of the tools available for the OpenStack Integration Test Suite service in the
/tools directory. The following is a brief summary on each of these scripts. You can get more details by running them with the option
configure-tempest-directory- The Integration Test Suite expects the tests it discovers to be in the current working directory. This script will add symbollic links and other files to the current directory so that you can run
tempestagainst the cloud. You can run this script in different directories to run
tempestagainst different clouds from the same machine.
config_tempest.py- The OpenStack Integration Test Suite can be difficult to configure. You need to set various options, and different users, tenants, flavors, images, need to be created. The
config_tempest.pyscript makes the configuration easier. Using the
--createoption, you can create the necessary resources and
admincredentials. Red Hat recommends that you do not include the
admincredentials while running the script against an enterprise cloud.
run-tests.sh- This script is a wrapper around the
testrtest runner that provides a file with a set of tests to skip as well as producing optional
xunitoutput. All the long arguments to the
testrcan be used with this script. See the
testrdocumentation for more information.
For more details on these scripts, see List and Description of the OpenStack Integration Test Suite Scripts