Merge "CinderFixture: Return a driver_type of `fake` within connection_info"

This commit is contained in:
Zuul 2020-10-24 01:46:23 +00:00 committed by Gerrit Code Review
commit a83001a903
1 changed files with 10 additions and 5 deletions

View File

@ -2616,11 +2616,16 @@ class CinderFixture(fixtures.Fixture):
_attachment['connector'].get('host')))
attachment['connector'] = connector
LOG.info('Updating volume attachment: %s', attachment_id)
attachment_ref = {'driver_volume_type': 'fake_type',
'id': attachment_id,
'connection_info': {'data':
{'foo': 'bar',
'target_lun': '1'}}}
attachment_ref = {
'id': attachment_id,
'connection_info': {
'driver_volume_type': 'fake',
'data': {
'foo': 'bar',
'target_lun': '1'
}
}
}
if attachment_id == self.SWAP_ERR_ATTACH_ID:
# This intentionally triggers a TypeError for the
# instance.volume_swap.error versioned notification tests.