Set a small max_template_size for test_long_yaml

Currently this test takes 22 seconds to run. As the intent
of the test seems to be to assert that limits are enforced,
this change reduces the default limit to speed test execution time.

Change-Id: Ie12c53b832c993711c2187004d015b65045da901
Fixes-Bug: #1221478
This commit is contained in:
Steve Baker 2013-09-06 11:39:43 +12:00
parent af238fbd08
commit 6d1a3db495

View File

@ -94,6 +94,7 @@ Outputs: {}
def test_long_yaml(self):
template = {'HeatTemplateVersion': '2012-12-12'}
config.cfg.CONF.set_override('max_template_size', 1024)
template['Resources'] = ['a'] * (config.cfg.CONF.max_template_size / 3)
limit = config.cfg.CONF.max_template_size
long_yaml = yaml.safe_dump(template)