]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Make MidoNet plugin code more testable
authorRyu Ishimoto <ryu@midokura.com>
Mon, 25 Feb 2013 16:34:46 +0000 (01:34 +0900)
committerTomoe Sugihara <tomoe@midokura.com>
Mon, 27 May 2013 17:26:09 +0000 (02:26 +0900)
commit23aec9a5bb02c98f02497669910e43d1b543c745
tree119eaa618d82c555155639a92427f146538ad70b
parentc65a39deaf8907d50dfae44e7fc14fae451005ab
Make MidoNet plugin code more testable

Refactor plugin.py and midonet_lib.py to improve unit testing of
the MidoNet plugin.  Make all the tests pass in the plugin except
those that test features that are not currently supported by the
plugin, which are IPv6 and multiple subnets per network.
Consolidate the mocking code in mock_lib.py to be shared by
plugin.py and midonet_lib.py.

Change-Id: Idcdfc3d90d5ec9e0be29bb6833d336af596fe363
Fixes: bug #1133215
Signed-off-by: Ryu Ishimoto <ryu@midokura.com>
Signed-off-by: Tomoe Sugihara <tomoe@midokura.com>
quantum/plugins/midonet/midonet_lib.py
quantum/plugins/midonet/plugin.py
quantum/tests/unit/midonet/etc/midonet.ini.test [new file with mode: 0644]
quantum/tests/unit/midonet/mock_lib.py [new file with mode: 0644]
quantum/tests/unit/midonet/test_midonet_lib.py
quantum/tests/unit/midonet/test_midonet_plugin.py