Merge "CinderFixture: Return a driver_type of fake
within connection_info"
This commit is contained in:
@@ -2616,11 +2616,16 @@ class CinderFixture(fixtures.Fixture):
|
|||||||
_attachment['connector'].get('host')))
|
_attachment['connector'].get('host')))
|
||||||
attachment['connector'] = connector
|
attachment['connector'] = connector
|
||||||
LOG.info('Updating volume attachment: %s', attachment_id)
|
LOG.info('Updating volume attachment: %s', attachment_id)
|
||||||
attachment_ref = {'driver_volume_type': 'fake_type',
|
attachment_ref = {
|
||||||
'id': attachment_id,
|
'id': attachment_id,
|
||||||
'connection_info': {'data':
|
'connection_info': {
|
||||||
{'foo': 'bar',
|
'driver_volume_type': 'fake',
|
||||||
'target_lun': '1'}}}
|
'data': {
|
||||||
|
'foo': 'bar',
|
||||||
|
'target_lun': '1'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if attachment_id == self.SWAP_ERR_ATTACH_ID:
|
if attachment_id == self.SWAP_ERR_ATTACH_ID:
|
||||||
# This intentionally triggers a TypeError for the
|
# This intentionally triggers a TypeError for the
|
||||||
# instance.volume_swap.error versioned notification tests.
|
# instance.volume_swap.error versioned notification tests.
|
||||||
|
Reference in New Issue
Block a user