masakari/masakari/tests/unit/objects
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
..
__init__.py Added masakari objects 2016-09-07 15:57:17 +05:30
test_fields.py Add notification related objects 2016-09-23 12:59:43 +05:30
test_hosts.py Use os-testr instead of testr 2017-07-05 17:37:52 +05:30
test_notifications.py Add notification related objects 2016-09-23 12:59:43 +05:30
test_objects.py Fix 'host delete' delete's host of another segment 2017-08-01 12:28:56 +05:30
test_segments.py Use os-testr instead of testr 2017-07-05 17:37:52 +05:30