summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2011-12-09 06:15:48 +0000
committerGerrit Code Review <review@openstack.org>2011-12-09 06:15:48 +0000
commitaa7ca15fc1a7ca28de93ee194870fe6d5e77631b (patch)
treeb5cf57ac6d35f341c2dff8d80d6e20ddf8e32e77 /nova/tests
parent435d6d8bb5d156eda65a502a610743e569f86173 (diff)
parentbca56ddb3dc931880fa32e23cff35debf7ab365c (diff)
Merge "Make QuantumManager no longer depend on the projects table"
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_quantum.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/nova/tests/test_quantum.py b/nova/tests/test_quantum.py
index 19fa109b2..174c512db 100644
--- a/nova/tests/test_quantum.py
+++ b/nova/tests/test_quantum.py
@@ -193,12 +193,6 @@ class QuantumNovaTestCase(test.TestCase):
def setUp(self):
super(QuantumNovaTestCase, self).setUp()
- # Create an actual project -- with this we will touch more of
- # the code in QuantumManager (related to fetching networks, etc)
- for x in ['fake_project1', 'fake_project2']:
- values = {'id': x, 'name': x}
- project = db.project_create(context.get_admin_context(), values)
-
self.net_man = quantum_manager.QuantumManager(
ipam_lib="nova.network.quantum.nova_ipam_lib",
q_conn=FakeQuantumClientConnection())
@@ -220,11 +214,6 @@ class QuantumNovaTestCase(test.TestCase):
for fip_ref in result:
session.delete(fip_ref)
- def tearDown(self):
- # Clean up our projects
- db.project_delete(context.get_admin_context(), 'fake_project1')
- db.project_delete(context.get_admin_context(), 'fake_project2')
-
def _create_network(self, n):
ctx = context.RequestContext('user1', n['project_id'])
nwks = self.net_man.create_networks(