Revert "MM-57759: Bump mockery to version 2.42.2 to support go 1.22^" (#26772)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
c76a58b4b8
Коммит
cd3b5b46e1
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make einterfaces-mocks`.
|
||||
|
||||
@@ -19,10 +19,6 @@ type LdapInterface struct {
|
||||
func (_m *LdapInterface) CheckPassword(c request.CTX, id string, password string) *model.AppError {
|
||||
ret := _m.Called(c, id, password)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for CheckPassword")
|
||||
}
|
||||
|
||||
var r0 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string, string) *model.AppError); ok {
|
||||
r0 = rf(c, id, password)
|
||||
@@ -39,10 +35,6 @@ func (_m *LdapInterface) CheckPassword(c request.CTX, id string, password string
|
||||
func (_m *LdapInterface) CheckPasswordAuthData(c request.CTX, authData string, password string) *model.AppError {
|
||||
ret := _m.Called(c, authData, password)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for CheckPasswordAuthData")
|
||||
}
|
||||
|
||||
var r0 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string, string) *model.AppError); ok {
|
||||
r0 = rf(c, authData, password)
|
||||
@@ -59,10 +51,6 @@ func (_m *LdapInterface) CheckPasswordAuthData(c request.CTX, authData string, p
|
||||
func (_m *LdapInterface) CheckProviderAttributes(c request.CTX, LS *model.LdapSettings, ouser *model.User, patch *model.UserPatch) string {
|
||||
ret := _m.Called(c, LS, ouser, patch)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for CheckProviderAttributes")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, *model.LdapSettings, *model.User, *model.UserPatch) string); ok {
|
||||
r0 = rf(c, LS, ouser, patch)
|
||||
@@ -77,10 +65,6 @@ func (_m *LdapInterface) CheckProviderAttributes(c request.CTX, LS *model.LdapSe
|
||||
func (_m *LdapInterface) DoLogin(c request.CTX, id string, password string) (*model.User, *model.AppError) {
|
||||
ret := _m.Called(c, id, password)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DoLogin")
|
||||
}
|
||||
|
||||
var r0 *model.User
|
||||
var r1 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string, string) (*model.User, *model.AppError)); ok {
|
||||
@@ -109,10 +93,6 @@ func (_m *LdapInterface) DoLogin(c request.CTX, id string, password string) (*mo
|
||||
func (_m *LdapInterface) FirstLoginSync(c request.CTX, user *model.User, userAuthService string, userAuthData string, email string) *model.AppError {
|
||||
ret := _m.Called(c, user, userAuthService, userAuthData, email)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for FirstLoginSync")
|
||||
}
|
||||
|
||||
var r0 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, *model.User, string, string, string) *model.AppError); ok {
|
||||
r0 = rf(c, user, userAuthService, userAuthData, email)
|
||||
@@ -129,10 +109,6 @@ func (_m *LdapInterface) FirstLoginSync(c request.CTX, user *model.User, userAut
|
||||
func (_m *LdapInterface) GetADLdapIdFromSAMLId(c request.CTX, authData string) string {
|
||||
ret := _m.Called(c, authData)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetADLdapIdFromSAMLId")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string) string); ok {
|
||||
r0 = rf(c, authData)
|
||||
@@ -147,10 +123,6 @@ func (_m *LdapInterface) GetADLdapIdFromSAMLId(c request.CTX, authData string) s
|
||||
func (_m *LdapInterface) GetAllGroupsPage(rctx request.CTX, page int, perPage int, opts model.LdapGroupSearchOpts) ([]*model.Group, int, *model.AppError) {
|
||||
ret := _m.Called(rctx, page, perPage, opts)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllGroupsPage")
|
||||
}
|
||||
|
||||
var r0 []*model.Group
|
||||
var r1 int
|
||||
var r2 *model.AppError
|
||||
@@ -186,10 +158,6 @@ func (_m *LdapInterface) GetAllGroupsPage(rctx request.CTX, page int, perPage in
|
||||
func (_m *LdapInterface) GetAllLdapUsers(c request.CTX) ([]*model.User, *model.AppError) {
|
||||
ret := _m.Called(c)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetAllLdapUsers")
|
||||
}
|
||||
|
||||
var r0 []*model.User
|
||||
var r1 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func(request.CTX) ([]*model.User, *model.AppError)); ok {
|
||||
@@ -218,10 +186,6 @@ func (_m *LdapInterface) GetAllLdapUsers(c request.CTX) ([]*model.User, *model.A
|
||||
func (_m *LdapInterface) GetGroup(rctx request.CTX, groupUID string) (*model.Group, *model.AppError) {
|
||||
ret := _m.Called(rctx, groupUID)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetGroup")
|
||||
}
|
||||
|
||||
var r0 *model.Group
|
||||
var r1 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string) (*model.Group, *model.AppError)); ok {
|
||||
@@ -250,10 +214,6 @@ func (_m *LdapInterface) GetGroup(rctx request.CTX, groupUID string) (*model.Gro
|
||||
func (_m *LdapInterface) GetSAMLIdFromADLdapId(c request.CTX, authData string) string {
|
||||
ret := _m.Called(c, authData)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetSAMLIdFromADLdapId")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string) string); ok {
|
||||
r0 = rf(c, authData)
|
||||
@@ -268,10 +228,6 @@ func (_m *LdapInterface) GetSAMLIdFromADLdapId(c request.CTX, authData string) s
|
||||
func (_m *LdapInterface) GetUser(c request.CTX, id string) (*model.User, *model.AppError) {
|
||||
ret := _m.Called(c, id)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetUser")
|
||||
}
|
||||
|
||||
var r0 *model.User
|
||||
var r1 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string) (*model.User, *model.AppError)); ok {
|
||||
@@ -300,10 +256,6 @@ func (_m *LdapInterface) GetUser(c request.CTX, id string) (*model.User, *model.
|
||||
func (_m *LdapInterface) GetUserAttributes(rctx request.CTX, id string, attributes []string) (map[string]string, *model.AppError) {
|
||||
ret := _m.Called(rctx, id, attributes)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetUserAttributes")
|
||||
}
|
||||
|
||||
var r0 map[string]string
|
||||
var r1 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string, []string) (map[string]string, *model.AppError)); ok {
|
||||
@@ -332,10 +284,6 @@ func (_m *LdapInterface) GetUserAttributes(rctx request.CTX, id string, attribut
|
||||
func (_m *LdapInterface) GetVendorNameAndVendorVersion(rctx request.CTX) (string, string) {
|
||||
ret := _m.Called(rctx)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetVendorNameAndVendorVersion")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
var r1 string
|
||||
if rf, ok := ret.Get(0).(func(request.CTX) (string, string)); ok {
|
||||
@@ -360,10 +308,6 @@ func (_m *LdapInterface) GetVendorNameAndVendorVersion(rctx request.CTX) (string
|
||||
func (_m *LdapInterface) MigrateIDAttribute(c request.CTX, toAttribute string) error {
|
||||
ret := _m.Called(c, toAttribute)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for MigrateIDAttribute")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string) error); ok {
|
||||
r0 = rf(c, toAttribute)
|
||||
@@ -378,10 +322,6 @@ func (_m *LdapInterface) MigrateIDAttribute(c request.CTX, toAttribute string) e
|
||||
func (_m *LdapInterface) RunTest(rctx request.CTX) *model.AppError {
|
||||
ret := _m.Called(rctx)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RunTest")
|
||||
}
|
||||
|
||||
var r0 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func(request.CTX) *model.AppError); ok {
|
||||
r0 = rf(rctx)
|
||||
@@ -398,10 +338,6 @@ func (_m *LdapInterface) RunTest(rctx request.CTX) *model.AppError {
|
||||
func (_m *LdapInterface) StartSynchronizeJob(c request.CTX, waitForJobToFinish bool, includeRemovedMembers bool) (*model.Job, *model.AppError) {
|
||||
ret := _m.Called(c, waitForJobToFinish, includeRemovedMembers)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for StartSynchronizeJob")
|
||||
}
|
||||
|
||||
var r0 *model.Job
|
||||
var r1 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, bool, bool) (*model.Job, *model.AppError)); ok {
|
||||
@@ -430,10 +366,6 @@ func (_m *LdapInterface) StartSynchronizeJob(c request.CTX, waitForJobToFinish b
|
||||
func (_m *LdapInterface) SwitchToLdap(c request.CTX, userID string, ldapID string, ldapPassword string) *model.AppError {
|
||||
ret := _m.Called(c, userID, ldapID, ldapPassword)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for SwitchToLdap")
|
||||
}
|
||||
|
||||
var r0 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func(request.CTX, string, string, string) *model.AppError); ok {
|
||||
r0 = rf(c, userID, ldapID, ldapPassword)
|
||||
@@ -451,12 +383,13 @@ func (_m *LdapInterface) UpdateProfilePictureIfNecessary(_a0 request.CTX, _a1 mo
|
||||
_m.Called(_a0, _a1, _a2)
|
||||
}
|
||||
|
||||
// NewLdapInterface creates a new instance of LdapInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewLdapInterface(t interface {
|
||||
type mockConstructorTestingTNewLdapInterface interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *LdapInterface {
|
||||
}
|
||||
|
||||
// NewLdapInterface creates a new instance of LdapInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewLdapInterface(t mockConstructorTestingTNewLdapInterface) *LdapInterface {
|
||||
mock := &LdapInterface{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user