]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Allow a Provider with a known facade its own schema
authorZane Bitter <zbitter@redhat.com>
Fri, 23 Aug 2013 13:56:41 +0000 (15:56 +0200)
committerZane Bitter <zbitter@redhat.com>
Fri, 23 Aug 2013 13:58:34 +0000 (15:58 +0200)
commit26488c8b2e16d097ae070d6d01078dff624e5c98
tree1292885a33c436a5d781d31ff9b19f95c275c3a7
parent1c20d351b1c0765f300e1578abc1fd9af6a6a036
Allow a Provider with a known facade its own schema

Allow a TemplateResource behind the facade of a known plugin to supply a
different schema to the facade resource. However, check during validation
that the two are basically compatible. The provider template must:

- Define parameters for all *required* properties of the facade.
- Define parameters that map to the same types as the facade properties.
- Not have *required* parameters that do not exist in the facade.
- Define outputs for all attributes of the facade.

Change-Id: Ie40ecbb43d3d6749266f2cb6d723c8537fcc23dd
heat/engine/properties.py
heat/engine/resources/template_resource.py
heat/tests/test_provider_template.py