Merge "Fix random OverflowError exceptions in gate-neutron-python26 tests"
This commit is contained in:
commit
5eeb5822f7
@ -15,6 +15,9 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
import mox
|
||||||
|
|
||||||
|
from neutron.plugins.nec.common import ofc_client
|
||||||
from neutron.tests.unit.nec import test_nec_plugin
|
from neutron.tests.unit.nec import test_nec_plugin
|
||||||
from neutron.tests.unit.openvswitch import test_agent_scheduler
|
from neutron.tests.unit.openvswitch import test_agent_scheduler
|
||||||
|
|
||||||
@ -23,12 +26,30 @@ class NecAgentSchedulerTestCase(
|
|||||||
test_agent_scheduler.OvsAgentSchedulerTestCase):
|
test_agent_scheduler.OvsAgentSchedulerTestCase):
|
||||||
plugin_str = test_nec_plugin.PLUGIN_NAME
|
plugin_str = test_nec_plugin.PLUGIN_NAME
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
super(NecAgentSchedulerTestCase, self).setUp()
|
||||||
|
self.mox = mox.Mox()
|
||||||
|
self.mox.StubOutWithMock(ofc_client.OFCClient, 'do_request')
|
||||||
|
self.addCleanup(self.mox.UnsetStubs)
|
||||||
|
|
||||||
|
|
||||||
class NecDhcpAgentNotifierTestCase(
|
class NecDhcpAgentNotifierTestCase(
|
||||||
test_agent_scheduler.OvsDhcpAgentNotifierTestCase):
|
test_agent_scheduler.OvsDhcpAgentNotifierTestCase):
|
||||||
plugin_str = test_nec_plugin.PLUGIN_NAME
|
plugin_str = test_nec_plugin.PLUGIN_NAME
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
super(NecDhcpAgentNotifierTestCase, self).setUp()
|
||||||
|
self.mox = mox.Mox()
|
||||||
|
self.mox.StubOutWithMock(ofc_client.OFCClient, 'do_request')
|
||||||
|
self.addCleanup(self.mox.UnsetStubs)
|
||||||
|
|
||||||
|
|
||||||
class NecL3AgentNotifierTestCase(
|
class NecL3AgentNotifierTestCase(
|
||||||
test_agent_scheduler.OvsL3AgentNotifierTestCase):
|
test_agent_scheduler.OvsL3AgentNotifierTestCase):
|
||||||
plugin_str = test_nec_plugin.PLUGIN_NAME
|
plugin_str = test_nec_plugin.PLUGIN_NAME
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
super(NecL3AgentNotifierTestCase, self).setUp()
|
||||||
|
self.mox = mox.Mox()
|
||||||
|
self.mox.StubOutWithMock(ofc_client.OFCClient, 'do_request')
|
||||||
|
self.addCleanup(self.mox.UnsetStubs)
|
||||||
|
Loading…
Reference in New Issue
Block a user