def METHOD_NAME(
    self,
    bk_user,
    project_id,
    cluster_id,
    config_id,
    log_collect_result,
    log_collect_meta_data,
    allcontainers_update_params,
):
    t_view = views.LogCollectViewSet.as_view({'put': 'update'})
    request = factory.put(
        f'/api/log_collect/projects/{project_id}/clusters/{cluster_id}/configs/{config_id}/',
        allcontainers_update_params['req_params'],
    )
    force_authenticate(request, bk_user)
    with mock.patch.object(
        LogCollectorClient,
        'update_collect_config',
        return_value=log_collect_result,
    ) as update_collect_config:
        t_view(request, project_id=project_id, cluster_id=cluster_id, pk=config_id)
        update_collect_config.assert_called_with(
            config_id=config_id, config=allcontainers_update_params['config_params']
        )
        assert (
            LogCollectMetadata.objects.get(
                config_id=config_id, project_id=project_id, cluster_id=cluster_id
            ).updator
            == bk_user.username
        )