Return HTTPBadRequest error from API for immutable parameters
Return HTTPBadRequest error from API instead of
HTTPInternalServerError when immutable parameters are modified.
Change-Id: I37ff6dd7295292b8cd08a7a5085590b654a7e4f2
diff --git a/functional/test_immutable_parameters.py b/functional/test_immutable_parameters.py
index b8c498d..d223b14 100644
--- a/functional/test_immutable_parameters.py
+++ b/functional/test_immutable_parameters.py
@@ -126,7 +126,7 @@
stack_identifier,
template=immutable_true,
parameters=update_parameters)
- except heat_exceptions.HTTPInternalServerError as exc:
+ except heat_exceptions.HTTPBadRequest as exc:
exp = ('The following parameters are immutable and may not be '
'updated: param1')
self.assertIn(exp, str(exc))