Correct baremetal fake data model
In preparation for rewriting tests to use mock_requests, we should need to correct the object naming to match what is defined by the baremetal API. Change-Id: I55c4c895e9fd1f09992bcc9059b7ca132af977cf
This commit is contained in:
parent
706cd2726c
commit
be9d046925
@ -347,7 +347,7 @@ class FakeMachine(object):
|
||||
def __init__(self, id, name=None, driver=None, driver_info=None,
|
||||
chassis_uuid=None, instance_info=None, instance_uuid=None,
|
||||
properties=None):
|
||||
self.id = id
|
||||
self.uuid = id
|
||||
self.name = name
|
||||
self.driver = driver
|
||||
self.driver_info = driver_info
|
||||
@ -359,10 +359,9 @@ class FakeMachine(object):
|
||||
|
||||
class FakeMachinePort(object):
|
||||
def __init__(self, id, address, node_id):
|
||||
self.id = id
|
||||
self.uuid = id
|
||||
self.address = address
|
||||
self.node_id = node_id
|
||||
|
||||
self.node_uuid = node_id
|
||||
|
||||
def make_fake_neutron_security_group(
|
||||
id, name, description, rules, project_id=None):
|
||||
|
Loading…
x
Reference in New Issue
Block a user