]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
NSX: Fix fake_api_client to raise NotFound
authorAaron Rosen <aaronorosen@gmail.com>
Tue, 22 Apr 2014 19:46:08 +0000 (12:46 -0700)
committerAaron Rosen <aaronorosen@gmail.com>
Tue, 22 Apr 2014 19:47:55 +0000 (12:47 -0700)
commitdd143a619900792a0563b9ac4fe1f78197291d94
tree47a95a4789bc2271c4361fb668f283a2968354fc
parenta5f398dfec40fcdb6e5dd1cd19cd7532a5771d1c
NSX: Fix fake_api_client to raise NotFound

If one quries NSX doing GET /ws.v1/lswitch/LS_UUID/lport and LS_UUID
is a UUID that does not exist in NSX. NSX raises a 404. If LS_UUID is *
NSX returns an empty result string. This patch fixes the fake_api_client
so that it's behavior is correct.

Change-Id: Id66299d6ae3cfa43a65d4cb28f34348d64d8ed65
Closes-bug: 1311291
neutron/tests/unit/vmware/apiclient/fake.py
neutron/tests/unit/vmware/nsxlib/test_switch.py