heat/heat_integrationtests/functional
Zane Bitter 3fb8722012 Don't load new copies of current resources
The Stack._find_filtered_resources() method returns Resource objects for
all resources associated with the Stack, regardless of whether they are
current (present in the template; latest version in the case of
convergence). To do this, it previously created a new Resource object
for every resource found in the database.

However, for those resources which *are* current this is unnecessary. We
can access the Resource object simply through self.resources. It turns
out this is necessary for obtaining the required_by list for legacy
stacks, because only the Resources obtained from self.resources also
appear in the Dependencies graph obtained from self.dependencies. The
required_by list is read when listing or showing resources, which would
either return an empty list or fail for legacy stacks.

This patch also makes the Resource.required_by() method more robust in
its error handling.

Change-Id: Id438336e5c88dc7c2d168ba01ee703faa17e8b8e
Closes-Bug: #1703703
Related-Bug: #1523748
(cherry picked from commit 5ce238fb17
                       and 65630d4e8b)
2017-07-19 21:22:29 -04:00
..
__init__.py Functional test UpdateStackTest 2014-10-20 16:31:09 +13:00
functional_base.py Add integration tests for admin actions 2016-06-14 22:39:33 +05:30
test_admin_actions.py Add integration tests for admin actions 2016-06-14 22:39:33 +05:30
test_autoscaling.py m1.tiny is not always there 2016-11-08 05:19:10 +00:00
test_aws_stack.py Remove unused LOG to keep code clean 2016-07-10 11:11:00 +00:00
test_cancel_update.py Don't use hardcoded flavors in tests 2016-12-06 12:14:18 +05:30
test_conditional_exposure.py Don't use hardcoded flavors in tests 2016-12-06 12:14:18 +05:30
test_conditions.py Remove unnecessary setUp and tearDown 2016-09-30 10:56:31 +08:00
test_create_update_neutron_port.py Allow 'mac_address' updatable for neutron port 2016-11-22 18:35:17 +08:00
test_create_update_neutron_subnet.py Resolve all functions before RESOLVE translation 2016-10-05 16:00:14 +05:30
test_create_update.py Copy template version when update fails 2017-05-15 09:27:49 +00:00
test_default_parameters.py Remove unnecessary setUp and tearDown 2016-09-30 10:56:31 +08:00
test_delete.py Increase the timeout for the stop_stack message 2016-09-22 09:45:08 -04:00
test_encrypted_parameter.py Remove unnecessary setUp and tearDown 2016-09-30 10:56:31 +08:00
test_encryption_vol_type.py Add integration tests for admin actions 2016-06-14 22:39:33 +05:30
test_env_merge.py Modify use of assertTrue(A in B) 2016-09-02 08:30:00 +00:00
test_event_sinks.py Use both domain id and name 2016-12-01 12:21:45 +05:30
test_external_ref.py Add support for a resource level external_id 2016-08-12 15:59:14 +08:00
test_heat_autoscaling.py Merge "Functional test for asg cooldown property" 2016-12-02 17:15:21 +00:00
test_hooks.py Use yaml.safe_dump instead of yaml.dump 2016-02-20 07:45:32 +05:30
test_immutable_parameters.py Return HTTPBadRequest error from API for immutable parameters 2016-03-01 21:00:16 -06:00
test_instance_group.py m1.tiny is not always there 2016-11-08 05:19:10 +00:00
test_lbaasv2.py Remove unused LOG to keep code clean 2016-07-10 11:11:00 +00:00
test_notifications.py Heat integration tests failing against https endpoints 2016-03-07 22:16:00 +05:30
test_nova_server_networks.py Add an integration for server using neutron 2016-07-28 13:55:16 +02:00
test_os_wait_condition.py Reduce wait condition signal number 2017-03-16 03:13:21 +00:00
test_preview_update.py Fix update preview to handle nested stacks 2016-02-03 12:34:33 +00:00
test_preview.py Fix stack preview 2016-03-10 18:47:40 +02:00
test_purge.py Remove additional purge test 2016-08-03 10:31:09 +02:00
test_reload_on_sighup.py Make API services with apache the default 2017-01-15 11:53:25 +05:30
test_remote_stack.py Use region from config in functional tests 2016-03-23 18:33:56 +05:30
test_replace_deprecated.py Non-destructive upgrade for deprecated resources 2016-09-02 13:09:11 +08:00
test_resource_chain.py Use more specific asserts in tests 2016-11-22 08:12:35 +01:00
test_resource_group.py Remove unnecessary setUp and tearDown 2016-09-30 10:56:31 +08:00
test_resources_list.py Don't load new copies of current resources 2017-07-19 21:22:29 -04:00
test_snapshot_restore.py Fix handle_restore for server and volume resources 2017-05-25 17:16:12 +05:30
test_software_config.py Set content-type when signaling deployment 2017-01-15 11:53:25 +05:30
test_software_deployment_group.py Add functional test for SDG rolling_update 2016-09-13 00:38:35 +00:00
test_stack_events.py Use more specific asserts in tests 2016-11-22 08:12:35 +01:00
test_stack_outputs.py Add test for stack outputs 2016-01-27 12:34:49 +00:00
test_stack_tags.py Make the stack tags template non-empty 2015-09-14 11:12:20 +10:00
test_swiftsignal_update.py Remove unnecessary setUp and tearDown 2016-09-30 10:56:31 +08:00
test_template_resource.py Remove unnecessary setUp and tearDown 2016-09-30 10:56:31 +08:00
test_template_validate.py Allow nested validation for template-validate 2015-09-22 08:27:28 +01:00
test_templates.py Remove unnecessary setUp and tearDown 2016-09-30 10:56:31 +08:00
test_unicode_template.py Remove unnecessary setUp and tearDown 2016-09-30 10:56:31 +08:00
test_update_restricted.py Fix another test race in test_update_restricted 2016-06-30 13:51:01 +02:00
test_validation.py Add config entries to skip integration tests 2015-08-07 07:29:20 +00:00
test_waitcondition.py Add test for zaqar-based wait conditions 2016-02-09 10:19:36 +01:00