cinder/cinder/tests/unit/db
Abhishek Kekane dc70025072 Provide user friendly message for FK failure
'cinder-manage db purge' command fails with DBReferenceError due
to FK constraint failure and exits with stack-trace on the command
prompt.

Made changes to give user friendly message to the user as well as
log appropriate error message in cinder-manage logs instead of
stack-trace and exit with non-zero code to notify user about
the failure.

Closes-Bug: #1542169
Change-Id: I24476af70b45150b9f9e4e5d874f46fd4c07e680
2016-03-23 06:03:48 +00:00
..
__init__.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
fakes.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_name_id.py Fix order of arguments in assertEqual 2015-08-03 19:26:08 -07:00
test_purge.py Provide user friendly message for FK failure 2016-03-23 06:03:48 +00:00
test_qos_specs.py Correct assertDictMatch argument order 2015-11-13 16:57:01 +00:00
test_transfers.py Fix order of arguments in assertEqual 2015-08-03 19:26:08 -07:00
test_volume_type.py Cleanup unused conf variables 2016-02-16 11:26:06 +11:00