Go to file
Cliff Parsons a08034e3d9 Force API test listing even if auth fails
If the heat-tempest-plugin is installed, and the command
"tempest run --list-tests" is issued, the Heat API (Gabbi) tests
will not be listed if the auth_url is unreachable/mis-provisioned,
or if the key authorization-related variables are not provisioned
in the tempest.conf file. The API tests should be listed regardless
of whether or not the plugin can authenticate using keystone.

In the event that the plugin is not configured (or not configured
correctly), or if keystone is not reachable, this commit combined
with the following gabbi fix:

8354d54547

ensures that Gabbi build_tests() returns the list of api tests,
even when keystone cannot be reached due to whatever reason above.

Note that even while running the tests, if the authorization
information is not present or is incorrect, the user will be able
to see the warning logs with the keystoneauth exceptions present.
However, the exceptions will not prevent a test listing from being
given to the user.

Change-Id: I3921f0df245d3745b95d3a312c41b9f9b15c2ba9
Closes-Bug: #1749218
2018-04-20 10:51:45 -05:00
2018-01-28 01:40:47 -08:00

Heat Tempest Plugin

Tests can be run as a tempest plugin against any heat-enabled OpenStack cloud, however defaults match running against a recent DevStack.

To run the tests against DevStack, do the following:

# Define DEST

export DEST=/opt/stack

# create test resources and write tempest config

$DEST/heat/heat_integrationtests/prepare_test_env.sh

$DEST/heat/heat_integrationtests/prepare_test_network.sh

# run tempest selecting only these tests

cd $DEST/tempest

tempest run --regex heat_tempest_plugin.tests

If custom configuration is required, edit the [heat_plugin] section of

$DEST/tempest/etc/tempest.conf

Description
OpenStack Orchestration (Heat) Tempest Plugin
Readme 2.8 MiB
Languages
Python 100%