Merge "Set a small max_template_size for test_long_yaml"
This commit is contained in:
commit
20a8a08333
@ -94,6 +94,7 @@ Outputs: {}
|
|||||||
|
|
||||||
def test_long_yaml(self):
|
def test_long_yaml(self):
|
||||||
template = {'HeatTemplateVersion': '2012-12-12'}
|
template = {'HeatTemplateVersion': '2012-12-12'}
|
||||||
|
config.cfg.CONF.set_override('max_template_size', 1024)
|
||||||
template['Resources'] = ['a'] * (config.cfg.CONF.max_template_size / 3)
|
template['Resources'] = ['a'] * (config.cfg.CONF.max_template_size / 3)
|
||||||
limit = config.cfg.CONF.max_template_size
|
limit = config.cfg.CONF.max_template_size
|
||||||
long_yaml = yaml.safe_dump(template)
|
long_yaml = yaml.safe_dump(template)
|
||||||
|
Loading…
Reference in New Issue
Block a user