Add missing attribute in Chassis in RSD 2.3
Change-Id: Icc76a4b629a3a9d522fffb7aea412804729be2c6
This commit is contained in:
@@ -23,10 +23,10 @@ from rsd_lib.resources.v2_1.event_service import event_service \
|
||||
from rsd_lib.resources.v2_1.registries import message_registry_file \
|
||||
as v2_1_registries
|
||||
from rsd_lib.resources.v2_1.task import task_service as v2_1_task_service
|
||||
from rsd_lib.resources.v2_2.chassis import chassis as v2_2_chassis
|
||||
from rsd_lib.resources.v2_2.update_service import update_service \
|
||||
as v2_2_update_service
|
||||
from rsd_lib.resources import v2_3
|
||||
from rsd_lib.resources.v2_3.chassis import chassis as v2_3_chassis
|
||||
from rsd_lib.resources.v2_3.ethernet_switch import ethernet_switch \
|
||||
as v2_3_ethernet_switch
|
||||
from rsd_lib.resources.v2_3.fabric import fabric as v2_3_fabric
|
||||
@@ -112,14 +112,14 @@ class RSDLibV2_3TestCase(testtools.TestCase):
|
||||
self.rsd._conn, 'fake-fabric-id',
|
||||
redfish_version=self.rsd.redfish_version)
|
||||
|
||||
@mock.patch.object(v2_2_chassis, 'ChassisCollection', autospec=True)
|
||||
@mock.patch.object(v2_3_chassis, 'ChassisCollection', autospec=True)
|
||||
def test_get_chassis_collection(self, mock_chassis_collection):
|
||||
self.rsd.get_chassis_collection()
|
||||
mock_chassis_collection.assert_called_once_with(
|
||||
self.rsd._conn, '/redfish/v1/Chassis',
|
||||
redfish_version=self.rsd.redfish_version)
|
||||
|
||||
@mock.patch.object(v2_2_chassis, 'Chassis', autospec=True)
|
||||
@mock.patch.object(v2_3_chassis, 'Chassis', autospec=True)
|
||||
def test_get_chassis(self, mock_chassis):
|
||||
self.rsd.get_chassis('fake-chassis-id')
|
||||
mock_chassis.assert_called_once_with(
|
||||
|
||||
@@ -22,9 +22,9 @@ from rsd_lib.resources.v2_1.event_service import event_service \
|
||||
from rsd_lib.resources.v2_1.registries import message_registry_file \
|
||||
as v2_1_registries
|
||||
from rsd_lib.resources.v2_1.task import task_service as v2_1_task_service
|
||||
from rsd_lib.resources.v2_2.chassis import chassis as v2_2_chassis
|
||||
from rsd_lib.resources.v2_2.update_service import update_service \
|
||||
as v2_2_update_service
|
||||
from rsd_lib.resources.v2_3.chassis import chassis as v2_3_chassis
|
||||
from rsd_lib.resources.v2_3.ethernet_switch import ethernet_switch \
|
||||
as v2_3_ethernet_switch
|
||||
from rsd_lib.resources.v2_3.manager import manager as v2_3_manager
|
||||
@@ -111,14 +111,14 @@ class RSDLibV2_3TestCase(testtools.TestCase):
|
||||
self.rsd._conn, 'fake-fabric-id',
|
||||
redfish_version=self.rsd.redfish_version)
|
||||
|
||||
@mock.patch.object(v2_2_chassis, 'ChassisCollection', autospec=True)
|
||||
@mock.patch.object(v2_3_chassis, 'ChassisCollection', autospec=True)
|
||||
def test_get_chassis_collection(self, mock_chassis_collection):
|
||||
self.rsd.get_chassis_collection()
|
||||
mock_chassis_collection.assert_called_once_with(
|
||||
self.rsd._conn, '/redfish/v1/Chassis',
|
||||
redfish_version=self.rsd.redfish_version)
|
||||
|
||||
@mock.patch.object(v2_2_chassis, 'Chassis', autospec=True)
|
||||
@mock.patch.object(v2_3_chassis, 'Chassis', autospec=True)
|
||||
def test_get_chassis(self, mock_chassis):
|
||||
self.rsd.get_chassis('fake-chassis-id')
|
||||
mock_chassis.assert_called_once_with(
|
||||
|
||||
Reference in New Issue
Block a user