Justin Shepherd | 0d9bbd1 | 2011-08-11 12:57:44 -0500 | [diff] [blame] | 1 | :: |
| 2 | |
Jay Pipes | 7f75763 | 2011-12-02 15:53:32 -0500 | [diff] [blame] | 3 | Tempest - The OpenStack Integration Test Suite |
| 4 | ============================================== |
Justin Shepherd | 0d9bbd1 | 2011-08-11 12:57:44 -0500 | [diff] [blame] | 5 | |
Soren Hansen | 5d40bdb | 2011-08-26 16:06:37 +0200 | [diff] [blame] | 6 | This is a set of integration tests to be run against a live cluster. |
Justin Shepherd | 0d9bbd1 | 2011-08-11 12:57:44 -0500 | [diff] [blame] | 7 | |
| 8 | Quickstart |
| 9 | ---------- |
| 10 | |
Jay Pipes | 7f75763 | 2011-12-02 15:53:32 -0500 | [diff] [blame] | 11 | To run Tempest, you first need to create a configuration file that |
| 12 | will tell Tempest where to find the various OpenStack services and |
| 13 | other testing behaviour switches. |
Justin Shepherd | 0d9bbd1 | 2011-08-11 12:57:44 -0500 | [diff] [blame] | 14 | |
Jay Pipes | 7f75763 | 2011-12-02 15:53:32 -0500 | [diff] [blame] | 15 | The easiest way to create a configuration file is to copy the sample |
| 16 | one in the ``etc/`` directory :: |
Justin Shepherd | 0d9bbd1 | 2011-08-11 12:57:44 -0500 | [diff] [blame] | 17 | |
Jay Pipes | 7f75763 | 2011-12-02 15:53:32 -0500 | [diff] [blame] | 18 | $> cd $TEMPEST_ROOT_DIR |
Brian Lamar | 930fc5b | 2011-12-08 11:51:26 -0500 | [diff] [blame] | 19 | $> cp etc/tempest.conf.sample etc/tempest.conf |
Justin Shepherd | 0d9bbd1 | 2011-08-11 12:57:44 -0500 | [diff] [blame] | 20 | |
Brian Lamar | 930fc5b | 2011-12-08 11:51:26 -0500 | [diff] [blame] | 21 | After that, open up the ``etc/tempest.conf`` file and edit the |
Jay Pipes | 7f75763 | 2011-12-02 15:53:32 -0500 | [diff] [blame] | 22 | variables to fit your test environment. |
Justin Shepherd | 0d9bbd1 | 2011-08-11 12:57:44 -0500 | [diff] [blame] | 23 | |
Jay Pipes | 7f75763 | 2011-12-02 15:53:32 -0500 | [diff] [blame] | 24 | .. note:: |
Justin Shepherd | 0d9bbd1 | 2011-08-11 12:57:44 -0500 | [diff] [blame] | 25 | |
Jay Pipes | 7f75763 | 2011-12-02 15:53:32 -0500 | [diff] [blame] | 26 | If you have a running devstack environment, look at the |
| 27 | environment variables in your ``devstack/localrc`` file. |
| 28 | The ADMIN_PASSWORD variable should match the api_key value |
Brian Lamar | 930fc5b | 2011-12-08 11:51:26 -0500 | [diff] [blame] | 29 | in the tempest.conf [nova] configuration section. In addition, |
Jay Pipes | 7f75763 | 2011-12-02 15:53:32 -0500 | [diff] [blame] | 30 | you will need to get the UUID identifier of the image that |
| 31 | devstack uploaded and set the image_ref value in the [environment] |
Brian Lamar | 930fc5b | 2011-12-08 11:51:26 -0500 | [diff] [blame] | 32 | section in the tempest.conf to that image UUID. |
Jay Pipes | 7f75763 | 2011-12-02 15:53:32 -0500 | [diff] [blame] | 33 | |
| 34 | After setting up your configuration file, you can execute the set of |
| 35 | Tempest tests by using ``nosetests`` :: |
| 36 | |
Brian Lamar | 930fc5b | 2011-12-08 11:51:26 -0500 | [diff] [blame] | 37 | $> nosetests tempest |