summaryrefslogtreecommitdiff
path: root/heat_integrationtests/functional/test_create_update.py
diff options
context:
space:
mode:
Diffstat (limited to 'heat_integrationtests/functional/test_create_update.py')
-rw-r--r--heat_integrationtests/functional/test_create_update.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/heat_integrationtests/functional/test_create_update.py b/heat_integrationtests/functional/test_create_update.py
index 56c813692..a097c310a 100644
--- a/heat_integrationtests/functional/test_create_update.py
+++ b/heat_integrationtests/functional/test_create_update.py
@@ -762,3 +762,37 @@ resources:
expected_status='UPDATE_FAILED')
self.update_stack(stack_identifier, template=template,
expected_status='UPDATE_COMPLETE')
+
+ @test.requires_convergence
+ def test_update_failed_changed_env_list_resources(self):
+ template = {
+ 'heat_template_version': 'queens',
+ 'resources': {
+ 'test1': {
+ 'type': 'OS::Heat::TestResource',
+ 'properties': {
+ 'value': 'foo'
+ }
+ },
+ 'my_res': {
+ 'type': 'My::TestResource',
+ 'depends_on': 'test1'
+ },
+ 'test2': {
+ 'depends_on': 'my_res',
+ 'type': 'OS::Heat::TestResource'
+ }
+ }
+ }
+ env = {'resource_registry':
+ {'My::TestResource': 'OS::Heat::TestResource'}}
+ stack_identifier = self.stack_create(
+ template=template, environment=env)
+ update_template = copy.deepcopy(template)
+ update_template['resources']['test1']['properties']['fail'] = 'true'
+ update_template['resources']['test2']['depends_on'] = 'test1'
+ del update_template['resources']['my_res']
+ self.update_stack(stack_identifier,
+ template=update_template,
+ expected_status='UPDATE_FAILED')
+ self.assertEqual(3, len(self.list_resources(stack_identifier)))