diff options
author | Zane Bitter <zbitter@redhat.com> | 2015-09-10 10:58:52 -0400 |
---|---|---|
committer | Steven Hardy <shardy@redhat.com> | 2015-09-11 15:04:23 +0100 |
commit | ab78bde75bb6aae2025815abd4613d8dabbbd4df (patch) | |
tree | a3430c77e99af94de48e955748b7372ff0e34370 /heat/tests/common.py | |
parent | e7b89a485fad71786f153a11415a68e12a3aa334 (diff) | |
download | heat-ab78bde75bb6aae2025815abd4613d8dabbbd4df.tar.gz |
Work around problems storing huge properties in events
There is a maximum limit on the size of the resource properties we can
store for an event in MySQL.
To work around this, store an error instead of the largest property,
as this is expected to cater for graceful-failure of the most common
known case (large SoftwareConfig config properties), with a fallback
of storing only the error when this also fails.
Co-Authored-By: Steven Hardy <shardy@redhat.com>
Co-Authored-By: Marios Andreou <marios@redhat.com>
Closes-Bug: #1493858
Change-Id: I668c7ed8ca6c063fd20bc5271d6afea941a5f277
Diffstat (limited to 'heat/tests/common.py')
-rw-r--r-- | heat/tests/common.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/heat/tests/common.py b/heat/tests/common.py index 70cf48386..a80dabe26 100644 --- a/heat/tests/common.py +++ b/heat/tests/common.py @@ -152,6 +152,9 @@ class HeatTestCase(testscenarios.WithScenarios, resource._register_class('ResourceWithRequiredProps', generic_rsrc.ResourceWithRequiredProps) resource._register_class( + 'ResourceWithMultipleRequiredProps', + generic_rsrc.ResourceWithMultipleRequiredProps) + resource._register_class( 'ResourceWithRequiredPropsAndEmptyAttrs', generic_rsrc.ResourceWithRequiredPropsAndEmptyAttrs) resource._register_class('ResourceWithPropsAndAttrs', |