[MM-54434] Use job.Logger to capture ldap logs (#24493)

Этот коммит содержится в:
Ben Schumacher
2023-10-06 22:43:21 +02:00
коммит произвёл GitHub
родитель afaf41b587
Коммит aad25be4e1
50 изменённых файлов: 385 добавлений и 426 удалений

Просмотреть файл

@@ -13,7 +13,6 @@ import (
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/plugin"
"github.com/mattermost/mattermost/server/public/shared/i18n"
"github.com/mattermost/mattermost/server/public/shared/request"
"github.com/mattermost/mattermost/server/v8/channels/product"
)
@@ -491,8 +490,7 @@ func TestProductCommands(t *testing.T) {
})
require.NoError(t, err)
ctx := request.EmptyContext(th.TestLogger)
resp, err2 := th.App.ExecuteCommand(ctx, &model.CommandArgs{
resp, err2 := th.App.ExecuteCommand(th.Context, &model.CommandArgs{
TeamId: th.BasicTeam.Id,
ChannelId: th.BasicChannel.Id,
UserId: th.BasicUser.Id,
@@ -522,8 +520,7 @@ func TestProductCommands(t *testing.T) {
})
require.NoError(t, err)
ctx := request.EmptyContext(th.TestLogger)
resp, err2 := th.App.ExecuteCommand(ctx, &model.CommandArgs{
resp, err2 := th.App.ExecuteCommand(th.Context, &model.CommandArgs{
TeamId: th.BasicTeam.Id,
ChannelId: th.BasicChannel.Id,
UserId: th.BasicUser.Id,
@@ -615,8 +612,7 @@ func TestProductCommands(t *testing.T) {
})
require.NoError(t, err)
ctx := request.EmptyContext(th.TestLogger)
resp, err2 := th.App.ExecuteCommand(ctx, &model.CommandArgs{
resp, err2 := th.App.ExecuteCommand(th.Context, &model.CommandArgs{
TeamId: th.BasicTeam.Id,
ChannelId: th.BasicChannel.Id,
UserId: th.BasicUser.Id,