Fixed network_info creating.
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user