]> 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)
committerThomas Goirand <thomas@goirand.fr>
Mon, 9 Jun 2014 15:06:54 +0000 (23:06 +0800)
commitb5f6ae41af496a44dcaf5cc46bc8527c9cbf131a
tree2a5f6621ab6e07633e2155b6c90095f030900b7e
parenta1ff2b5d80a7f8e9c2e6e5bf638e8dc47b60e5af
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
(cherry picked from commit dd143a619900792a0563b9ac4fe1f78197291d94)
neutron/tests/unit/vmware/apiclient/fake.py
neutron/tests/unit/vmware/nsxlib/test_switch.py