]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
test_create_router_gateway_fails fixes
authorYAMAMOTO Takashi <yamamoto@midokura.com>
Thu, 1 Oct 2015 09:20:18 +0000 (18:20 +0900)
committerArmando Migliaccio <armamig@gmail.com>
Thu, 8 Oct 2015 17:58:25 +0000 (17:58 +0000)
commitbd33f5fe9db9edee1075807c3118f607fb05ba9d
treef18b87e0881e3a24585263e3803f9dae60912cda
parentc51a66dd947a9601e21f0023c93b8bd045518ff5
test_create_router_gateway_fails fixes

- Use the existing network.  Otherwise this test fails earlier than
  intended.  (with NetworkNotFound)

- Use a dedicated exception to avoid accepting other exceptions
  like NetworkNotFound

- Move the test for L3_NAT_dbonly_mixin into a separate class.
  Skip it if the plugin does not inherit L3_NAT_dbonly_mixin.

Change-Id: Ic5d5162320bf3ff1bb8b09de3e8200ca46023b32
neutron/tests/unit/extensions/test_l3.py