Merge "Set a small max_template_size for test_long_yaml"

This commit is contained in:
Jenkins 2013-09-07 20:52:13 +00:00 committed by Gerrit Code Review
commit 20a8a08333

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)