Пример #1
0
 def setUp(self):
     super(TestBlockDeviceDriver, self).setUp()
     self.configuration = mox.MockAnything()
     self.configuration.available_devices = ['/dev/loop1', '/dev/loop2']
     self.configuration.host = 'localhost'
     self.configuration.iscsi_port = 3260
     self.drv = BlockDeviceDriver(configuration=self.configuration)
Пример #2
0
 def setUp(self):
     fake_opt = [cfg.StrOpt('fake_opt', default='fake', help='fake option')]
     super(TestBlockDeviceDriver, self).setUp()
     self.configuration = conf.Configuration(fake_opt, 'fake_group')
     self.configuration.available_devices = ['/dev/loop1', '/dev/loop2']
     self.configuration.iscsi_helper = 'tgtadm'
     self.host = 'localhost'
     self.configuration.iscsi_port = 3260
     self.configuration.volume_dd_blocksize = 1234
     self.drv = BlockDeviceDriver(configuration=self.configuration,
                                  host='localhost')