Exemplo n.º 1
0
 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()
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 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
Exemplo n.º 4
0
 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')
Exemplo n.º 5
0
 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()
Exemplo n.º 6
0
 def setUp(self):
     super(UcsManagementTestCase, self).setUp()
     self.interface = ucs_mgmt.UcsManagement()
     self.task = mock.Mock()
     self.task.node = self.node