heat/heat/tests
ricolin 3aeaefc29f Non-destructive upgrade for deprecated resources
If you attempt to update a stack containing
OS::Heat::SoftwareDeployments resources, so it uses the new
non-deprecated OS::Heat::SoftwareDeploymentGroup type instead, it
deletes the group, and all of the deployments.

This means that any deployment "actions" property will be
misinterpreted, e.g if you have actions: CREATE, all the deployments
will re-run on the update, even though it's an update, not a create.

This issue exists on all deprecated resoruces, when we trying to upgrade
to new version of it by update.

This patch fix above update issue by check if resoruce was deprecated
and been update by replacing resource (which is the parent class of
existing resource).

Change-Id: Ib7880120a90c4497a7ceea53eee55c220a28d14e
Closes-Bug: #1528958
2016-09-02 13:09:11 +08:00
..
api Stop using mox.stubs in heat 2016-08-26 09:27:43 +08:00
autoscaling Don't check alarm state when signaled 2016-07-25 05:33:32 +00:00
aws Merge "Begin move of UpdateReplace back to its rightful location" 2016-08-19 22:46:56 +00:00
clients Add action check function to senlin plugin 2016-08-24 12:14:28 +08:00
constraints New common constraint 'Expiration' 2016-08-01 12:43:42 +03:00
convergence Begin move of UpdateReplace back to its rightful location 2016-08-18 12:57:54 -04:00
db Migrate stacks from legacy to convergence engine 2016-08-22 10:40:29 +03:00
engine Merge "Move merge_environment to environment_util module" 2016-08-24 13:11:54 +00:00
openstack Merge "Check action status instead of cluster status for cluster creation" 2016-08-26 13:51:38 +00:00
policy Add resource_type-specific policies 2015-08-25 15:37:26 +03:00
templates Fixes JSON to YAML conversion bug 2015-06-25 07:32:34 -07:00
__init__.py Switch to mox3 2015-10-02 13:05:51 +05:30
common.py Unit tests: add a test resource that takes multiple steps 2016-07-18 16:26:17 -04:00
fakes.py Override client() for RoleAssignment resources 2016-08-18 15:57:26 +00:00
generic_resource.py Unit tests: add a test resource that takes multiple steps 2016-07-18 16:26:17 -04:00
test_attributes.py Do not show HIDDEN props in res type template 2016-07-15 13:26:24 +00:00
test_auth_password.py Use generic auth plugins 2016-06-07 10:45:09 +05:30
test_auth_url.py Merge "Correctly determine keystone v3 endpoint" 2015-08-13 03:37:24 +00:00
test_common_context.py Use oslo.context's from_environ for creating context 2016-06-30 07:34:53 +10:00
test_common_env_util.py Improve deep merge for parameters 2016-08-22 17:35:01 +05:30
test_common_exception.py Adds error_code in heat exceptions 2015-11-05 18:10:50 +05:30
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 Use to_policy_values from context for policy 2016-07-12 13:42:00 +10:00
test_common_serializers.py py34: heat.tests.test_common_serializers 2015-08-26 13:09:04 +05:30
test_common_service_utils.py datetime.datetime.utcnow() should be replaced 2015-11-10 17:24:51 +00:00
test_constraints.py Remove warnings in heat 2016-01-20 22:00:52 +08:00
test_convg_stack.py Migrate stacks from legacy to convergence engine 2016-08-22 10:40:29 +03:00
test_crypt.py Set enforce_type=True on config overrides in tests 2016-04-11 10:52:22 +10:00
test_dbinstance.py Fix [H405] pep rule in heat/tests 2015-10-12 14:08:16 +03:00
test_empty_stack.py Show deprecated warnings when import parser 2015-04-14 17:49:15 +08:00
test_engine_api_utils.py Merge "Fix the definition of has_nested()" 2016-06-30 13:43:47 +00:00
test_engine_service.py Move merge_environment to environment_util module 2016-08-22 13:46:34 +05:30
test_engine_service_stack_watch.py Fix [H405] pep rule in heat/tests 2015-10-12 14:08:16 +03:00
test_environment.py Keep encrypted_param_names environment internal to heat 2016-06-30 18:12:29 +01:00
test_environment_format.py Add new environment section for merge strategies 2016-08-19 08:54:30 +05:30
test_event.py Use Event versioned object for event_list formatting 2016-06-13 09:39:52 +12:00
test_exception.py Produce more meaningful exception messages in nested stacks 2015-06-24 08:52:08 +10:00
test_fault_middleware.py Set enforce_type=True on config overrides in tests 2016-04-11 10:52:22 +10:00
test_function.py Change assertTrue(isinstance()) by optimal assert 2015-11-02 12:23:22 +01:00
test_grouputils.py Move function for member_definitions to grouputil 2015-11-03 09:04:30 +05:30
test_hacking.py Restrict use of iteritems, iterkeys and itervalues 2016-03-23 10:05:54 +00:00
test_hot.py Provides 'if' intrinsic function 2016-08-25 01:14:14 +00:00
test_identifier.py Use assertIn and assertNotIn 2015-10-26 22:40:14 +01:00
test_lifecycle_plugin_utils.py Rename test classes for consistency 2016-02-25 09:27:12 -06:00
test_loguserdata.py Remove spurious logs from test_loguserdata 2015-10-29 17:12:34 +01:00
test_metadata_refresh.py Correct message when extension is not available 2016-06-27 11:09:32 +03:00
test_nested_stack.py Use yaml.safe_load() instead of yaml.load() 2016-02-16 21:37:27 +08:00
test_nokey.py Unit tests: Don't use ResourceDefinition as cfn snippet 2016-05-01 19:42:20 -05:00
test_notifications.py Adds some infos for stack notification 2016-08-05 14:21:57 +08:00
test_parameters.py string parameter type mismatch 2016-05-24 12:44:01 +00:00
test_plugin_loader.py Use HeatTestCase as parent instead of testtools 2015-03-31 15:17:29 +00:00
test_properties.py Check immutable and update_allowed conflict in schema validation 2016-06-21 16:15:37 +00:00
test_provider_template.py Load template files only from their known source 2016-01-18 19:09:24 -05:00
test_resource.py Non-destructive upgrade for deprecated resources 2016-09-02 13:09:11 +08:00
test_rpc_client.py Remove tenant_safe flag from rpc and db api 2016-08-16 12:38:33 +05:30
test_rpc_listener_client.py Move listener rpc client to rpc/listener_client.py 2015-06-19 08:24:19 +05:30
test_rpc_worker_client.py Convergence: Cancel message 2016-07-05 07:52:03 +00:00
test_rsrc_defn.py Add support for a resource level external_id 2016-08-12 15:59:14 +08: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 Port short_id to return unicode 2015-07-09 07:15:49 +00:00
test_signal.py Clean imports in code 2016-08-16 12:44:36 +07:00
test_stack.py Support condition for output 2016-08-25 09:10:33 +08:00
test_stack_collect_attributes.py Decouple hot and cfn for outputs 2016-06-24 10:08:28 +00:00
test_stack_delete.py Be consistent about context first argument in db api 2016-06-22 10:45:04 +12:00
test_stack_lock.py Remove tenant_safe flag from rpc and db api 2016-08-16 12:38:33 +05:30
test_stack_resource.py Begin move of UpdateReplace back to its rightful location 2016-08-18 12:57:54 -04:00
test_stack_update.py Non-destructive upgrade for deprecated resources 2016-09-02 13:09:11 +08:00
test_stack_user.py Move registration of resources to HeatTestCase 2015-06-15 02:43:15 -04:00
test_support.py Replace tag 2015.2 to 5.0.0 2015-08-06 06:29:09 -04:00
test_template.py Merge "Provides 'if' intrinsic function" 2016-08-26 04:51:18 +00:00
test_template_files.py del _session(), use context.session directly 2016-06-22 10:45:04 +12:00
test_template_format.py Get rid of gratuitous use of six.iterkeys() 2016-06-07 03:50:49 +00:00
test_timeutils.py Round the elapsed time to the nearest second 2015-09-09 06:59:56 +00:00
test_translation_rule.py Improve validation for some functions 2016-07-08 08:59:58 +00:00
test_urlfetch.py Set enforce_type=True on config overrides in tests 2016-04-11 10:52:22 +10:00
test_validate.py Merge "Improve validation during template.parse" 2016-07-08 08:36:41 +00:00
test_version.py Coverage: Additional test case for better coverage 2015-06-16 13:01:30 +05:30
test_vpc.py Fix is_using_neutron 2016-07-27 22:11:58 +05:30
test_watch.py Fixup ceilometerclient tests 2016-01-13 14:51:53 +01:00
testing-overview.txt Add alternative way to use debugger for unittets 2015-08-20 16:28:51 +00:00
utils.py Don't use config option sqlite_db 2016-08-17 13:29:43 +08:00