def setUp(self):
     self.data = tpd.PowerMaxData()
     super(PowerMaxISCSITest, self).setUp()
     volume_utils.get_max_over_subscription_ratio = mock.Mock()
     configuration = tpfo.FakeConfiguration(
         None,
         'ISCSITests',
         1,
         1,
         san_ip='1.1.1.1',
         san_login='******',
         vmax_array=self.data.array,
         vmax_srp='SRP_1',
         san_password='******',
         san_api_port=8443,
         vmax_port_groups=[self.data.port_group_name_i])
     rest.PowerMaxRest._establish_rest_session = mock.Mock(
         return_value=tpfo.FakeRequestsSession())
     driver = iscsi.PowerMaxISCSIDriver(configuration=configuration)
     self.driver = driver
     self.common = self.driver.common
     self.masking = self.common.masking
     self.utils = self.common.utils
     self.utils.get_volumetype_extra_specs = (mock.Mock(
         return_value=self.data.vol_type_extra_specs))
Beispiel #2
0
 def setUp(self):
     self.data = tpd.PowerMaxData()
     super(PowerMaxVolumeMetadataDebugTest, self).setUp()
     is_debug = True
     self.volume_metadata = metadata.PowerMaxVolumeMetadata(
         rest.PowerMaxRest, '4.1', is_debug)
     self.utils = self.volume_metadata.utils
     self.rest = self.volume_metadata.rest
Beispiel #3
0
    def setUp(self):
        self.data = tpd.PowerMaxData()
        self.reference_cinder_conf = tpfo.FakeConfiguration(
            None,
            'ProvisionTests',
            1,
            1,
            san_ip='1.1.1.1',
            san_login='******',
            vmax_array=self.data.array,
            vmax_srp='SRP_1',
            san_password='******',
            san_api_port=8443,
            vmax_port_groups=[self.data.port_group_name_i],
            load_balance=True,
            load_balance_real_time=True,
            load_data_format='avg',
            load_look_back=60,
            load_look_back_real_time=10,
            port_group_load_metric='PercentBusy',
            port_load_metric='PercentBusy')
        self.reference_perf_conf = {
            'load_balance': True,
            'load_balance_rt': True,
            'perf_registered': True,
            'rt_registered': True,
            'collection_interval': 5,
            'data_format': 'Average',
            'look_back': 60,
            'look_back_rt': 10,
            'port_group_metric': 'PercentBusy',
            'port_metric': 'PercentBusy'
        }

        super(PowerMaxPerformanceTest, self).setUp()

        volume_utils.get_max_over_subscription_ratio = mock.Mock()
        rest.PowerMaxRest._establish_rest_session = mock.Mock(
            return_value=tpfo.FakeRequestsSession())
        driver = iscsi.PowerMaxISCSIDriver(
            configuration=self.reference_cinder_conf)
        self.driver = driver
        self.common = self.driver.common
        self.performance = self.driver.performance
        self.rest = self.common.rest
Beispiel #4
0
 def setUp(self):
     self.data = tpd.PowerMaxData()
     super(PowerMaxVolumeMetadataNoDebugTest, self).setUp()
     is_debug = False
     self.volume_metadata = metadata.PowerMaxVolumeMetadata(
         rest.PowerMaxRest, '4.0', is_debug)
Beispiel #5
0
 def __init__(self, *args, **kwargs):
     self.data = tpd.PowerMaxData()