]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Use renamed _fail_second_call() in cisco nexus tests
authorHenry Gessau <gessau@cisco.com>
Wed, 10 Sep 2014 03:50:09 +0000 (23:50 -0400)
committerHenry Gessau <gessau@cisco.com>
Wed, 10 Sep 2014 16:07:25 +0000 (12:07 -0400)
commiteccf5e819ef918d566b7efd1e91719550d0fbef9
tree02440be1b1c37c31a6f5fac4c8685f2ec70e6c6a
parent4283b16ed7a2b6e5ac737bbc085c1fd2e831b743
Use renamed _fail_second_call() in cisco nexus tests

In commit 5e4b0c6fc6670ea036d801ce53444272bc311929 NeutronDbPluginV2TestCase
_do_side_effect() was renamed to _fail_second_call(), but the nexus test cases
were not updated. The tests still worked because they check for
HTTPInternalServerError which is the end result of the server encountering
"AttributeError: object has no attribute '_do_side_effect'". So the fault
injection still worked, but not in the way intended.

Note: the monolithic nexus plugin is not updated here since it is being
removed from the tree.

Closes-bug: #1367552

Change-Id: I083285fff5144d8dc35bd5b64faa7e400c68bcff
neutron/tests/unit/ml2/drivers/cisco/nexus/test_cisco_mech.py