From: Steve Baker Date: Thu, 5 Sep 2013 23:39:43 +0000 (+1200) Subject: Set a small max_template_size for test_long_yaml X-Git-Tag: 2014.1~55^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=6d1a3db495b0d2a369dcbcc2e4a461aecfa0e768;p=openstack-build%2Fheat-build.git 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 --- diff --git a/heat/tests/test_template_format.py b/heat/tests/test_template_format.py index 6128a9b0..2dd2a676 100644 --- a/heat/tests/test_template_format.py +++ b/heat/tests/test_template_format.py @@ -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)