Fixed network_info creating.

This commit is contained in:
Ilya Alekseyev
2011-04-04 21:05:38 +04:00
parent 559b48c1f1
commit 9d03046479

View File

@@ -617,7 +617,8 @@ class IptablesFirewallTestCase(test.TestCase):
instance_ref = db.instance_create(self.context,
{'user_id': 'fake',
'project_id': 'fake',
'mac_address': '56:12:12:12:12:12'})
'mac_address': '56:12:12:12:12:12',
'instance_type': 'm1.small'})
ip = '10.11.12.13'
network_ref = db.project_get_network(self.context,
@@ -840,7 +841,8 @@ class NWFilterTestCase(test.TestCase):
instance_ref = db.instance_create(self.context,
{'user_id': 'fake',
'project_id': 'fake',
'mac_address': '00:A0:C9:14:C8:29'})
'mac_address': '00:A0:C9:14:C8:29',
'instance_type': 'm1.small'})
inst_id = instance_ref['id']
ip = '10.11.12.13'