def test_extra_conn_args(self):
        fake_iscsi_initiator = (
            'PCI\\VEN_1077&DEV_2031&SUBSYS_17E8103C&REV_02\\'
            '4&257301f0&0&0010_0')
        self.flags(iscsi_initiator_list=[fake_iscsi_initiator], group='hyperv')
        expected_extra_conn_args = dict(initiator_list=[fake_iscsi_initiator])

        vol_driver = volumeops.ISCSIVolumeDriver()

        self.assertEqual(expected_extra_conn_args,
                         vol_driver._extra_connector_args)
Esempio n. 2
0
 def setUp(self):
     super(ISCSIVolumeDriverTestCase, self).setUp()
     self._volume_driver = volumeops.ISCSIVolumeDriver()
     self._volume_driver._vmutils = mock.MagicMock()
     self._volume_driver._volutils = mock.MagicMock()
Esempio n. 3
0
 def setUp(self):
     super(ISCSIVolumeDriverTestCase, self).setUp()
     self._volume_driver = volumeops.ISCSIVolumeDriver()