masakari/masakari/tests/unit
Dinesh Bhor a1bbcd4d98 Fix 'host delete' delete's host of another segment
Currently masakari delete's the host which doesn't belong to the
segment requested in the 'host delete' API's request URL because
host was not getting filtered on the basis of failover_segment_id.

Filtered the host based on 'failover_segment_id'. Added a new
exception 'HostNotFoundUnderFailoverSegment' which will be raised
from db API 'host_get_by_uuid' if the host is not found under the
requested failover_segment. This exception is not caught at API
controller layer as it is a subclass of 'HostNotFound' which is
already caught in controller.

Closes-Bug: #1697629
Change-Id: I3d3e8cffa2f8ea443ccd13b1db61fda55bc07a0d
2017-08-01 12:28:56 +05:30
..
api Fix 'host delete' delete's host of another segment 2017-08-01 12:28:56 +05:30
cmd Add testing for WSGI Framework 2016-08-26 14:07:20 +05:30
compute Send global_request_id to nova when calls are made 2017-07-27 09:53:25 +05:30
db Fix 'host delete' delete's host of another segment 2017-08-01 12:28:56 +05:30
engine Merge "Fix race condition between evacuation and its confirmation" 2017-06-23 10:21:37 +00:00
ha Use os-testr instead of testr 2017-07-05 17:37:52 +05:30
monkey_patch_example Add testing for WSGI Framework 2016-08-26 14:07:20 +05:30
objects Fix 'host delete' delete's host of another segment 2017-08-01 12:28:56 +05:30
__init__.py Remove reference of Nova 2016-09-28 09:41:06 +05:30
conf_fixture.py Add testing for WSGI Framework 2016-08-26 14:07:20 +05:30
fake_notifier.py Add testing for WSGI Framework 2016-08-26 14:07:20 +05:30
fake_policy.py Add notifications controller for masakari 2016-10-04 11:37:27 +05:30
fakes.py Remove 'on_shared_storage' parameter from nova evacuate 2017-07-21 05:44:49 +00:00
matchers.py Add testing for WSGI Framework 2016-08-26 14:07:20 +05:30
policy_fixture.py Use dict.items() and dict.values() as per guidelines 2017-01-16 18:08:15 +05:30
test_api_validation.py Tolerate jsonschema==2.6.0 2017-02-16 11:17:15 +05:30
test_conf.py Add testing for WSGI Framework 2016-08-26 14:07:20 +05:30
test_context.py Fix failing test cases 2017-05-29 10:28:25 +05:30
test_exception.py Remove support for py34 2017-07-11 15:33:14 +07:00
test_hacking.py Remove log translations 2017-04-05 08:11:09 +00:00
test_policy.py Set admin user as the default policy 2016-11-09 11:23:43 +05:30
test_rpc.py Set access_policy for messaging's dispatcher 2017-02-09 12:17:15 +05:30
test_safeutils.py Add testing for WSGI Framework 2016-08-26 14:07:20 +05:30
test_service.py Add business rule for process_notification 2016-11-04 15:24:12 +05:30
test_utils.py Added failover segments controller for masakari 2016-09-23 13:54:44 +05:30
test_versions.py Add masakari-engine support 2016-10-05 14:53:26 +05:30
test_wsgi.py Add testing for WSGI Framework 2016-08-26 14:07:20 +05:30
utils.py Add testing for WSGI Framework 2016-08-26 14:07:20 +05:30