heat/heat_integrationtests
Thomas Herve 4f4932c790 Defer exceptions in calculating node_data()
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
2017-09-22 12:19:13 -04:00
..
api Add gabbi api tests for stack update/patch-update 2017-08-17 10:33:49 +05:30
common Merge "Implement handle_<action>_cancel for SoftwareDeployment" 2017-08-10 17:38:48 +00:00
functional Defer exceptions in calculating node_data() 2017-09-22 12:19:13 -04:00
locale Imported Translations from Zanata 2017-08-13 10:28:33 +00:00
scenario Add test for basic resources as heat define test 2017-07-07 05:31:20 +00:00
.gitignore Support classes for heat integration tests 2014-09-24 09:02:20 +12:00
README.rst Fix readme guide for heat_integrationtests 2017-08-07 18:38:12 +08:00
__init__.py Support classes for heat integration tests 2014-09-24 09:02:20 +12:00
cleanup_test_env.sh Switch integration jobs to use local mirrors 2017-08-10 16:46:59 -04:00
install-requirements Create integration tests requirements on the fly 2016-03-25 13:40:50 +00:00
plugin.py Run heat_integrationtests as a tempest plugin 2016-08-13 09:53:07 +12:00
post_test_hook.sh Use group_regex to group gabbi api tests 2017-05-05 07:29:40 +05:30
pre_test_hook.sh Merge "Revert "Disable nova quota check in gate jobs"" 2017-08-30 10:44:34 +00:00
prepare_test_env.sh Unskip StackSnapshotRestoreTest 2017-08-23 14:42:08 +05:30
prepare_test_network.sh Use osc commands for creating neutron resources 2016-10-20 15:42:40 +05:30

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