heat/heat/tests
Steve Baker ca32acbece Switch total_resources to use stack_count_total_resources
This change uses database queries to count the total number of
resources in a nested stack tree instead of loading every stack
and every resource in that stack.

This should result in a significant improvement in memory use
for stacks with many nested stacks and resources.

Closes-Bug: #1455589
Change-Id: I8c2f1fa9114dbf68ad4a5f99dd3929b6958b5d7a
2015-06-02 12:04:12 +12:00
..
autoscaling Retain references to stacks in all unit tests 2015-05-14 16:55:12 -04:00
aws Merge "Remove TaskRunner from Volume resources" 2015-05-27 06:22:21 +00:00
db Count all nested stack resources with DB operations 2015-06-02 12:04:06 +12:00
engine Switch total_resources to use stack_count_total_resources 2015-06-02 12:04:12 +12:00
neutron Move extraroute resource in-tree 2015-05-28 17:33:10 -07:00
nova Use six.iterkeys(x) instead of x.keys() 2015-04-23 17:18:40 +03:00
openstack Merge "Save snapshot to db before stack snapshot complete" 2015-05-29 09:51:49 +00:00
policy Add check_is_admin to common.policy.Enforcer 2013-11-27 22:30:59 +00:00
templates "version" section should be required in template 2014-01-24 09:47:55 +08:00
__init__.py Make import of oslo libraries namespaceless 2015-02-18 22:54:10 +01:00
common.py Disable cloud-watch-lite by default 2015-05-31 17:36:13 +08:00
fakes.py Fix some new PEP8 errors found at gate 2015-03-24 11:13:50 +08:00
generic_resource.py Add type field to the resource attributes schema 2015-05-06 00:50:47 -07:00
test_api_aws.py Add additional tests for heat.api.aws package 2015-01-30 17:27:27 +01:00
test_api_cfn_v1.py Add ability to filter stacks by tag 2015-04-16 12:59:40 -05:00
test_api_cloudwatch.py Use six.iterkeys(x) instead of x.keys() 2015-04-23 17:18:40 +03:00
test_api_ec2token.py Merge "Enable SSL for EC2Tokens." 2015-03-26 12:18:50 +00:00
test_api_openstack_v1.py Raise HTTPBadRequest instead of ValueError for API validation 2015-05-27 03:48:44 +00:00
test_api_openstack_v1_util.py Fix [H302] errors in heat/tests 2014-11-26 16:43:56 +03:00
test_api_openstack_v1_views_stacks_view_builder.py Don't import HeatTestCase directly 2014-10-22 14:15:11 +08:00
test_api_openstack_v1_views_views_common.py Don't import HeatTestCase directly 2014-10-22 14:15:11 +08:00
test_attributes.py Catch warnings consistently during tests 2015-05-14 17:35:08 +10:00
test_auth_password.py Make import of oslo libraries namespaceless 2015-02-18 22:54:10 +01:00
test_auth_url.py Fix [H302] errors in heat/common 2014-11-20 15:06:53 +00:00
test_ceilometer_alarm.py Retain references to stacks in all unit tests 2015-05-14 16:55:12 -04:00
test_cinder_client.py Use mock instead of mox in clients test 2015-02-26 09:36:05 -05:00
test_clients.py Novaclient v2 instead of v1_1 2015-04-03 11:24:59 +02:00
test_cloud_config.py Show deprecated warnings when import parser 2015-04-14 17:49:15 +08:00
test_cloudwatch.py Disable cloud-watch-lite by default 2015-05-31 17:36:13 +08:00
test_common_context.py Switch to oslo.policy 2015-05-29 09:01:45 +00:00
test_common_param_utils.py Raise HTTPBadRequest instead of ValueError for API validation 2015-05-27 03:48:44 +00:00
test_common_policy.py Switch to oslo.policy 2015-05-29 09:01:45 +00:00
test_common_serializers.py Replace dict.itervalues/dict.iteritems and use len over filter function 2015-04-23 19:45:36 +05:30
test_common_service_utils.py heat-manage service list 2015-02-02 13:05:46 +05:30
test_constraints.py Catch warnings consistently during tests 2015-05-14 17:35:08 +10:00
test_cw_alarm.py Move heat resources 2015-03-06 11:05:27 +08:00
test_dbinstance.py Show deprecated warnings when import parser 2015-04-14 17:49:15 +08:00
test_dependencies.py fix for retrieving leaf nodes in convergence stack delete 2015-05-05 14:47:02 +05:30
test_empty_stack.py Show deprecated warnings when import parser 2015-04-14 17:49:15 +08:00
test_engine_api_utils.py Expose create time in stack resource list: 2015-05-06 05:17:07 +00:00
test_engine_service.py Switch total_resources to use stack_count_total_resources 2015-06-02 12:04:12 +12:00
test_engine_service_stack_watch.py Catch warnings consistently during tests 2015-05-14 17:35:08 +10:00
test_engine_worker.py Convergence message bus 2015-02-23 12:29:53 +05:30
test_environment.py Should raise error if hook is invalid 2015-05-27 11:26:19 +08:00
test_environment_format.py Encrypt Heat template hidden parameters 2015-05-12 10:50:49 -05:00
test_event.py Show deprecated warnings when import parser 2015-04-14 17:49:15 +08:00
test_exception.py Fix some new PEP8 errors found at gate 2015-03-24 11:13:50 +08:00
test_fault_middleware.py Separate message and traceback even if not a remote error 2015-03-16 11:16:38 -05:00
test_function.py Show deprecated warnings when import parser 2015-04-14 17:49:15 +08:00
test_glance_client.py Use mock instead of mox in clients test 2015-02-26 09:36:05 -05:00
test_glance_image.py Merge "Improve StackValidationFailed response in properties" 2015-04-20 03:54:09 +00:00
test_grouputils.py Use six.itervalues(x) instead of x.values() 2015-04-21 09:05:49 +03:00
test_heatclient.py Merge "Don't use scoping information for admin auth" 2015-05-12 13:22:33 +00:00
test_hot.py Reference the parent stack, not parent resource in Stack 2015-05-14 16:55:12 -04:00
test_identifier.py Use HeatTestCase as parent instead of testtools 2015-03-31 15:17:29 +00:00
test_instance_group.py Retain references to stacks in all unit tests 2015-05-14 16:55:12 -04:00
test_instance_group_update_policy.py Novaclient v2 instead of v1_1 2015-04-03 11:24:59 +02:00
test_iso_8601.py Move resource inheritance class to engine/resources 2015-03-10 18:07:46 +08:00
test_lifecycle_plugin_utils.py Enable H904 style checking rule 2015-01-20 11:14:06 +02:00
test_loguserdata.py Enable H305 and H307 style checks 2015-01-20 09:47:25 +02:00
test_metadata_refresh.py Catch warnings consistently during tests 2015-05-14 17:35:08 +10:00
test_multi_part.py Show deprecated warnings when import parser 2015-04-14 17:49:15 +08:00
test_nested_stack.py Switch total_resources to use stack_count_total_resources 2015-06-02 12:04:12 +12:00
test_nokey.py Novaclient v2 instead of v1_1 2015-04-03 11:24:59 +02:00
test_notifications.py Make import of oslo libraries namespaceless 2015-02-18 22:54:10 +01:00
test_nova_client.py Remove deprecated nova_utils 2015-05-26 13:32:26 +03:00
test_nova_floatingip.py Stop monkey-patching global namespace 2015-05-28 13:05:15 +00:00
test_nova_keypair.py Retain references to stacks in all unit tests 2015-05-14 16:55:12 -04:00
test_nova_servergroup.py Retain references to stacks in all unit tests 2015-05-14 16:55:12 -04:00
test_os_database.py Retain references to stacks in all unit tests 2015-05-14 16:55:12 -04:00
test_parameters.py Use HeatTestCase as parent instead of testtools 2015-03-31 15:17:29 +00:00
test_plugin_loader.py Use HeatTestCase as parent instead of testtools 2015-03-31 15:17:29 +00:00
test_plugin_manager.py Don't import HeatTestCase directly 2014-10-22 14:15:11 +08:00
test_properties.py Retain references to stacks in all unit tests 2015-05-14 16:55:12 -04:00
test_provider_template.py Retain references to stacks in all unit tests 2015-05-14 16:55:12 -04:00
test_random_string.py Merge "Improve StackValidationFailed response in properties" 2015-04-20 03:54:09 +00:00
test_remote_stack.py Delete deprecated old-style client access 2015-05-27 11:20:59 +03:00
test_resource.py Removes deprecated metadata property from Resource class 2015-05-28 17:55:44 +05:30
test_resource_group.py Fix wrong type of exception raised 2015-04-22 07:08:17 -07:00
test_restarter.py Stop monkey-patching global namespace 2015-05-28 13:05:15 +00:00
test_rpc_client.py Support to generate hot template based on resource type 2015-04-28 16:14:52 +08:00
test_rpc_worker_client.py Remove return for rpc casts in rpc worker client 2015-03-24 23:17:19 +05:30
test_rsrc_defn.py Enable H305 and H307 style checks 2015-01-20 09:47:25 +02:00
test_sahara_client.py Add sahara image constraint 2015-02-26 06:39:24 -05:00
test_sahara_cluster.py Retain references to stacks in all unit tests 2015-05-14 16:55:12 -04:00
test_sahara_templates.py Retain references to stacks in all unit tests 2015-05-14 16:55:12 -04:00
test_scaling_template.py Change instances of x.next() to next(x) 2015-04-24 11:49:36 +05:30
test_scheduler.py Change instances of x.next() to next(x) 2015-04-24 11:49:36 +05:30
test_server.py Simplify handle_check in Nova server 2015-05-29 22:35:43 +03:00
test_server_tags.py Retain references to stacks in all unit tests 2015-05-14 16:55:12 -04:00
test_short_id.py Use HeatTestCase as parent instead of testtools 2015-03-31 15:17:29 +00:00
test_signal.py Don't create events when signals don't perform an action 2015-05-06 11:28:44 +10:00
test_software_component.py Improve StackValidationFailed response in properties 2015-04-10 15:42:21 +03:00
test_software_config.py Show deprecated warnings when import parser 2015-04-14 17:49:15 +08:00
test_software_deployment.py Stop monkey-patching global namespace 2015-05-28 13:05:15 +00:00
test_ssl_middleware.py Make import of oslo libraries namespaceless 2015-02-18 22:54:10 +01:00
test_stack.py Switch total_resources to use stack_count_total_resources 2015-06-02 12:04:12 +12:00
test_stack_collect_attributes.py Use six.itervalues(x) instead of x.values() 2015-04-21 09:05:49 +03:00
test_stack_delete.py Fix logging during delete stack 2015-04-28 07:50:13 +00:00
test_stack_lock.py Pass stack id to init stacklock 2015-04-21 13:40:47 +08:00
test_stack_resource.py Switch total_resources to use stack_count_total_resources 2015-06-02 12:04:12 +12:00
test_stack_update.py Save updated-in-place resources to backup stack 2015-05-07 11:16:17 +03:00
test_stack_user.py Retain references to stacks in all unit tests 2015-05-14 16:55:12 -04:00
test_structured_config.py Rename OS::Heat::StructuredDeployments 2015-05-26 14:59:33 +02:00
test_support.py Check all available support statuses 2015-03-17 12:47:20 +00:00
test_swift.py Retain references to stacks in all unit tests 2015-05-14 16:55:12 -04:00
test_swift_client.py Deployment signal_transport: TEMP_URL_SIGNAL 2015-02-25 13:48:52 +13:00
test_swiftsignal.py Fix call to ignore_not_found() in SwiftSignal 2015-05-06 13:55:17 -05:00
test_template.py Remove deprecated resolve_runtime_data 2015-05-22 22:46:10 +03:00
test_template_format.py Use six.iterkeys(x) instead of x.keys() 2015-04-23 17:18:40 +03:00
test_timeutils.py Make all assertEqual() calls conform to convention 2014-12-03 19:07:26 +08:00
test_trove_cluster.py Improve StackValidationFailed response in properties 2015-04-10 15:42:21 +03:00
test_urlfetch.py Make import of oslo libraries namespaceless 2015-02-18 22:54:10 +01:00
test_validate.py Add validation for parameter_groups 2015-05-18 18:46:56 +05:30
test_version_negotiation_middleware.py Enable H904 style checking rule 2015-01-20 11:14:06 +02:00
test_volume_utils.py Novaclient v2 instead of v1_1 2015-04-03 11:24:59 +02:00
test_vpc.py Show deprecated warnings when import parser 2015-04-14 17:49:15 +08:00
test_watch.py Heat could not create samples with Ceilometer 2015-05-28 22:18:35 +08:00
test_wsgi.py Make import of oslo libraries namespaceless 2015-02-18 22:54:10 +01:00
test_zaqar_client.py Move zaqar client into main tree 2015-05-27 14:51:28 +02:00
testing-overview.txt Update testing-overview.txt 2014-12-15 10:55:09 +02:00
utils.py Pass the environment into the Template class and not Stack 2015-03-18 10:29:55 +10:00