]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Ensure OVS plugin is loaded in OVS plugin test
authorAkihiro MOTOKI <motoki@da.jp.nec.com>
Fri, 18 Oct 2013 06:09:29 +0000 (15:09 +0900)
committerAkihiro MOTOKI <motoki@da.jp.nec.com>
Sat, 26 Oct 2013 11:52:15 +0000 (20:52 +0900)
commit31def3ccf425a8f1a617a674a30d29f89d733432
tree0412d9f5a4098b69671acb184cbf4e1ad60f7ddc
parenta04e91db98902584e8a19baa757425f5afe04802
Ensure OVS plugin is loaded in OVS plugin test

In TestOpenvswitchSGServerRpcCallBack and NetworkBindingsTest
in OVS plugin tests, OVS plugin was not loaded properly.

* For NetworkBindingsTest, it can be fixed by changing setUp()
  to take 'plugin' arguments in the base test classes
  SecurityGroupDBTestCase and SGServerRpcCallBackMixinTestCase.
  This fixes bug 1242510 in ML2 unit tests.

* For NetworkBindingsTest, it can be fixed by passing the plugin
  class to super.setUp(). The test itself needs to be updated
  because network binding is added when a network is created.

* NetworkBindingsTest in Linux Bridge plugin has the same issue,
  so it is also fixed in this patch.

Closes-Bug: #1230083
Closes-Bug: #1242510
Change-Id: I914876225480585d822748c188e9b69d1adf46f3
neutron/tests/unit/linuxbridge/test_lb_db.py
neutron/tests/unit/openvswitch/test_ovs_db.py
neutron/tests/unit/test_extension_security_group.py
neutron/tests/unit/test_security_groups_rpc.py