4f4932c790
When generating the node_data() for a resource, catch and store any exceptions (other than InvalidTemplateAttribute) encountered while getting attributes. Re-raise the exception at the point where we try to read the attribute value, including where we try to serialise the NodeData object to store in the database. In convergence, we generate and immediately serialise the NodeData, so this should result in no substantial change in behaviour there. In other situations (e.g. when we're just loading the data to show the stack), this prevents an error in attribute calculation from aborting the whole operation. The exception will still be raised if (and only if) the erroneous attribute is accessed, but may be handled more appropriately. For example, errors in calculating output values are handled by reporting an error only for that particular output. Change-Id: Idc97aee87405cc13e83be3373078b52e725850ea Co-Authored-By: Zane Bitter <zbitter@redhat.com> Closes-Bug: #1712280 |
||
---|---|---|
.. | ||
api | ||
common | ||
functional | ||
locale | ||
scenario | ||
.gitignore | ||
README.rst | ||
__init__.py | ||
cleanup_test_env.sh | ||
install-requirements | ||
plugin.py | ||
post_test_hook.sh | ||
pre_test_hook.sh | ||
prepare_test_env.sh | ||
prepare_test_network.sh |
README.rst
Heat integration tests
These 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_integrationtests
If custom configuration is required, edit the [heat_plugin] section of
$DEST/tempest/etc/tempest.conf