deb-heat/heat/tests/templates
huangtianhua ae5647f8d5 "version" section should be required in template
"HeatTemplateFormatVersion" as default while a template missing version
section now in heat. But then the server can't parse the template in right
way, not translate hot format to cfn. Some errors raised such as:
  Error : At least one Resources member must be defined.
  but "resources" section has one resource.
  Error: The Parameter (image_id) was not defined in template.
  but "image_id" was defined in "parameter" section.

So if we cannot determine the template version, we should raise an
exception. This patch will check whether version section is in template,
if not we should raise exception.

Change-Id: Idc2ba2b9ae099d4509dfd81914aa9bb8bd3bfefb
Closes-Bug: #1267735
2014-01-24 09:47:55 +08:00
..
Neutron.template "version" section should be required in template 2014-01-24 09:47:55 +08:00
Neutron.yaml Rename Quantum to Neutron 2013-08-06 22:08:27 -07:00
README Clarify text in heat/tests/templates/README 2013-07-29 04:53:57 +00:00
WordPress_Single_Instance.template tests : convert test_template_format to test-local templates 2013-05-08 12:39:47 +01:00
WordPress_Single_Instance.yaml tests : convert test_template_format to test-local templates 2013-05-08 12:39:47 +01:00

These templates are required by test_template_format and test_provider_template
in situations where we don't want to use a minimal template snippet. Ideally we
want to test the maximum possible syntax to prove the format conversion works.

In general, tests should not depend on these templates, inline minimal
template snippets are preferred.