|
|
@ -320,3 +320,14 @@ class ScaleIOConnectorTestCase(test_connector.ConnectorTestCase): |
|
|
|
mock_device_size.return_value) |
|
|
|
self.rescan_vols_mock.assert_called_once_with( |
|
|
|
self.connector.RESCAN_VOLS_OP_CODE) |
|
|
|
|
|
|
|
def test_connection_properties_without_failed_over(self): |
|
|
|
"""Handle connection properties with 'failed_over' missing""" |
|
|
|
connection_properties = dict(self.fake_connection_properties) |
|
|
|
connection_properties.pop('failed_over') |
|
|
|
|
|
|
|
self.connector.connect_volume(connection_properties) |
|
|
|
self.get_password_mock.assert_called_once_with( |
|
|
|
scaleio.CONNECTOR_CONF_PATH, |
|
|
|
connection_properties['config_group'], |
|
|
|
False) |