summaryrefslogtreecommitdiff
path: root/heat/tests/test_provider_template.py
diff options
context:
space:
mode:
authorZane Bitter <zbitter@redhat.com>2017-02-20 15:12:49 -0500
committerZane Bitter <zbitter@redhat.com>2017-02-20 15:12:49 -0500
commitb90991e00b4e0029748c28c5258607f266f1bf85 (patch)
tree214e35941977e4d548cc48917ab7f2d408104a5e /heat/tests/test_provider_template.py
parentb0d725bdb83a53463f49556da659a73cd7f768f3 (diff)
downloadheat-b90991e00b4e0029748c28c5258607f266f1bf85.tar.gz
Pass on outputs errors to parent stacks
If getting an output from a child stack fails with an error, we didn't pass on the error message to the parent stack that was requesting it but instead reported essentially that the given output did not exist. Change-Id: I5653baf310a29dc4829ad570c769cf67ce12695e Partial-Bug: #1599114
Diffstat (limited to 'heat/tests/test_provider_template.py')
-rw-r--r--heat/tests/test_provider_template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/heat/tests/test_provider_template.py b/heat/tests/test_provider_template.py
index 6df378a27..5e17bd563 100644
--- a/heat/tests/test_provider_template.py
+++ b/heat/tests/test_provider_template.py
@@ -319,7 +319,7 @@ class ProviderTemplateTest(common.HeatTestCase):
output = {'outputs': [{'output_key': 'Foo', 'output_value': None,
'output_error': 'it is all bad'}]}
temp_res._rpc_client.show_stack.return_value = [output]
- self.assertRaises(exception.InvalidTemplateAttribute,
+ self.assertRaises(exception.TemplateOutputError,
temp_res.FnGetAtt, 'Foo')
def test_properties_normal(self):