deb-heat/heat/tests
Anderson Mesquita 87ff54290a Check resources are in expected states
Allow resource to check whether it is in an expected state and update
status and action accordingly.

This adds a check action to the stack that will perform checks in all
their resources and nested resources as well.  If a resource doesn't
have a handle_check() method, check for that resource will just pass.

If any resource at the end of a Stack.check() doesn't have a
handle_check() method, then a message will be added to the status_reason
of both the resource and the stack saying that CHECK is not (fully)
supported.  This allows for the other resources to implement their own
checks for their expected states.

Co-Authored-By: Richard Lee <rblee88@gmail.com>
Implements: blueprint stack-check (partial)
Change-Id: I18985476696faeaa47149c233a067f9494c2effa
2014-08-12 10:51:38 -04: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 Improve mocking in HeatTestCase 2014-08-07 11:41:47 +03:00
fakes.py Add native WaitConditionHandle resource 2014-07-25 14:07:48 +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 Add APIs to create and manipulate snapshots 2014-08-11 14:04:00 +02: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 Remove unused functions from policy enforcer 2014-07-16 19:06:12 +01:00
test_common_serializers.py Order imports in alphabetical order (9/9) 2014-05-22 16:49:51 +03:00
test_constraints.py Always convert string type params to string 2014-08-06 18:02:42 -04: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 Check resources are in expected states 2014-08-12 10:51:38 -04: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 Improve mocking in HeatTestCase 2014-08-07 11:41:47 +03: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 LaunchConfiguration replace on changed Metadata 2014-08-06 16:25:56 +12:00
test_instance_network.py Move glance_utils functions to glance client plugin 2014-07-21 13:00:26 -04:00
test_instance.py Exceptions ResourceInError, ResourceUnknownStatus 2014-07-30 15:29:23 +12: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 Improve mocking in HeatTestCase 2014-08-07 11:41:47 +03: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 Retry resource create until success 2014-07-30 15:43:56 +12: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 Exceptions ResourceInError, ResourceUnknownStatus 2014-07-30 15:29:23 +12: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 replace dict.iteritems() with six.iteritems(dict) 2014-08-06 10:56:09 +08: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 Check resources are in expected states 2014-08-12 10:51:38 -04:00
test_plugin_loader.py Skip tests when loading plugins 2014-04-30 23:19:57 +02:00
test_plugin_manager.py replace dict.iteritems() with six.iteritems(dict) 2014-08-06 10:56:09 +08:00
test_properties.py Add immutable property attribute 2014-08-08 11:49:36 +03: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 Allow ResourceGroup to select an attribute path 2014-08-08 17:33:12 -04:00
test_resource.py Check resources are in expected states 2014-08-12 10:51:38 -04:00
test_restarter.py Unit tests: Create resources with ResourceDefinition 2014-06-05 13:45:14 -04:00
test_rpc_client.py Add APIs to create and manipulate snapshots 2014-08-11 14:04:00 +02: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 Fixed wait skipped after 1st step of task 2014-07-30 06:00:59 +00: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 Merge "Exceptions ResourceInError, ResourceUnknownStatus" 2014-08-02 04:52:49 +00:00
test_short_id.py Order imports in alphabetical order (9/9) 2014-05-22 16:49:51 +03:00
test_signal.py Allow plugins to specify signal event reason 2014-07-25 14:07:48 +01: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 Check resources are in expected states 2014-08-12 10:51:38 -04: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 Don't validate parameters when loading a stack 2014-08-11 17:26:14 -04: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 dict.iteritems() with six.iteritems(dict) 2014-08-06 10:56:09 +08:00
test_vpc.py Implement neutron client plugin 2014-07-09 08:45:29 +12:00
test_waitcondition.py Merge "Add native WaitConditionHandle resource" 2014-08-04 01:22:27 +00: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