def testGetStorageUnits(self): sts_non_reporting = \ storage.GetDiskTemplatesOfStorageTypes(constants.ST_GLUSTER, constants.ST_SHARED_FILE) disk_templates = constants.DTS_FILEBASED - frozenset(sts_non_reporting) storage_units = storage.GetStorageUnits(self._cfg, disk_templates) self.assertEqual(len(storage_units), len(disk_templates))
def testGetStorageUnitsLvm(self): disk_templates = [constants.DT_PLAIN, constants.DT_DRBD8] storage_units = storage.GetStorageUnits(self._cfg, disk_templates) self.assertEqual(len(storage_units), len(disk_templates))
def testGetStorageUnits(self): disk_templates = constants.DTS_FILEBASED - frozenset( storage.GetDiskTemplatesOfStorageTypes(constants.ST_SHARED_FILE)) storage_units = storage.GetStorageUnits(self._cfg, disk_templates) self.assertEqual(len(storage_units), len(disk_templates))