diff options
| author | Soren Hansen <soren.hansen@rackspace.com> | 2010-09-10 15:32:56 +0200 |
|---|---|---|
| committer | Soren Hansen <soren.hansen@rackspace.com> | 2010-09-10 15:32:56 +0200 |
| commit | fffa02ac32055650b2bfffff090ec7d52c86291a (patch) | |
| tree | b27cd34d295ed12760015082218842014a5bd7f5 /nova/tests | |
| parent | d64adee4656a3044258c7dbfff93f5201c39560c (diff) | |
Adjust a few things to make the unit tests happy again.
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/virt_unittest.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nova/tests/virt_unittest.py b/nova/tests/virt_unittest.py index b8dcec12b..1f573c463 100644 --- a/nova/tests/virt_unittest.py +++ b/nova/tests/virt_unittest.py @@ -16,6 +16,7 @@ from xml.dom.minidom import parseString +from nova import db from nova import flags from nova import test from nova.endpoint import cloud @@ -91,7 +92,10 @@ class NWFilterTestCase(test.TrialTestCase): cidr_ip='0.0.0.0/0') fw = libvirt_conn.NWFilterFirewall() - xml = fw.security_group_to_nwfilter_xml(1) + + security_group = db.security_group_get_by_user_and_name({}, 'fake', 'testgroup') + + xml = fw.security_group_to_nwfilter_xml(security_group.id) dom = parseString(xml) self.assertEqual(dom.firstChild.tagName, 'filter') |
