]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
ml2 extension driver: more tests, fix data argument inconsistency
authorIsaku Yamahata <isaku.yamahata@intel.com>
Fri, 17 Oct 2014 08:35:55 +0000 (17:35 +0900)
committerIsaku Yamahata <isaku.yamahata@intel.com>
Tue, 3 Mar 2015 01:02:20 +0000 (17:02 -0800)
commita3801bea4e91036506c191a766e3fe62e58f683a
tree4cd7fc68f22fabd86f589373a318777d5d387253
parentd283e23d7658162f911240bf6a4e707e3709093a
ml2 extension driver: more tests, fix data argument inconsistency

This patch adds more tests for ML2 extension driver.
It also fixes a minor bug which was revealed.

The data argument for process/update method of extension driver
was inconsist. some are given data like
{'resource': {'arg': 'value'...}}. But some are given one like
{'arg': 'value'}.
This inconsistency needs to be fixed so that argument is
{'arg': 'value'}. Given the argument is known to be network,
there is no point to carry outer dictionary.

Partially Implements: blueprint ml2-ovs-portsecurity
Change-Id: I4614c3ba5eff0ace46cc928517e31c14b7b2e448
neutron/plugins/ml2/plugin.py
neutron/tests/unit/ml2/drivers/ext_test.py [new file with mode: 0644]
neutron/tests/unit/ml2/test_extension_driver_api.py
setup.cfg