deb-heat/heat/tests
Steve Baker 9b6d38cd02 Client plugin exception handling methods
This change adds common methods which allow resources
to handle client exceptions without needing to directly
import the exception types.

The most common client resource exception handling is:
* Detecting if an exception is a 404
* Raising any exception which is not a 404
* Detecting if an exception is a 413 (over limit)
* Detecting if an exception was raised by a particular client
  library

Subsequent changes will move to using these methods.

Change-Id: Ib2bd55c31e66b562cfa8388beb450be6c06cc4fb
2014-07-31 16:49:08 -05:00
..
db Migrate to oslo.db 2014-07-15 10:14:56 +02: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
v1_1 Implement nova client plugin 2014-07-08 09:42:36 +12:00
__init__.py Enable lazy translation in unit tests 2014-04-14 12:26:18 +08:00
common.py Pass user_creds_id into nested stacks 2014-07-21 22:56:55 +01:00
fakes.py stack user add _user_token 2014-07-21 15:29:07 +01:00
generic_resource.py Merge "Deprecating the old style attribute Schema" 2014-05-28 21:26:16 +00:00
test_api_aws.py Merge "Make the first line of every file consistent." 2014-04-08 08:51:07 +00:00
test_api_cfn_v1.py Add query param to allow nested resource list 2014-07-21 17:06:38 -04:00
test_api_cloudwatch.py Use None instead of mutables in method params defaults 2014-07-02 16:33:12 +08:00
test_api_ec2token.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_api_openstack_v1_util.py Order imports in alphabetical order (9/9) 2014-05-22 16:49:51 +03:00
test_api_openstack_v1_views_stacks_view_builder.py Merge "Make the first line of every file consistent." 2014-04-08 08:51:07 +00:00
test_api_openstack_v1_views_views_common.py Order imports in alphabetical order (9/9) 2014-05-22 16:49:51 +03:00
test_api_openstack_v1.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_attributes.py Hide warning for old style attribute schema test 2014-06-18 08:58:45 +00:00
test_auth_password.py Merge "Make the first line of every file consistent." 2014-04-08 08:51:07 +00:00
test_auth_url.py Make the first line of every file consistent. 2014-03-04 09:03:04 -06:00
test_autoscaling_update_policy.py Move glance_utils functions to glance client plugin 2014-07-21 13:00:26 -04:00
test_autoscaling.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_ceilometer_alarm.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_clients.py Client plugin exception handling methods 2014-07-31 16:49:08 -05:00
test_cloud_config.py Order imports in alphabetical order (9/9) 2014-05-22 16:49:51 +03:00
test_cloudwatch.py tests remove stack_delete_after decorator 2014-04-30 16:14:59 +01:00
test_common_context.py Support x-openstack-request-id for Heat 2014-06-17 10:11:24 +00:00
test_common_param_utils.py Move API parameter parsing from OpenStack API to engine 2014-05-19 20:53:15 -04:00
test_common_policy.py Policy Enforcer, pass entire context dict 2014-07-16 19:06:03 +01:00
test_common_serializers.py Order imports in alphabetical order (9/9) 2014-05-22 16:49:51 +03:00
test_constraints.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_cw_alarm.py Unit tests: Always use ResourceDefinition for updates 2014-06-16 11:05:24 -04:00
test_dbinstance.py Deprecate old schema definition in dbinstance 2014-06-10 02:45:38 -07:00
test_dependencies.py Merge "Make the first line of every file consistent." 2014-04-08 08:51:07 +00:00
test_eip.py Implement neutron client plugin 2014-07-09 08:45:29 +12:00
test_empty_stack.py Fix updating from an empty stack 2014-07-17 21:35:17 +10:00
test_engine_api_utils.py Add resource properties to stack-preview 2014-07-22 10:29:10 -04:00
test_engine_service.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_environment_format.py Make the first line of every file consistent. 2014-03-04 09:03:04 -06:00
test_environment.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_event.py Unit tests: Create resources with ResourceDefinition 2014-06-05 13:45:14 -04:00
test_exception.py Make the first line of every file consistent. 2014-03-04 09:03:04 -06:00
test_fault_middleware.py Port to oslo.messaging 2014-06-26 06:45:52 +02:00
test_function.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_glance_client.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_glance_image.py Implement glance client plugin 2014-07-09 08:26:58 +12:00
test_heat_autoscaling_group.py tests add stub_keystoneclient to base test class 2014-06-18 10:55:41 +01:00
test_heatclient.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_hot.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_identifier.py Merge "Make the first line of every file consistent." 2014-04-08 08:51:07 +00:00
test_image.py Move glance_utils functions to glance client plugin 2014-07-21 13:00:26 -04:00
test_instance_group_update_policy.py Move glance_utils functions to glance client plugin 2014-07-21 13:00:26 -04:00
test_instance_group.py Move glance_utils functions to glance client plugin 2014-07-21 13:00:26 -04:00
test_instance_network.py Move glance_utils functions to glance client plugin 2014-07-21 13:00:26 -04:00
test_instance.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_iso_8601.py Add ISO 8601 date constraint 2014-05-05 11:01:24 -04:00
test_loadbalancer.py Move glance_utils functions to glance client plugin 2014-07-21 13:00:26 -04:00
test_loguserdata.py Make the first line of every file consistent. 2014-03-04 09:03:04 -06:00
test_metadata_refresh.py Move glance_utils functions to glance client plugin 2014-07-21 13:00:26 -04:00
test_multi_part.py Use None instead of mutables in method params defaults 2014-07-02 16:33:12 +08:00
test_nested_stack.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_neutron_autoscaling.py Move glance_utils functions to glance client plugin 2014-07-21 13:00:26 -04:00
test_neutron_firewall.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_neutron_loadbalancer.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_neutron_metering.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_neutron_network_gateway.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_neutron_security_group.py Merge "Deprecate direct access to clients methods" 2014-07-03 10:37:37 +00:00
test_neutron_vpnservice.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_neutron.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_nokey.py Move glance_utils functions to glance client plugin 2014-07-21 13:00:26 -04:00
test_notifications.py Move glance_utils functions to glance client plugin 2014-07-21 13:00:26 -04:00
test_nova_floatingip.py Implement nova client plugin 2014-07-08 09:42:36 +12:00
test_nova_keypair.py Store clients in context 2014-07-21 13:00:21 -04:00
test_nova_servergroup.py Fix H201 violations and re-enable gating 2014-07-11 10:17:38 +08:00
test_nova_utils.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_os_database.py Implement trove client plugin 2014-07-17 10:16:14 +12:00
test_parameters.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_parser.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_plugin_loader.py Skip tests when loading plugins 2014-04-30 23:19:57 +02:00
test_plugin_manager.py Order imports in alphabetical order (9/9) 2014-05-22 16:49:51 +03:00
test_properties.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_provider_template.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_random_string.py Guaranteed password complexity using OS::Heat::RandomString 2014-06-27 10:08:20 -05:00
test_resource_group.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_resource.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_restarter.py Unit tests: Create resources with ResourceDefinition 2014-06-05 13:45:14 -04:00
test_rpc_client.py Add query param to allow nested resource list 2014-07-21 17:06:38 -04:00
test_rsrc_defn.py Add a ResourceDefinition class 2014-05-30 15:38:01 -04:00
test_s3.py Implement swift client plugin 2014-07-09 08:26:48 +12:00
test_scaling_template.py Merge "Make the first line of every file consistent." 2014-04-08 08:51:07 +00:00
test_scheduler.py Order imports in alphabetical order (9/9) 2014-05-22 16:49:51 +03:00
test_security_group.py Implement nova client plugin 2014-07-08 09:42:36 +12:00
test_server_tags.py Move glance_utils functions to glance client plugin 2014-07-21 13:00:26 -04:00
test_server.py Prevent excessive validation for maxPersonality limit 2014-07-30 17:38:35 +04:00
test_short_id.py Order imports in alphabetical order (9/9) 2014-05-22 16:49:51 +03:00
test_signal.py Implement keystone client plugin 2014-07-17 10:16:14 +12:00
test_software_config.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_software_deployment.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_sqlalchemy_api.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_sqlalchemy_filters.py Make the first line of every file consistent. 2014-03-04 09:03:04 -06:00
test_sqlalchemy_types.py Order imports in alphabetical order (8/9) 2014-03-27 12:45:17 +02:00
test_ssl_middleware.py Order imports in alphabetical order (9/9) 2014-05-22 16:49:51 +03:00
test_stack_lock.py Fix H201 violations and re-enable gating 2014-07-11 10:17:38 +08:00
test_stack_resource.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_stack_user.py stack user add _user_token 2014-07-21 15:29:07 +01:00
test_structured_config.py Removing default version for templates 2014-05-12 04:14:47 -04:00
test_support.py Order imports in alphabetical order (9/9) 2014-05-22 16:49:51 +03:00
test_swift.py Use standard FnGetAtt method for Swift container 2014-07-29 21:09:01 -04:00
test_template_format.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_template.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_timeutils.py timeutils function retry_backoff_delay 2014-07-24 14:47:08 -04:00
test_urlfetch.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_user.py Unit tests: Create resources with ResourceDefinition 2014-06-05 13:45:14 -04:00
test_validate.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_version_negotiation_middleware.py Order imports in alphabetical order (9/9) 2014-05-22 16:49:51 +03:00
test_volume.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_vpc.py Implement neutron client plugin 2014-07-09 08:45:29 +12:00
test_waitcondition.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
test_watch.py Order imports in alphabetical order (9/9) 2014-05-22 16:49:51 +03:00
test_wsgi.py Replace str() with six.text_type() where exception is used 2014-07-29 10:34:26 +08:00
testing-overview.txt Remove examples and update testing-overview.txt 2013-04-30 13:51:31 -07:00
utils.py Migrate to oslo.db 2014-07-15 10:14:56 +02:00