]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
ML2 Cisco Nexus MD: Improve Unit Test Coverage
authorRich Curran <rcurran@cisco.com>
Fri, 18 Apr 2014 21:09:08 +0000 (17:09 -0400)
committerRich Curran <rcurran@cisco.com>
Mon, 21 Apr 2014 14:33:44 +0000 (10:33 -0400)
commit5ca43cd39431b49d347a6ff8637dd6388266e03a
tree9d11c6f3310f7c9e39a2277ab5c2690efc427206
parent7305ace9f37719f47d55743c0dece7089c063b12
ML2 Cisco Nexus MD: Improve Unit Test Coverage

Improve unit test coverage for:
neutron/plugins/ml2/drivers/cisco/ modules.

Current coverage info:
neutron/plugins/ml2/drivers/cisco/nexus/nexus_models_v2      65%
neutron/plugins/ml2/drivers/cisco/nexus/nexus_network_driver 82%
neutron/plugins/ml2/drivers/cisco/nexus/credentials_v2       81%
neutron/plugins/ml2/drivers/cisco/nexus/mech_cisco_nexus     78%
neutron/plugins/ml2/drivers/cisco/nexus/config               75%

With these updates:
neutron/plugins/ml2/drivers/cisco/nexus/mech_cisco_nexus     99%
neutron/plugins/ml2/drivers/cisco/nexus/nexus_db_v2          99%
neutron/plugins/ml2/drivers/cisco/nexus/nexus_models_v2      65%
neutron/plugins/ml2/drivers/cisco/nexus/nexus_network_driver 98%
neutron/plugins/ml2/drivers/cisco/nexus/config               100%

NB: nexus_models_v2.py consists of database definitions and two
customization methods, __repr__ and __eq__.

Change-Id: I0de1cb9e71adffff698e37c8bec5497b88f0f0cd
Closes-Bug: 1267481
neutron/plugins/ml2/drivers/cisco/nexus/nexus_db_v2.py
neutron/plugins/ml2/drivers/cisco/nexus/nexus_network_driver.py
neutron/tests/unit/ml2/drivers/cisco/nexus/test_cisco_config.py [new file with mode: 0644]
neutron/tests/unit/ml2/drivers/cisco/nexus/test_cisco_mech.py
neutron/tests/unit/ml2/drivers/cisco/nexus/test_cisco_nexus_db.py