heat/heat/tests/engine
Ahmed Elkhouly f52d77f0d2 Resource mark unhealthy RPC and ReST API
There may exist resources that the user (or application) knows are
unhealthy where Heat has no way of determining that.

Add a PATCH handler to the Resource endpoint::

  /stacks/<stack_name>/<stack_id>/resources/<resource_id>

The PATCH method will accept a JSON body of the form::

  {
    'mark_unhealthy': <bool>,
    'resource_status_reason': <string>
  }

This patch Implements:
- RPC API to mark resources as CHECK_FAILED in both the legacy and
convergence architectures in heat-engine
- ReST front end to the RPC API call in heat-api

Change-Id: Ifa48b179723a2100fff548467db9e162bc669d13
Partially-implements: blueprint mark-unhealthy
2016-02-24 18:00:44 -05:00
..
service Resource mark unhealthy RPC and ReST API 2016-02-24 18:00:44 -05:00
__init__.py Split engine service test case 2015-04-20 10:19:58 -04:00
test_dependencies.py Use assertIn and assertNotIn 2015-10-26 22:40:14 +01:00
test_engine_worker.py Convergence: Pick resource from dead engine worker 2016-01-06 16:01:08 +05:30
test_plugin_manager.py Move core engine related unit tests to tests/engine 2015-07-21 17:37:20 +05:30
test_resource_type.py Don't mask exceptions in is_service_available 2016-02-08 14:42:59 +05:30
test_scheduler.py Eliminate unnecessary sleeps during no-op update 2015-12-07 18:03:39 -05:00
test_sync_point.py Convergence: Fix failing integration tests 2015-09-12 08:30:04 +00:00
tools.py Allow stack_context to create convergence and legacy stacks 2016-01-27 23:52:58 -05:00