heat/heat/engine
Jay Dobies 4fdf72b000 Make template available to parameter constraint checking
The validate method for a constraint only accepts the value being
verified. This is sufficient for most data checks (range, regex) and the
calls to one of the service clients. But it is limiting in the sense
that it prevents us from ever having constraints that span multiple
parameters (such as ensuring that two values are compatible).

What caused this is the atttempt to add a constraint to ensure a
parameter's value is a valid Heat resource type. To verify this, the
constraint code needs access to the resolved environment. I opted to
pass the entire template down instead to make things more flexible.

The call to the BaseCustomConstraint (which appears to be the entry
point for most plugins) will attempt to use the new signature with the
template, but will fall back to the original call for backward
compatibility.

Change-Id: I5dc94c964b35578e84da641278a4175a37038498
2016-06-20 14:30:25 -04:00
..
cfn Get rid of gratuitous use of six.iterkeys() 2016-06-07 03:50:49 +00:00
clients Merge "Add --insecure in CURL if set True in client option" 2016-06-15 04:42:03 +00:00
constraint Add test for performance in constraint validation 2016-02-12 16:05:33 +00:00
hot Merge "Allow deletion_policy to be lowercase in HOT" 2016-06-09 21:13:10 +00:00
notification Remove deprecated list_notifier_drivers option 2015-06-01 16:56:21 +03:00
resources Merge "Deprecate lbaas v1 resources" 2016-06-17 13:07:07 +00:00
__init__.py Do not initialize anything during import phase 2013-04-24 10:03:06 -07:00
api.py Use Event versioned object for event_list formatting 2016-06-13 09:39:52 +12:00
attributes.py Fix unfortunate spelling error 2016-04-04 12:43:16 -04:00
check_resource.py Use the correct action for failure reason 2016-06-15 10:36:30 +05:30
constraints.py Make template available to parameter constraint checking 2016-06-20 14:30:25 -04:00
dependencies.py Fix unfortunate spelling error 2016-04-04 12:43:16 -04:00
environment.py Get rid of gratuitous use of six.iterkeys() 2016-06-07 03:50:49 +00:00
event.py Use Event versioned object for event_list formatting 2016-06-13 09:39:52 +12:00
function.py Make Functions unhashable 2016-02-16 23:43:11 -05:00
lifecycle_plugin.py Fix garbled docstrings 2015-11-10 11:12:36 -05:00
parameter_groups.py Get rid of bogus debug logging in parameter groups 2015-12-04 19:56:56 -05:00
parameters.py Make template available to parameter constraint checking 2016-06-20 14:30:25 -04:00
plugin_manager.py Fix [H405] pep rule in heat/engine 2015-09-21 14:51:46 +03:00
properties.py Make template available to parameter constraint checking 2016-06-20 14:30:25 -04:00
resource.py Make template available to parameter constraint checking 2016-06-20 14:30:25 -04:00
rsrc_defn.py Reinstate deprecation warnings 2016-04-13 19:49:04 -04:00
scheduler.py Allow scheduler tasks to request longer wait periods 2016-05-17 12:29:12 -04:00
service.py Authorize super admin actions on all projects 2016-06-14 22:16:25 +05:30
service_software_config.py Add deployment ID to deploy signal events 2016-05-12 14:50:48 +01:00
service_stack_watch.py Using LOG.warning replace LOG.warn 2015-12-29 09:32:42 +00:00
stack.py Set nested_depth when creating Stack from db 2016-06-14 16:37:08 +12:00
stack_lock.py Move some functions to service_utils 2016-06-01 03:57:04 +00:00
support.py Validate support_status while searching resource registry 2015-08-31 10:01:04 +05:30
sync_point.py Convergence: Throttle to sync point updates 2016-05-31 20:19:40 +05:30
template.py Get rid of gratuitous use of six.iterkeys() 2016-06-07 03:50:49 +00:00
template_files.py De-duplicate raw_template.files 2016-05-25 15:27:27 -04:00
timestamp.py Fix garbled docstrings 2015-11-10 11:12:36 -05:00
translation.py Improve translation properties 2016-06-15 13:06:54 +00:00
update.py Fix unfortunate spelling error 2016-04-04 12:43:16 -04:00
watchrule.py Using LOG.warning replace LOG.warn 2015-12-29 09:32:42 +00:00
worker.py Merge "Convergence: Refactor worker" 2016-05-12 07:13:23 +00:00