@mock.patch.object(rest_client.KioxiaProvisioner, 'get_info')
@mock.patch.object(kioxia.KumoScaleBaseVolumeDriver, '_get_kumoscale')
def setUp(self, mock_kumoscale, mock_get_info):
    mock_get_info.return_value = success_prov_response
    mock_kumoscale.return_value = rest_client.KioxiaProvisioner(['1.2.3.4'], 'cert', 'token')
    super(KioxiaVolumeTestCase, self).setUp()
    self.cfg = mock.Mock(spec=conf.Configuration)
    self.cfg.volume_backend_name = VOL_BACKEND_NAME
    self.cfg.url = 'dummyURL'
    self.cfg.token = 'dummy.dummy.Rf-dummy-dummy-lE'
    self.cfg.cafile = 'dummy'
    self.cfg.num_replicas = 1
    self.cfg.block_size = 512
    self.cfg.max_iops_per_gb = 1000
    self.cfg.desired_iops_per_gb = 1000
    self.cfg.max_bw_per_gb = 1000
    self.cfg.desired_bw_per_gb = 1000
    self.cfg.same_rack_allowed = False
    self.cfg.max_replica_down_time = 5
    self.cfg.span_allowed = True
    self.cfg.vol_reserved_space_percentage = 20
    self.cfg.provisioning_type = 'THIN'
    self.driver = kioxia.KumoScaleBaseVolumeDriver(configuration=self.cfg)
    self.driver.configuration.get = (lambda *args, **kwargs: {})
    self.driver.num_replicas = 2
    self.expected_stats = {'volume_backend_name': VOL_BACKEND_NAME, 'vendor_name': 'KIOXIA', 'driver_version': self.driver.VERSION, 'storage_protocol': 'NVMeOF', 'consistencygroup_support': False, 'thin_provisioning_support': True, 'multiattach': False, 'total_capacity_gb': 1000, 'free_capacity_gb': 600}
@mock.patch.object(rest_client.KioxiaProvisioner, 'get_info')
@mock.patch.object(kioxia.KumoScaleBaseVolumeDriver, '_get_kumoscale')
def setUp(self, mock_kumoscale, mock_get_info):
    mock_get_info.return_value = success_prov_response
    mock_kumoscale.return_value = rest_client.KioxiaProvisioner(['1.2.3.4'], 'cert', 'token')
    super(KioxiaVolumeTestCase, self).setUp()
    self.cfg = mock.Mock(spec=conf.Configuration)
    self.cfg.volume_backend_name = VOL_BACKEND_NAME
    self.cfg.url = 'dummyURL'
    self.cfg.token = 'dummy.dummy.Rf-dummy-dummy-lE'
    self.cfg.cafile = 'dummy'
    self.cfg.num_replicas = 1
    self.cfg.block_size = 512
    self.cfg.max_iops_per_gb = 1000
    self.cfg.desired_iops_per_gb = 1000
    self.cfg.max_bw_per_gb = 1000
    self.cfg.desired_bw_per_gb = 1000
    self.cfg.same_rack_allowed = False
    self.cfg.max_replica_down_time = 5
    self.cfg.span_allowed = True
    self.cfg.vol_reserved_space_percentage = 20
    self.cfg.provisioning_type = 'THIN'
    self.driver = kioxia.KumoScaleBaseVolumeDriver(configuration=self.cfg)
    self.driver.configuration.get = (lambda *args, **kwargs: {})
    self.driver.num_replicas = 2
    self.expected_stats = {'volume_backend_name': VOL_BACKEND_NAME, 'vendor_name': 'KIOXIA', 'driver_version': self.driver.VERSION, 'storage_protocol': 'NVMeOF', 'consistencygroup_support': False, 'thin_provisioning_support': True, 'multiattach': False, 'total_capacity_gb': 1000, 'free_capacity_gb': 600}