usertest

package
v0.0.0-testrgm3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeUserService

type FakeUserService struct {
	ExpectedUser             *user.User
	ExpectedSignedInUser     *user.SignedInUser
	ExpectedError            error
	ExpectedSetUsingOrgError error
	ExpectedSearchUsers      user.SearchUserQueryResult
	ExpectedUserProfileDTO   *user.UserProfileDTO
	ExpectedUserProfileDTOs  []*user.UserProfileDTO
	ExpectedUsageStats       map[string]interface{}

	GetSignedInUserFn func(ctx context.Context, query *user.GetSignedInUserQuery) (*user.SignedInUser, error)
	CreateFn          func(ctx context.Context, cmd *user.CreateUserCommand) (*user.User, error)
	DisableFn         func(ctx context.Context, cmd *user.DisableUserCommand) error
	// contains filtered or unexported fields
}

func NewUserServiceFake

func NewUserServiceFake() *FakeUserService

func (*FakeUserService) BatchDisableUsers

func (f *FakeUserService) BatchDisableUsers(ctx context.Context, cmd *user.BatchDisableUsersCommand) error

func (*FakeUserService) ChangePassword

func (f *FakeUserService) ChangePassword(ctx context.Context, cmd *user.ChangeUserPasswordCommand) error

func (*FakeUserService) Create

func (*FakeUserService) CreateServiceAccount

func (f *FakeUserService) CreateServiceAccount(ctx context.Context, cmd *user.CreateUserCommand) (*user.User, error)

func (*FakeUserService) Delete

func (*FakeUserService) Disable

func (*FakeUserService) GetByEmail

func (f *FakeUserService) GetByEmail(ctx context.Context, query *user.GetUserByEmailQuery) (*user.User, error)

func (*FakeUserService) GetByID

func (f *FakeUserService) GetByID(ctx context.Context, query *user.GetUserByIDQuery) (*user.User, error)

func (*FakeUserService) GetByLogin

func (f *FakeUserService) GetByLogin(ctx context.Context, query *user.GetUserByLoginQuery) (*user.User, error)

func (*FakeUserService) GetProfile

func (*FakeUserService) GetSignedInUser

func (f *FakeUserService) GetSignedInUser(ctx context.Context, query *user.GetSignedInUserQuery) (*user.SignedInUser, error)

func (*FakeUserService) GetSignedInUserWithCacheCtx

func (f *FakeUserService) GetSignedInUserWithCacheCtx(ctx context.Context, query *user.GetSignedInUserQuery) (*user.SignedInUser, error)

func (FakeUserService) GetUsageStats

func (f FakeUserService) GetUsageStats(ctx context.Context) map[string]interface{}

func (*FakeUserService) NewAnonymousSignedInUser

func (f *FakeUserService) NewAnonymousSignedInUser(ctx context.Context) (*user.SignedInUser, error)

func (*FakeUserService) Search

func (*FakeUserService) SetUserHelpFlag

func (f *FakeUserService) SetUserHelpFlag(ctx context.Context, cmd *user.SetUserHelpFlagCommand) error

func (*FakeUserService) SetUsingOrg

func (f *FakeUserService) SetUsingOrg(ctx context.Context, cmd *user.SetUsingOrgCommand) error

func (*FakeUserService) Update

func (*FakeUserService) UpdateLastSeenAt

func (f *FakeUserService) UpdateLastSeenAt(ctx context.Context, cmd *user.UpdateUserLastSeenAtCommand) error

func (*FakeUserService) UpdatePermissions

func (f *FakeUserService) UpdatePermissions(ctx context.Context, userID int64, isAdmin bool) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL