Exemple #1
0
 def setUp(self):
     super(VolumeMountPointTest, self).setUp()
     self.volumeMountPoint = volume.VolumeMountPoint(
         '/mnt/device', '/dev/vdb')
     self.exec_patcher = patch.object(utils,
                                      'execute',
                                      return_value=('', ''))
     self.mock_exec = self.exec_patcher.start()
     self.addCleanup(self.exec_patcher.stop)
Exemple #2
0
 def setUp(self):
     super(VolumeMountPointTest, self).setUp()
     self.patch_conf_property('volume_fstype', 'ext3')
     self.patch_conf_property('format_options', '-m 5')
     self.volumeMountPoint = volume.VolumeMountPoint(
         '/mnt/device', '/dev/vdb')
     self.exec_patcher = patch.object(utils,
                                      'execute',
                                      return_value=('', ''))
     self.mock_exec = self.exec_patcher.start()
     self.addCleanup(self.exec_patcher.stop)
Exemple #3
0
 def setUp(self):
     super(VolumeMountPointTest, self).setUp()
     self.volumeMountPoint = volume.VolumeMountPoint(
         '/mnt/device', '/dev/vdb')