[MM-54434] Use job.Logger to capture ldap logs (#24493)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
afaf41b587
Коммит
aad25be4e1
@@ -9,7 +9,6 @@ import (
|
||||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/shared/request"
|
||||
"github.com/mattermost/mattermost/server/v8/cmd/mmctl/client"
|
||||
"github.com/mattermost/mattermost/server/v8/cmd/mmctl/printer"
|
||||
|
||||
@@ -71,9 +70,8 @@ func (s *MmctlE2ETestSuite) TestExtractRunCmdF() {
|
||||
|
||||
func (s *MmctlE2ETestSuite) TestExtractJobShowCmdF() {
|
||||
s.SetupTestHelper().InitBasic()
|
||||
ctx := request.EmptyContext(s.th.App.Log())
|
||||
|
||||
job, appErr := s.th.App.CreateJob(ctx, &model.Job{
|
||||
job, appErr := s.th.App.CreateJob(s.th.Context, &model.Job{
|
||||
Type: model.JobTypeExtractContent,
|
||||
Data: map[string]string{},
|
||||
})
|
||||
@@ -83,7 +81,7 @@ func (s *MmctlE2ETestSuite) TestExtractJobShowCmdF() {
|
||||
s.Run("no permissions", func() {
|
||||
printer.Clean()
|
||||
|
||||
job1, appErr := s.th.App.CreateJob(ctx, &model.Job{
|
||||
job1, appErr := s.th.App.CreateJob(s.th.Context, &model.Job{
|
||||
Type: model.JobTypeExtractContent,
|
||||
Data: map[string]string{},
|
||||
})
|
||||
@@ -119,7 +117,6 @@ func (s *MmctlE2ETestSuite) TestExtractJobShowCmdF() {
|
||||
|
||||
func (s *MmctlE2ETestSuite) TestExtractJobListCmdF() {
|
||||
s.SetupTestHelper().InitBasic()
|
||||
ctx := request.EmptyContext(s.th.App.Log())
|
||||
|
||||
s.Run("no permissions", func() {
|
||||
printer.Clean()
|
||||
@@ -160,7 +157,7 @@ func (s *MmctlE2ETestSuite) TestExtractJobListCmdF() {
|
||||
cmd.Flags().Int("per-page", perPage, "")
|
||||
cmd.Flags().Bool("all", false, "")
|
||||
|
||||
_, appErr := s.th.App.CreateJob(ctx, &model.Job{
|
||||
_, appErr := s.th.App.CreateJob(s.th.Context, &model.Job{
|
||||
Type: model.JobTypeExtractContent,
|
||||
Data: map[string]string{},
|
||||
})
|
||||
@@ -168,7 +165,7 @@ func (s *MmctlE2ETestSuite) TestExtractJobListCmdF() {
|
||||
|
||||
time.Sleep(time.Millisecond)
|
||||
|
||||
job2, appErr := s.th.App.CreateJob(ctx, &model.Job{
|
||||
job2, appErr := s.th.App.CreateJob(s.th.Context, &model.Job{
|
||||
Type: model.JobTypeExtractContent,
|
||||
Data: map[string]string{},
|
||||
})
|
||||
@@ -177,7 +174,7 @@ func (s *MmctlE2ETestSuite) TestExtractJobListCmdF() {
|
||||
|
||||
time.Sleep(time.Millisecond)
|
||||
|
||||
job3, appErr := s.th.App.CreateJob(ctx, &model.Job{
|
||||
job3, appErr := s.th.App.CreateJob(s.th.Context, &model.Job{
|
||||
Type: model.JobTypeExtractContent,
|
||||
Data: map[string]string{},
|
||||
})
|
||||
|
||||
Ссылка в новой задаче
Block a user