heat/heat/tests
huangtianhua 163d46bdc8 Fix prepare_for_replace/restore_prev_rsrc handing for server
Now, we set 'fixed_ips' to [] for server ports when prepare
for server replacement, but the ports are still in-use if only
set 'fixed_ips' to []. So this patch will to detach the ports from
nova server to make sure same ports can be attached to new one in
prepare_for_replace(). Also, when restoring server, we need to detach
ports from existing server, and then to attach them to previous
server.

We check the interface attach/detach complete by list the
server.interfaces, this change will use 'retry' wrapper to re-poll
the server interfaces for several times (by new config option
'max_interface_check_attempts', default is 10), then will raise
exception if the attach/detach still not complete.

Closes-Bug: #1533076
Change-Id: I7b322f9cf16c100dcd0365bc3091c289f00f0548
2016-03-11 14:52:51 +08:00
..
api Merge "Fix for resource search with invalid filter keys" 2016-03-09 12:46:11 +00:00
autoscaling Remove unused stuff in test_launch_config.py 2016-03-09 10:26:18 +08:00
aws Fix AWS::EC2::SecurityGroup update problem 2016-03-10 02:17:50 +00:00
clients Get watch_url via get_heat_cfn_url 2016-03-09 08:21:56 -05:00
constraints move ceilometer constraints to common constraint 2015-08-03 13:18:31 +08:00
convergence Add function tests for event sinks 2016-02-22 09:41:13 +00:00
db Merge "Optimize nested stack status check" 2016-03-06 05:01:38 +00:00
engine Modify the message of ERROR in stack_cancel_update() 2016-03-10 12:40:44 +08:00
openstack Fix prepare_for_replace/restore_prev_rsrc handing for server 2016-03-11 14:52:51 +08: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 Re-add str_replace parameter validation, and fix test 2016-02-29 18:06:15 +00:00
fakes.py Populate context roles when using stored context 2016-01-07 11:59:13 +08:00
generic_resource.py Re-add str_replace parameter validation, and fix test 2016-02-29 18:06:15 +00:00
test_attributes.py Support attributes with dynamic scheme 2015-08-10 12:17:01 +03:00
test_auth_password.py Use user_domain for password auth_plugin 2016-01-05 12:19:59 +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.config fixture to avoid gate break 2016-02-19 20:03:31 -05:00
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 oslo.config fixture to avoid gate break 2016-02-19 20:03:31 -05: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 Convergence: Consider resources from old template 2016-02-09 17:49:50 +05:30
test_crypt.py Rename test classes for consistency 2016-02-25 09:27:12 -06: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 "RPC API: Define correct constants for resource data" 2016-01-27 18:48:53 +00:00
test_engine_service_stack_watch.py Fix [H405] pep rule in heat/tests 2015-10-12 14:08:16 +03:00
test_engine_service.py Hook into environment merging on server 2016-02-12 10:48:54 -05:00
test_environment_format.py Event transport 2016-01-05 10:22:57 +01:00
test_environment.py Merge "Add post hooks" 2016-02-22 03:49:44 +00:00
test_event.py Do not try to save event resource if too big for db column 2016-03-02 18:05:45 -05:00
test_exception.py Produce more meaningful exception messages in nested stacks 2015-06-24 08:52:08 +10:00
test_fault_middleware.py Use EntityNotFound instead of StackNotFound. 2015-11-19 14:51:22 +08: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_hot.py Refactor validation of arguments to 'repeat' intrinsic function 2016-03-09 17:05:07 -05: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 Rename test classes for consistency 2016-02-25 09:27:12 -06:00
test_nested_stack.py Use yaml.safe_load() instead of yaml.load() 2016-02-16 21:37:27 +08:00
test_nokey.py Use custom find functions for image lookup 2016-01-27 09:56:01 +05:30
test_notifications.py Use user id instead of user name in notification body 2015-12-07 08:25:04 -06:00
test_parameters.py Raise StackValidationFailed on parameter validation 2015-10-31 08:01:52 +00:00
test_plugin_loader.py Use HeatTestCase as parent instead of testtools 2015-03-31 15:17:29 +00:00
test_properties.py Refactor property translation rule(2/2) 2016-02-09 10:30:13 +05:30
test_provider_template.py Load template files only from their known source 2016-01-18 19:09:24 -05:00
test_resource.py Don't RESOLVE translate in resource init 2016-03-10 19:17:17 +05:30
test_rpc_client.py Merge "Use oslo.utils.reflection to extract class name" 2016-03-06 05:01:48 +00:00
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 Remove return for rpc casts in rpc worker client 2015-03-24 23:17:19 +05:30
test_rsrc_defn.py Remove warnings in heat 2016-01-20 22:00:52 +08:00
test_server_tags.py Use custom find functions for image lookup 2016-01-27 09:56:01 +05:30
test_short_id.py Port short_id to return unicode 2015-07-09 07:15:49 +00:00
test_signal.py Don't recompute metadata after clearing a user hook 2016-02-05 16:10:45 -05:00
test_stack_collect_attributes.py Add get_attr which returns all attributes 2015-09-01 17:32:17 +03:00
test_stack_delete.py Replace logging lib 2016-01-03 12:36:05 +08:00
test_stack_lock.py Allow StackLock to be used as a context manager 2016-01-25 19:55:04 -05:00
test_stack_resource.py Merge "Optimize nested stack status check" 2016-03-06 05:01:38 +00:00
test_stack_update.py Add post hooks 2016-02-10 09:13:32 +01:00
test_stack_user.py Move registration of resources to HeatTestCase 2015-06-15 02:43:15 -04:00
test_stack.py Allow resource name as reference if using depends_on 2016-03-09 10:12:05 +08:00
test_support.py Replace tag 2015.2 to 5.0.0 2015-08-06 06:29:09 -04:00
test_template_format.py JSON size violation gives a bad error with nested templates 2016-01-19 11:30:28 +08:00
test_template.py remove the mutable default arguments "[]" or "{}" 2015-12-16 16:48:51 +08:00
test_timeutils.py Round the elapsed time to the nearest second 2015-09-09 06:59:56 +00:00
test_translation_rule.py Don't RESOLVE translate in resource init 2016-03-10 19:17:17 +05:30
test_urlfetch.py py34: Fix integration tests 2015-09-26 20:27:54 +05:30
test_validate.py Adds ignore_errors for template_validate in engine 2016-02-04 17:08:24 +05:30
test_version.py Coverage: Additional test case for better coverage 2015-06-16 13:01:30 +05:30
test_vpc.py Show deprecated warnings when import parser 2015-04-14 17:49:15 +08:00
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 Convergence: Fix to use cache_data for FnGetRefId (1) 2015-09-30 21:38:33 +05:30