heat/heat/tests
Zane Bitter ce120bfda8 Avoid loading nested stack in some grouputils functions
We want to avoid loading a nested stack in memory wherever possible, since
that is known to cause memory high-water-mark issues. The grouputils
functions are among the worst offenders at doing this. Some of the data
that they return is easily obtained from an RPC call to
list_stack_resources, so swap out the implementations using nested().

Rather than simply add more utility functions, a GroupInspector class is
created that can cache the data returned. In future this will allow groups
that need to access multiple functions from the grouputils to do so without
making multiple RPC calls. (Previously, the data was cached in the group's
nested Stack.)

Change-Id: Icd35d91bce30ee36d9592b0516767ef273a9f34d
Partial-Bug: #1731349
2018-01-08 18:19:10 -05:00
..
api [policy in code] part 6(cfn, cloudwatch) 2017-12-13 10:58:47 +08:00
autoscaling Raise NotFound() when group member does not exist 2017-10-13 12:19:15 +05:30
aws Ensure the whole ResourceDefinition is validated 2017-11-16 18:17:23 -05:00
clients Merge "Use correct raw string format" 2018-01-05 16:05:57 +00:00
constraints Remove broken heat.resource_type custom constraint 2017-08-01 13:35:16 -04:00
convergence Add converge flag in stack update for observing on reality 2017-08-07 05:39:29 +00:00
db Fix logic error in sqlarchemy api 2017-11-08 15:26:58 +11:00
engine Merge "Use correct raw string format" 2018-01-05 16:05:57 +00:00
openstack Avoid loading nested stack in some grouputils functions 2018-01-08 18:19:10 -05:00
policy [policy in code] part3 (resource types) 2017-12-01 01:34:55 +08:00
templates
__init__.py Switch to mox3 2015-10-02 13:05:51 +05:30
common.py Move FakeKeystoneClient to engine.clients 2017-10-24 11:45:31 -04:00
fakes.py Move FakeKeystoneClient to engine.clients 2017-10-24 11:45:31 -04:00
generic_resource.py Remove the existing snapshots from the backend 2017-09-14 10:16:01 +08:00
test_attributes.py Revert "Support attributes with dynamic scheme" 2017-06-26 14:39:11 -04:00
test_auth_password.py Make standalone heat work with keystone v3 2017-07-17 02:59:03 +00:00
test_auth_url.py Use keystone session in endpoint_utils 2016-09-06 09:48:59 +05:30
test_common_context.py Make standalone heat work with keystone v3 2017-07-17 02:59:03 +00:00
test_common_env_util.py Handle zero values when merging environments 2017-03-02 22:03:20 +01:00
test_common_exception.py Adds error_code in heat exceptions 2015-11-05 18:10:50 +05:30
test_common_param_utils.py
test_common_policy.py [policy in code] part 6(cfn, cloudwatch) 2017-12-13 10:58:47 +08:00
test_common_serializers.py
test_common_service_utils.py datetime.datetime.utcnow() should be replaced 2015-11-10 17:24:51 +00:00
test_constraints.py Add a modulo core constraint 2016-10-11 16:55:11 +02:00
test_convg_stack.py Don't use Dependencies repr in tests 2017-09-26 16:46:17 -04: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 Fix reset_stack_status 2017-12-01 17:15:55 +01:00
test_engine_service_stack_watch.py Fix [H405] pep rule in heat/tests 2015-10-12 14:08:16 +03: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 Eager load resource_properties_data in resource 2017-07-31 21:13:49 -04:00
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 Avoid loading nested stack in some grouputils functions 2018-01-08 18:19:10 -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 Merge "Allow paths as lists in function.validate()" 2018-01-08 08:07:49 +00:00
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 Use more specific asserts in tests 2016-11-22 08:12:35 +01:00
test_loguserdata.py Remove spurious logs from test_loguserdata 2015-10-29 17:12:34 +01:00
test_metadata_refresh.py Only check service availability during validation 2017-08-01 11:47:14 -04:00
test_nested_stack.py Use StackDefinition in intrinsic functions for resolving data 2017-07-21 10:30:34 -04:00
test_noauth.py Add noauth middleware 2016-10-13 11:49:19 -04:00
test_nokey.py Unit tests: Don't use ResourceDefinition as cfn snippet 2016-05-01 19:42:20 -05:00
test_notifications.py Restore timezone information in API response 2016-09-07 23:29:50 +02:00
test_parameters.py Catch type errors when casting to int 2017-06-16 14:39:56 +02:00
test_plugin_loader.py
test_properties.py Use correct raw string format 2017-11-16 18:23:58 -05:00
test_properties_group.py Initial PropertiesGroup implementation 2016-11-07 14:29:17 +03:00
test_provider_template.py Avoid always loading nested stack on update 2018-01-08 18:19:10 -05:00
test_resource.py Protect prepare_update_replace() with resource lock 2017-12-08 11:52:20 +05:30
test_resource_properties_data.py Store resource attributes in the DB 2017-06-21 20:18:46 -04:00
test_rpc_client.py Merge "Use exception_filter in RPC client" 2017-03-29 13:46:53 +00:00
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 Unit tests: Don't use ResourceDefinition as cfn snippet 2016-05-01 19:42:20 -05:00
test_short_id.py Less unicode weirdness in short_id 2017-05-01 16:44:59 -04:00
test_signal.py Move FakeKeystoneClient to engine.clients 2017-10-24 11:45:31 -04:00
test_stack.py Merge "Use correct raw string format" 2018-01-05 16:05:57 +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 Move FakeKeystoneClient to engine.clients 2017-10-24 11:45:31 -04: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 Use appropriate exception in StackResource.get_output() 2017-12-19 16:36:43 -05:00
test_stack_update.py Rollback stack with correct tags 2017-08-14 17:59:10 +08:00
test_stack_user.py Move FakeKeystoneClient to engine.clients 2017-10-24 11:45:31 -04:00
test_support.py
test_template.py Merge "Strip disabled resources from depends_on in add_resource()" 2017-08-28 19:13:59 +00:00
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 Enable to specify network for Trove Cluster 2017-12-15 11:52:49 +00:00
test_urlfetch.py Remove usage of parameter enforce_type 2017-05-08 17:55:32 +08:00
test_validate.py Ensure the whole ResourceDefinition is validated 2017-11-16 18:17:23 -05:00
test_version.py
test_vpc.py Fix is_using_neutron 2016-07-27 22:11:58 +05:30
test_watch.py Use more specific asserts in tests 2016-11-22 08:12:35 +01:00
testing-overview.txt
utils.py Create replacement resource atomically 2017-11-03 09:14:46 +05:30