]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
heat engine : Add metadata validation to WaitConditionHandle
authorSteven Hardy <shardy@redhat.com>
Fri, 11 Jan 2013 13:43:52 +0000 (13:43 +0000)
committerSteven Hardy <shardy@redhat.com>
Mon, 14 Jan 2013 18:09:59 +0000 (18:09 +0000)
commitd02a9319b5d6268229042f0d41a8804af1980c0e
tree7c68ef9dc7d1a49a189346cb5f0f38834e612a0d
parent25f20dc848bbf9b1508039a48bebddcf62696512
heat engine : Add metadata validation to WaitConditionHandle

Validate metadata before updating the WaitConditionHandle resource
metadata, if we raise a ValueError in response to incorrectly
formatted metadata then the CFN API will map this to a
HeatInvalidParameterValueError, resulting in a descriptive error
response to the malformed request

Change-Id: I6fde27066e9e0eaee97b59a7fbbace09ca620b48
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat/engine/resources/wait_condition.py
heat/tests/test_waitcondition.py