cinder/cinder/tests
Dinesh Bhor 16082ddfd6 Fix action on services raises TypeError
Freeze, thaw and failover_host actions on a service raises TypeError
when non-existent host or cluster name is passed to the service
update API. This TypeError exception raised is converted into
HTTPBadRequest at wsgi layer.

Fixed this issue by formatting error message when a service is not
found for a given host or cluster. Caught the ServiceNotFound at API
layer and raised InvalidInput error so a user will see 400 error
only instead of 404.

Closes-Bug: #1663205
Change-Id: I54b9575f293f64a5f31246d0345c753b8011d95f
2017-03-03 11:37:56 +05:30
..
compliance Use assertEqual/Less/Greater/In/IsNone 2016-07-04 17:58:16 +02:00
functional [1/4]Reset generic volume group status 2016-12-23 22:58:48 +08:00
tempest Fix internal tempest tests 2017-02-27 14:57:30 +00:00
unit Fix action on services raises TypeError 2017-03-03 11:37:56 +05:30
__init__.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
fake_driver.py Rename AddFCZone and RemoveFCZone according to PEP 8 2017-01-09 11:22:19 +02:00
fixtures.py Copy StandardLogging fixture from Nova 2016-02-29 17:46:31 -05:00