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
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)