Fix KeyError on err in unit test

Add error info in EMCVnxXMLAPIError.

Change-Id: I3cab228d5fd61c1f71662dddde9e36a76f7429d0
Closes-Bug: #1611262
This commit is contained in:
zhongjun 2016-08-09 16:32:58 +08:00
parent 426646ef63
commit c17d23a40a

@ -703,7 +703,8 @@ class StorageConnectionTestCase(test.TestCase):
network_info, None)
@utils.patch_get_managed_ports(
side_effect=exception.EMCVnxXMLAPIError())
side_effect=exception.EMCVnxXMLAPIError(
err="Get managed ports fail."))
def test_setup_server_without_valid_physical_device(self):
hook = utils.RequestSideEffect()
hook.append(self.vdm.resp_get_but_not_found())