heat/heat_integrationtests
Zane Bitter 633f4c9f00 Get dep_attrs from StackDefinition
Since function.dep_attrs() returns logical resource names (rather
than actual objects), we can just as easily use the StackDefinition to
calculate it instead of the Stack and Resource objects.

In the legacy path, we must ensure we use the StackDefinition from the
*new* stack to determine which attributes to include in the NodeData, since
that's what we're going to be using it for. In the convergence path the
current stack definition already contains the new template.

Also, update the *new* stack's definition with the NodeData obtained from
completed resources (in addition to the existing stack's), so that that
data may be used in calculating the dep_attrs for future resources. This is
required when get_attr functions are nested in the template.

Change-Id: I23efcc091eae53470f7f9cb3ca21e09f00f43808
Partially-Implements: blueprint stack-definition
2017-07-21 10:30:34 -04:00
..
api Fix ResourceActionNotSupported errors in log 2017-07-07 20:38:17 -04:00
common Fix handle_restore for server and volume resources 2017-05-19 11:56:27 +05:30
functional Get dep_attrs from StackDefinition 2017-07-21 10:30:34 -04:00
locale/ja/LC_MESSAGES Imported Translations from Zanata 2017-05-02 10:32:02 +00:00
scenario Use signal_url in TestAodhAlarm scenario test 2017-06-09 07:46:59 +05:30
.gitignore Support classes for heat integration tests 2014-09-24 09:02:20 +12:00
README.rst Run heat_integrationtests as a tempest plugin 2016-08-13 09:53:07 +12:00
__init__.py Support classes for heat integration tests 2014-09-24 09:02:20 +12:00
cleanup_test_env.sh Fix barbicanclient and glance upload issue 2017-07-18 11:30:35 +05:30
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 Fix barbicanclient and glance upload issue 2017-07-18 11:30:35 +05:30
prepare_test_env.sh Fix barbicanclient and glance upload issue 2017-07-18 11:30:35 +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