def test_get_rg_list(self): rgs = VNXRaidGroup.get(t_cli()) assert_that(len(rgs), equal_to(7)) for rg in rgs: if rg.raid_group_id == 0: verify_raid0(rg) break else: self.fail('RAID group 0 not found.')
def _update_free_pool_capacity(self): pools = VNXPool.get(self._cli) free_in_pool = sum(pools.available_capacity_gbs) rgs = VNXRaidGroup.get(self._cli) free_in_rg = sum([ rg.available_capacity_gbs for rg in rgs if len(rg.list_of_luns) != 0 ]) self._free_storage_pool = free_in_pool + free_in_rg
def test_get_rg_list(self): rgs = VNXRaidGroup.get(t_cli()) assert_that(len(rgs), equal_to(7)) for rg in rgs: if rg.raid_group_id == 0: verify_raid0(rg) break else: self.fail('RAID group 0 not found.')
def get_rg(self, rg_id=None): return VNXRaidGroup.get(self._cli, rg_id)
def test_get_rg(self): rg = VNXRaidGroup.get(t_cli(), 0) verify_raid0(rg)
def test_get_unbound_rg(self): rg = VNXRaidGroup.get(t_cli(), 1) verify_raid_1(rg)
def test_get_rg(self): rg = VNXRaidGroup.get(t_cli(), 0) verify_raid0(rg)