'Test that update_group return successfully.'

@mock.patch.object(huawei_driver.HuaweiBaseDriver, '_get_group_type', return_value=[{'hypermetro': 'true'}])
@mock.patch.object(huawei_driver.huawei_utils, 'get_lun_metadata', return_value={'hypermetro_id': '3400a30d844d0007', 'remote_lun_id': '59'})
@cg_or_cg_snapshot
def test_update_group_success(self, mock_grouptype, mock_metadata):

    ctxt = context.get_admin_context()
    add_volumes = [self.volume]
    remove_volumes = [self.volume]
    model_update = self.driver.update_group(ctxt, self.group, add_volumes, remove_volumes)
    self.assertEqual(fields.GroupStatus.AVAILABLE, model_update[0]['status'], 'Group    update    failed')
