cinder/cinder/tests/unit
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
..
api Fix action on services raises TypeError 2017-03-03 11:37:56 +05:30
attachments Add new attachment APIS 2017-01-20 11:47:10 -07:00
backup Merge "Fix Pep8 Failures for Python3" 2017-02-16 05:22:15 +00:00
brick Convert ignoreskippedcluster check to be static 2017-02-02 17:00:04 +00:00
compute Change nova_catalog_admin_info to default to publicURL 2017-02-14 09:49:29 -05:00
consistencygroup Use ovo instead of dict 2017-02-13 06:23:52 +00:00
db Merge "DB: Optimize update methods" 2017-02-14 19:30:40 +00:00
glance Files with no code must be left completely empty 2016-09-28 16:29:30 +07:00
group Use ovo instead of dict 2017-02-13 06:23:52 +00:00
image Check if volume node has enough space for image operations 2017-01-26 12:33:35 +02:00
keymgr Modifies override logic for key_manager 2016-09-21 11:01:59 -04:00
message Remove Ocata's data migrations 2017-02-15 11:41:15 +01:00
monkey_patch_example
objects Use ovo instead of dict 2017-02-13 06:23:52 +00:00
scheduler Add filters support to get_pools 2017-02-09 17:44:38 +08:00
targets Attach/Delete volume for tgt driver race condition fix 2016-12-26 10:15:21 +00:00
volume Merge "Fix size update error for snapshot-manage operation" 2017-03-02 17:32:47 +00:00
windows Merge "Move windows drivers to versioned objects" 2017-02-09 19:38:32 +00:00
zonemanager Resolve Brocade HTTPS connection error 2017-02-01 22:30:23 +01:00
__init__.py Remove nosetests i18n fix 2016-11-29 18:16:59 +02:00
cast_as_call.py
conf_fixture.py Merge two fake drivers into the one FakeLoggingVolumeDriver 2016-09-09 14:37:21 +00:00
fake_cluster.py Update Versioned Objects with Cluster object 2016-07-22 21:00:08 +02:00
fake_constants.py Add new attachment APIS 2017-01-20 11:47:10 -07:00
fake_group.py Switch to using generic groups with Pure driver 2017-01-23 11:56:22 -08:00
fake_notifier.py Short-circuit notifications when not enabled 2017-01-30 12:31:45 +01:00
fake_objects.py Use manifest to backport OVOs during upgrades 2016-06-12 13:49:01 +02:00
fake_service.py Update is_up from Service OVO class to match ORM 2016-12-21 20:55:37 +01:00
fake_snapshot.py Add volume to fake snapshot object 2017-01-17 16:55:44 +05:30
fake_utils.py Remove unused function from unit/fake_utils.py 2016-08-30 15:09:58 +07:00
fake_volume.py Add get_all capability to volume_attachments 2016-12-16 14:25:21 -07:00
policy.json Remove promote and reenable from policy 2017-02-04 08:55:45 +08:00
test_api.py
test_api_urlmap.py Replace use of mox with mock in test_api_urlmap 2016-07-01 17:17:44 +03:00
test_cleanable_manager.py Make c-vol use workers table for cleanup 2016-11-03 10:17:38 +01:00
test_cmd.py Drop version validation 2017-02-09 11:35:15 +00:00
test_context.py Use context.from_dict to determine available arguments 2016-07-12 13:38:55 +10:00
test_coordination.py Update synchronized decorator 2016-10-12 10:25:33 -05:00
test_db_api.py Merge "Remove Ocata's data migrations" 2017-02-15 14:53:56 +00:00
test_db_worker_api.py Prevent claiming and updating races on worker 2017-01-19 10:42:24 +01:00
test_evaluator.py
test_exception.py Remove cinder/tests/unit/test_misc.py 2016-08-31 17:00:58 +03:00
test_fixtures.py
test_hacking.py Hacking: Remove N333 oslo namespace import check 2016-12-12 10:08:31 -05:00
test_image_utils.py Merge "Refactor of getting qemu-img version" 2017-02-14 19:31:55 +00:00
test_migrations.py Prevent claiming and updating races on worker 2017-01-19 10:42:24 +01:00
test_paginate_query.py Don't use None value for sql query. 2017-02-04 09:31:27 +08:00
test_qos_specs.py Replace assertDictMatch with assertDictEqual method in tests 2016-12-21 12:06:24 -05:00
test_quota.py Fix max_age calculation for quota usage refresh 2017-02-03 13:31:10 +01:00
test_quota_utils.py Cinder consistency group returning generic error message 2016-12-21 12:52:06 +08:00
test_rpc.py Fix notification short-circuit 2017-02-01 17:11:14 +01:00
test_service.py Make Replication support Active-Active 2017-01-19 10:42:18 +01:00
test_setup_profiler.py Support new osprofiler API 2016-12-15 15:46:56 +07:00
test_ssh_utils.py Merge "Change assertTrue(isinstance()) with optimal assert" 2016-08-30 13:13:54 +00:00
test_test.py Updated unit tests to use official unittest methods 2016-06-29 21:49:50 +00:00
test_test_utils.py
test_utils.py Fix notification short-circuit 2017-02-01 17:11:14 +01:00
test_volume_cleanup.py Clean up image tmp file if c-vol gets restarted 2017-01-17 17:28:39 +08:00
test_volume_configuration.py
test_volume_glance_metadata.py Tests: Define fake_constants as constants 2016-04-12 16:56:19 -04:00
test_volume_throttling.py
test_volume_transfer.py Remove race conditions from transfer API 2016-11-09 11:00:42 -06:00
test_volume_types.py Merge "DB: Optimize update methods" 2017-02-14 19:30:40 +00:00
test_volume_types_extra_specs.py
test_volume_utils.py Enforce _usage_from_snapshot to fetch info from deleted volume 2017-02-23 15:00:50 -03:00
utils.py Fix Pep8 Failures for Python3 2017-02-13 12:01:12 -06:00