def __init__(self): if not importutils.try_import('UcsSdk'): raise exception.DriverLoadError( driver=self.__class__.__name__, reason=_("Unable to import UcsSdk library")) self.power = ucs_power.Power() self.deploy = fake.FakeDeploy() self.management = ucs_mgmt.UcsManagement()
def setUp(self): super(UcsManagementTestCase, self).setUp() mgr_utils.mock_the_extension_manager(driver='fake_ucs') self.node = obj_utils.create_test_node(self.context, driver='fake_ucs', driver_info=INFO_DICT) self.interface = ucs_mgmt.UcsManagement() self.task = mock.Mock() self.task.node = self.node
def setUp(self): super(UcsManagementTestCase, self).setUp() self.config(enabled_drivers=['fake_ucs']) self.node = obj_utils.create_test_node(self.context, driver='fake_ucs', driver_info=INFO_DICT) self.interface = ucs_mgmt.UcsManagement() self.task = mock.Mock() self.task.node = self.node
def __init__(self): if not importutils.try_import('UcsSdk'): raise exception.DriverLoadError( driver=self.__class__.__name__, reason=_("Unable to import UcsSdk library")) self.power = ucs_power.Power() self.boot = pxe.PXEBoot() self.deploy = iscsi_deploy.ISCSIDeploy() self.management = ucs_mgmt.UcsManagement() self.inspect = inspector.Inspector.create_if_enabled('PXEAndUcsDriver')
def __init__(self): if not importutils.try_import('UcsSdk'): raise exception.DriverLoadError( driver=self.__class__.__name__, reason=_("Unable to import UcsSdk library")) self.power = ucs_power.Power() self.boot = pxe.PXEBoot() self.deploy = iscsi_deploy.ISCSIDeploy() self.management = ucs_mgmt.UcsManagement() self.vendor = iscsi_deploy.VendorPassthru()
def setUp(self): super(UcsManagementTestCase, self).setUp() self.interface = ucs_mgmt.UcsManagement() self.task = mock.Mock() self.task.node = self.node