heat/heat/tests
Feilong Wang 77b8395e7d Support handling empty string for volume AZ
When building a complex stack, instance and volume are both
necessary. But the support of AZ in Nova and Cinder are slightly
different which is causing troubles to build the Heat template.
Without setting, the property availability_zone of volume always
got "", an empty string, instead of None. As a result, Cinder will
return 400 BadRequest error. This patch will turn the empty
string into None, to make sure Cinder can correctly handle the
scenario when availability_zone of volume is not set.

Task: 38853
Story: 2007330

Change-Id: Ib5bddf12ca63849a030d1d579d0a2e853e8b848a
(cherry picked from commit 50d72b8c0b)
2020-02-26 14:02:33 +13:00
..
api Fix lower-constraints tox env to use proper constraints 2019-04-10 09:11:56 +05:30
autoscaling Merge "Eliminate nested stack loading in InstanceGroup/ASG scaling" 2018-04-02 04:35:47 +00:00
aws Unit tests: Fix mock errors with too few side effects 2018-08-10 17:25:13 -04:00
clients Fix cfn-init-data path in ignition 2019-10-17 08:13:40 +00:00
cmd Add heat-status upgrade check command framework 2018-10-22 14:19:36 +00:00
constraints Fix allowed address pair validation 2019-05-15 13:06:36 +02:00
convergence Unit tests: Avoid deprecation warning for getargspec() 2018-10-08 11:41:36 -04:00
db Don't use wrap_db_retry on subtransaction in resource_create_replacement() 2019-10-18 15:30:01 +00:00
engine Merge "Use ThreadGroup.add_timer() API correctly" 2019-09-27 10:21:32 +00:00
openstack Support handling empty string for volume AZ 2020-02-26 14:02:33 +13:00
policy Remove CloudWatch API 2018-01-28 09:11:17 +05:30
templates
__init__.py Destroy mox forever 2018-07-05 14:46:21 -04:00
common.py Destroy mox forever 2018-07-05 14:46:21 -04:00
fakes.py Don't use 'assert' keyword in unit tests 2019-06-12 13:06:38 -04:00
generic_resource.py Rename mox_resource_id to mock_resource_id 2018-08-27 17:50:19 +02:00
test_attributes.py Revert "Support attributes with dynamic scheme" 2017-06-26 14:39:11 -04:00
test_auth_password.py Don't use 'assert' keyword in unit tests 2019-06-12 13:06:38 -04:00
test_auth_url.py Fall back to www_authenthicate_uri 2018-11-28 15:34:09 +01:00
test_common_auth_plugin.py Add tools to get keystone auth plugin 2019-03-12 18:15:07 +08:00
test_common_context.py Fix lower-constraints tox env to use proper constraints 2019-04-10 09:11:56 +05:30
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 Remove mox from test_common_policy 2018-03-01 17:14:41 +01:00
test_common_serializers.py
test_common_service_utils.py Show an engine as down if service record is not updated twice 2019-07-24 03:16:57 +00:00
test_constraints.py Handle unicode in constraints 2019-01-29 19:21:28 +13:00
test_convg_stack.py Improve best existing resource selection 2019-01-29 16:47:33 +13: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 Merge "Try deleting stack if not soft deleted yet" 2018-11-21 17:20:45 +00: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 Remove mox from test_event 2018-04-03 08:07:31 +05:30
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 Eliminate nested stack loading in InstanceGroup/ASG scaling 2018-01-19 15:40:37 -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 Remove mox from test_hot 2018-04-03 08:07:31 +05:30
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 Remove mox from test_lifecycle_plugin_utils 2018-04-03 08:07:31 +05:30
test_loguserdata.py Remove spurious logs from test_loguserdata 2015-10-29 17:12:34 +01:00
test_metadata_refresh.py Remove stack watch service 2018-01-28 09:35:05 +05:30
test_nested_stack.py Use StackDefinition in intrinsic functions for resolving data 2017-07-21 10:30:34 -04:00
test_noauth.py Don't use 'assert' keyword in unit tests 2019-06-12 13:06:38 -04:00
test_nokey.py Change NovaClientPlugin to use MicroversionMixin 2018-06-29 09:37:44 +05:30
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 Don't depend on string interning 2018-06-14 14:55:49 -04:00
test_properties_group.py Initial PropertiesGroup implementation 2016-11-07 14:29:17 +03:00
test_provider_template.py Remove mox from test_provider_template 2018-04-03 08:07:31 +05:30
test_resource.py Merge "Unit tests: Fix mock errors with too few side effects" 2018-09-04 17:18:27 +00:00
test_resource_properties_data.py Store resource attributes in the DB 2017-06-21 20:18:46 -04:00
test_rpc_client.py Option for retrieving child templates and env files from swift 2018-07-26 09:50:51 +05:30
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 Change NovaClientPlugin to use MicroversionMixin 2018-06-29 09:37:44 +05:30
test_short_id.py Less unicode weirdness in short_id 2017-05-01 16:44:59 -04:00
test_signal.py Remove stack watch service 2018-01-28 09:35:05 +05:30
test_stack.py Merge "Refactor deferral of stack state persistence" 2018-08-09 12:56:24 +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 delete_trust failure will not block a stack delete 2018-07-02 17:54:55 +00: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 Remove mox from test_stack_resource 2018-03-06 17:18:36 -05:00
test_stack_update.py Rename mox_resource_id to mock_resource_id 2018-08-27 17:50:19 +02:00
test_stack_user.py Remove mox from test_stack_user 2018-04-03 08:07:31 +05:30
test_support.py
test_template.py Change NovaClientPlugin to use MicroversionMixin 2018-06-29 09:37:44 +05:30
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 Ignore RESOLVE translation errors when translating before_props 2018-07-30 14:15:52 +05:30
test_urlfetch.py Remove mox from test_urlfetch 2018-04-03 08:07:31 +05:30
test_validate.py Handle unicode in constraints 2019-01-29 19:21:28 +13:00
test_version.py
test_vpc.py Unit tests: Fix mock errors with too few side effects 2018-08-10 17:25:13 -04:00
testing-overview.txt Trivial: Update pypi url to new url 2018-08-31 04:07:35 +00:00
utils.py Remove mox usage from test_heat_client 2018-07-05 17:16:04 +08:00