Files
python-neutronclient/neutronclient/tests/unit
Akihiro Motoki af1a55bfd2 Ensure to use exception per status code for all cases
Previously, only when an exception has a content with
{'NeutronError': {'type': xxxx, 'message': xxxx}},
exception per status code is raised from neutronclient library.
There are cases where this kind of message is not contained
in exception messages, for example, some extension is loaded.

Library users expect an exception is raised based on response
status code and it should not depend on an exception message.
This commit applies a fallback logic to map generic per-status
exception to all exception types from the neutron server.

Closes-Bug: #1513879
Change-Id: Ib3d0a8359aed444b12217b3404d40443d61fc2c0
2016-02-24 10:23:46 +00:00
..
2015-11-06 15:37:56 -08:00
2016-01-19 10:01:58 -08:00
2015-12-13 05:48:42 +09:00
2015-12-13 05:48:42 +09:00
2015-12-08 22:36:58 +09:00
2015-12-13 05:48:42 +09:00
2015-12-13 05:48:42 +09:00
2015-12-13 05:48:42 +09:00
2015-12-13 05:48:42 +09:00
2015-12-09 11:09:26 +03:00
2015-12-13 05:48:42 +09:00
2015-12-13 05:48:42 +09:00
2015-03-23 15:28:12 +09:00