[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 удалений

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

@@ -15,25 +15,25 @@ type SamlInterface struct {
mock.Mock
}
// BuildRequest provides a mock function with given fields: relayState
func (_m *SamlInterface) BuildRequest(relayState string) (*model.SamlAuthRequest, *model.AppError) {
ret := _m.Called(relayState)
// BuildRequest provides a mock function with given fields: c, relayState
func (_m *SamlInterface) BuildRequest(c *request.Context, relayState string) (*model.SamlAuthRequest, *model.AppError) {
ret := _m.Called(c, relayState)
var r0 *model.SamlAuthRequest
var r1 *model.AppError
if rf, ok := ret.Get(0).(func(string) (*model.SamlAuthRequest, *model.AppError)); ok {
return rf(relayState)
if rf, ok := ret.Get(0).(func(*request.Context, string) (*model.SamlAuthRequest, *model.AppError)); ok {
return rf(c, relayState)
}
if rf, ok := ret.Get(0).(func(string) *model.SamlAuthRequest); ok {
r0 = rf(relayState)
if rf, ok := ret.Get(0).(func(*request.Context, string) *model.SamlAuthRequest); ok {
r0 = rf(c, relayState)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*model.SamlAuthRequest)
}
}
if rf, ok := ret.Get(1).(func(string) *model.AppError); ok {
r1 = rf(relayState)
if rf, ok := ret.Get(1).(func(*request.Context, string) *model.AppError); ok {
r1 = rf(c, relayState)
} else {
if ret.Get(1) != nil {
r1 = ret.Get(1).(*model.AppError)
@@ -43,13 +43,13 @@ func (_m *SamlInterface) BuildRequest(relayState string) (*model.SamlAuthRequest
return r0, r1
}
// CheckProviderAttributes provides a mock function with given fields: SS, ouser, patch
func (_m *SamlInterface) CheckProviderAttributes(SS *model.SamlSettings, ouser *model.User, patch *model.UserPatch) string {
ret := _m.Called(SS, ouser, patch)
// CheckProviderAttributes provides a mock function with given fields: c, SS, ouser, patch
func (_m *SamlInterface) CheckProviderAttributes(c *request.Context, SS *model.SamlSettings, ouser *model.User, patch *model.UserPatch) string {
ret := _m.Called(c, SS, ouser, patch)
var r0 string
if rf, ok := ret.Get(0).(func(*model.SamlSettings, *model.User, *model.UserPatch) string); ok {
r0 = rf(SS, ouser, patch)
if rf, ok := ret.Get(0).(func(*request.Context, *model.SamlSettings, *model.User, *model.UserPatch) string); ok {
r0 = rf(c, SS, ouser, patch)
} else {
r0 = ret.Get(0).(string)
}
@@ -57,13 +57,13 @@ func (_m *SamlInterface) CheckProviderAttributes(SS *model.SamlSettings, ouser *
return r0
}
// ConfigureSP provides a mock function with given fields:
func (_m *SamlInterface) ConfigureSP() error {
ret := _m.Called()
// ConfigureSP provides a mock function with given fields: c
func (_m *SamlInterface) ConfigureSP(c *request.Context) error {
ret := _m.Called(c)
var r0 error
if rf, ok := ret.Get(0).(func() error); ok {
r0 = rf()
if rf, ok := ret.Get(0).(func(*request.Context) error); ok {
r0 = rf(c)
} else {
r0 = ret.Error(0)
}
@@ -99,23 +99,23 @@ func (_m *SamlInterface) DoLogin(c *request.Context, encodedXML string, relaySta
return r0, r1
}
// GetMetadata provides a mock function with given fields:
func (_m *SamlInterface) GetMetadata() (string, *model.AppError) {
ret := _m.Called()
// GetMetadata provides a mock function with given fields: c
func (_m *SamlInterface) GetMetadata(c *request.Context) (string, *model.AppError) {
ret := _m.Called(c)
var r0 string
var r1 *model.AppError
if rf, ok := ret.Get(0).(func() (string, *model.AppError)); ok {
return rf()
if rf, ok := ret.Get(0).(func(*request.Context) (string, *model.AppError)); ok {
return rf(c)
}
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
if rf, ok := ret.Get(0).(func(*request.Context) string); ok {
r0 = rf(c)
} else {
r0 = ret.Get(0).(string)
}
if rf, ok := ret.Get(1).(func() *model.AppError); ok {
r1 = rf()
if rf, ok := ret.Get(1).(func(*request.Context) *model.AppError); ok {
r1 = rf(c)
} else {
if ret.Get(1) != nil {
r1 = ret.Get(1).(*model.AppError)