Skip to content

Commit

Permalink
Allow tox to run plugin specific unit tests
Browse files Browse the repository at this point in the history
Fixes bug 1041316

This patch covers linuxbridge, nec, nicira, and ryu plugins.

Change-Id: I024a46bc9b49ffe60cdbe9fa275f30ac9d829a9a
  • Loading branch information
salv-orlando committed Aug 24, 2012
1 parent 734213b commit f1d022c
Show file tree
Hide file tree
Showing 41 changed files with 43 additions and 852 deletions.
73 changes: 0 additions & 73 deletions quantum/plugins/linuxbridge/run_tests.py

This file was deleted.

Empty file.
Empty file.
485 changes: 0 additions & 485 deletions quantum/plugins/linuxbridge/tests/unit/_test_linuxbridgeAgent.py

This file was deleted.

72 changes: 0 additions & 72 deletions quantum/plugins/nec/run_tests.py

This file was deleted.

113 changes: 0 additions & 113 deletions quantum/plugins/nicira/nicira_nvp_plugin/run_tests.py

This file was deleted.

77 changes: 0 additions & 77 deletions quantum/plugins/ryu/run_tests.py

This file was deleted.

Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2012 NEC Corporation. All rights reserved.

# Copyright 2012 OpenStack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# under the License.
# @author: Ryota MIBU

import quantum.openstack.common.rpc
from quantum.plugins.nec.common import config
from quantum.tests.unit import test_db_plugin

Expand All @@ -35,25 +34,13 @@ def setUp(self):

plugin = 'quantum.plugins.nec.nec_plugin.NECPluginV2'
config.CONF.set_override('core_plugin', plugin)
driver = "quantum.plugins.nec.tests.unit.stub_ofc_driver.StubOFCDriver"
driver = "quantum.tests.unit.nec.stub_ofc_driver.StubOFCDriver"
config.CONF.set_override('driver', driver, 'OFC')
config.CONF.set_override('rpc_backend',
'quantum.openstack.common.rpc.impl_fake')
self.api = test_db_plugin.APIRouter()
self._skip_native_bulk = False


class TestPortsV2(NECPluginTestBase, test_db_plugin.TestPortsV2):
pass


class TestNetworksV2(NECPluginTestBase, test_db_plugin.TestNetworksV2):
pass


# NOTE: This plugin does not override methods for subnet.
#class TestSubnetsV2(NECPluginTestBase, test_db_plugin.TestSubnetsV2):
# pass
super(NECPluginTestBase, self).setUp(plugin)


# TODO(r-mibu): write UT for packet_filters.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class OFCManagerTest(unittest.TestCase):
"""Class conisting of OFCManager unit tests"""

def setUp(self):
driver = "quantum.plugins.nec.tests.unit.stub_ofc_driver.StubOFCDriver"
driver = "quantum.tests.unit.nec.stub_ofc_driver.StubOFCDriver"
config.CONF.set_override('driver', driver, 'OFC')
ndb.initialize()
self.ofc = ofc_manager.OFCManager()
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit f1d022c

Please sign in to comment.