heat/heat/tests
Zane Bitter 3ea0562048 Lazily cache parsed value of list/json parameters
Parsing the value of JSON parameters at the time we create them (or
update the default value) results in exceptions occurring while creating
the Stack object, that are then not caught and transformed. The result
is an HTTP 500 Internal Error reported by the API, with an unhelpful
error message.

By not parsing the JSON until it is needed, we ensure that any errors
will occur during validation, where errors are appropriately transformed
(to StackValidationFailed) and annotated with the necessary information
to help the user determine the source.

Change-Id: I70e341c344d6254173ad4519276626230087263a
Story: 2007957
Task: 40443
(cherry picked from commit b603470a12)
(cherry picked from commit 4aafceb379)
2020-09-08 13:58:48 -04:00
..
api Fix lower-constraints tox env to use proper constraints 2019-04-10 09:11:56 +05:30
autoscaling Use never expiring alarm_url for resource attributes 2020-06-25 11:46:04 +05:30
aws Don't store signal_url for ec2 signaling of deployments 2020-06-25 11:45:49 +05:30
clients Check task_state of instance before volume actions 2020-04-26 07:33:11 +00:00
cmd Add heat-status upgrade check command framework 2018-10-22 14:19:36 +00:00
constraints Fix allowed address pair validation 2019-05-15 13:06:36 +02:00
convergence Unit tests: Avoid deprecation warning for getargspec() 2018-10-08 11:41:36 -04:00
db Don't use wrap_db_retry on subtransaction in resource_create_replacement() 2019-10-18 15:30:01 +00:00
engine Don't store signal_url for ec2 signaling of deployments 2020-06-25 11:45:49 +05:30
openstack Merge "Allow scale-down of ASG as part of update" into stable/train 2020-07-23 19:40:07 +00:00
policy Remove CloudWatch API 2018-01-28 09:11:17 +05:30
templates
__init__.py Destroy mox forever 2018-07-05 14:46:21 -04:00
common.py Destroy mox forever 2018-07-05 14:46:21 -04:00
fakes.py Don't use 'assert' keyword in unit tests 2019-06-12 13:06:38 -04:00
generic_resource.py Rename mox_resource_id to mock_resource_id 2018-08-27 17:50:19 +02:00
test_attributes.py Revert "Support attributes with dynamic scheme" 2017-06-26 14:39:11 -04:00
test_auth_password.py Don't use 'assert' keyword in unit tests 2019-06-12 13:06:38 -04:00
test_auth_url.py Fall back to www_authenthicate_uri 2018-11-28 15:34:09 +01:00
test_common_auth_plugin.py Add tools to get keystone auth plugin 2019-03-12 18:15:07 +08:00
test_common_context.py Fix lower-constraints tox env to use proper constraints 2019-04-10 09:11:56 +05:30
test_common_env_util.py Handle zero values when merging environments 2017-03-02 22:03:20 +01:00
test_common_exception.py
test_common_param_utils.py
test_common_policy.py Remove mox from test_common_policy 2018-03-01 17:14:41 +01:00
test_common_serializers.py
test_common_service_utils.py Show an engine as down if service record is not updated twice 2019-07-24 03:16:57 +00:00
test_constraints.py Handle unicode in constraints 2019-01-29 19:21:28 +13:00
test_convg_stack.py Improve best existing resource selection 2019-01-29 16:47:33 +13:00
test_crypt.py Fix error for invalid auth_encryption_key 2017-08-16 14:30:47 +05:30
test_dbinstance.py Remove unnecessary setUp and tearDown 2016-09-30 10:56:31 +08:00
test_empty_stack.py
test_engine_api_utils.py Eager load resource_properties_data in resource 2017-07-31 21:13:49 -04:00
test_engine_service.py Merge "Try deleting stack if not soft deleted yet" 2018-11-21 17:20:45 +00:00
test_environment.py Use correct raw string format 2017-11-16 18:23:58 -05:00
test_environment_format.py Add new environment section for merge strategies 2016-08-19 08:54:30 +05:30
test_event.py Remove mox from test_event 2018-04-03 08:07:31 +05:30
test_exception.py Improve StackValidationFailed exception 2017-06-29 09:40:54 +05:30
test_fault_middleware.py Use correct raw string format 2017-11-16 18:23:58 -05:00
test_function.py Allow paths as lists in function.validate() 2017-11-16 14:18:11 -05:00
test_grouputils.py Eliminate nested stack loading in InstanceGroup/ASG scaling 2018-01-19 15:40:37 -05:00
test_hacking.py Correct mistaken parameters of test_hacking.py in tests 2016-08-19 10:07:22 +08:00
test_hot.py Remove mox from test_hot 2018-04-03 08:07:31 +05:30
test_identifier.py Revert "Revert "Enable heat to use uwsgi with devstack"" 2017-07-07 11:00:04 +05:30
test_lifecycle_plugin_utils.py Remove mox from test_lifecycle_plugin_utils 2018-04-03 08:07:31 +05:30
test_loguserdata.py
test_metadata_refresh.py Don't store signal_url for ec2 signaling of deployments 2020-06-25 11:45:49 +05:30
test_nested_stack.py Use StackDefinition in intrinsic functions for resolving data 2017-07-21 10:30:34 -04:00
test_noauth.py Don't use 'assert' keyword in unit tests 2019-06-12 13:06:38 -04:00
test_nokey.py Change NovaClientPlugin to use MicroversionMixin 2018-06-29 09:37:44 +05:30
test_notifications.py Restore timezone information in API response 2016-09-07 23:29:50 +02:00
test_parameters.py Lazily cache parsed value of list/json parameters 2020-09-08 13:58:48 -04:00
test_plugin_loader.py
test_properties.py Don't depend on string interning 2018-06-14 14:55:49 -04:00
test_properties_group.py Initial PropertiesGroup implementation 2016-11-07 14:29:17 +03:00
test_provider_template.py Remove mox from test_provider_template 2018-04-03 08:07:31 +05:30
test_resource.py Merge "Unit tests: Fix mock errors with too few side effects" 2018-09-04 17:18:27 +00:00
test_resource_properties_data.py Store resource attributes in the DB 2017-06-21 20:18:46 -04:00
test_rpc_client.py Option for retrieving child templates and env files from swift 2018-07-26 09:50:51 +05:30
test_rpc_listener_client.py
test_rpc_worker_client.py Convergence: Cancel message 2016-07-05 07:52:03 +00:00
test_rsrc_defn.py Cache names of required resources in ResourceDefinition 2017-07-21 10:44:51 -04:00
test_server_tags.py Change NovaClientPlugin to use MicroversionMixin 2018-06-29 09:37:44 +05:30
test_short_id.py Less unicode weirdness in short_id 2017-05-01 16:44:59 -04:00
test_signal.py Don't store signal_url for ec2 signaling of deployments 2020-06-25 11:45:49 +05:30
test_stack.py Merge "Refactor deferral of stack state persistence" 2018-08-09 12:56:24 +00:00
test_stack_collect_attributes.py Cache dep_attrs for all resources in definitions 2017-07-21 10:44:51 -04:00
test_stack_delete.py delete_trust failure will not block a stack delete 2018-07-02 17:54:55 +00:00
test_stack_lock.py Don't always eagerly load the raw_template for a stack 2016-10-04 08:25:01 -04:00
test_stack_resource.py Remove mox from test_stack_resource 2018-03-06 17:18:36 -05:00
test_stack_update.py Rename mox_resource_id to mock_resource_id 2018-08-27 17:50:19 +02:00
test_stack_user.py Remove mox from test_stack_user 2018-04-03 08:07:31 +05:30
test_support.py
test_template.py Change NovaClientPlugin to use MicroversionMixin 2018-06-29 09:37:44 +05:30
test_template_files.py del _session(), use context.session directly 2016-06-22 10:45:04 +12:00
test_template_format.py Use correct raw string format 2017-11-16 18:23:58 -05:00
test_timeutils.py Get rid of timeutils.round_to_seconds() 2017-05-04 20:41:34 -04:00
test_translation_rule.py Ignore RESOLVE translation errors when translating before_props 2018-07-30 14:15:52 +05:30
test_urlfetch.py Remove mox from test_urlfetch 2018-04-03 08:07:31 +05:30
test_validate.py Handle unicode in constraints 2019-01-29 19:21:28 +13:00
test_version.py
test_vpc.py Unit tests: Fix mock errors with too few side effects 2018-08-10 17:25:13 -04:00
testing-overview.txt Trivial: Update pypi url to new url 2018-08-31 04:07:35 +00:00
utils.py Remove mox usage from test_heat_client 2018-07-05 17:16:04 +08:00