def test__max_volume_size_bytes_raid1(self, mock_get_system): spans = redfish_raid._calculate_spans('1', 2) max_size = redfish_raid._max_volume_size_bytes( '1', self.physical_disks[0:2], self.free_space_bytes, spans_count=spans) self.assertEqual(899460104192, max_size)
def test__max_volume_size_bytes_raid6(self, mock_get_system): spans = redfish_raid._calculate_spans('6', 4) max_size = redfish_raid._max_volume_size_bytes( '6', self.physical_disks[0:4], self.free_space_bytes, spans_count=spans) self.assertEqual(1798920208384, max_size)
def test__max_volume_size_bytes_raid0(self, mock_get_system): spans = redfish_raid._calculate_spans('0', 3) max_size = redfish_raid._max_volume_size_bytes( '0', self.physical_disks[0:3], self.free_space_bytes, spans_count=spans) self.assertEqual(2698380312576, max_size)