Merge "Fix names of capabilities for FibreChannel volume boot"

This commit is contained in:
Jenkins 2017-08-21 19:02:56 +00:00 committed by Gerrit Code Review
commit 0011a7726c
2 changed files with 5 additions and 3 deletions

View File

@ -864,7 +864,7 @@ class IRMCVolumeBootMixIn(object):
class IRMCVirtualMediaBoot(base.BootInterface, IRMCVolumeBootMixIn):
"""iRMC Virtual Media boot-related actions."""
capabilities = ['iscsi_volume_boot', 'fc_volume_boot']
capabilities = ['iscsi_volume_boot', 'fibre_channel_volume_boot']
def __init__(self):
"""Constructor of IRMCVirtualMediaBoot.

View File

@ -2489,8 +2489,10 @@ class TestStorageInterfaceUtils(db_base.DbTestCase):
@mock.patch.object(fake, 'FakeDeploy', autospec=True)
def test_populate_storage_driver_internal_info_error(
self, mock_deploy, mock_boot):
mock_deploy.return_value = mock.Mock(capabilities=['fc_volume_deploy'])
mock_boot.return_value = mock.Mock(capabilities=['fc_volume_boot'])
mock_deploy.return_value = mock.Mock(
capabilities=['fibre_channel_volume_deploy'])
mock_boot.return_value = mock.Mock(
capabilities=['fibre_channel_volume_boot'])
obj_utils.create_test_volume_target(
self.context, node_id=self.node.id, volume_type='iscsi',