]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Set a small max_template_size for test_long_yaml
authorSteve Baker <sbaker@redhat.com>
Thu, 5 Sep 2013 23:39:43 +0000 (11:39 +1200)
committerSteve Baker <sbaker@redhat.com>
Thu, 5 Sep 2013 23:42:36 +0000 (11:42 +1200)
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

heat/tests/test_template_format.py

index 6128a9b039f452b049d51de59600f587bf4663c4..2dd2a6763c0a14e13c8b741db672dbf6f6704ebf 100644 (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)