idmtest

package
v5.0.0-...-2679821 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewACLService

func NewACLService(ctx context.Context, svc service.Service, acls ...*idm.ACL) (grpc.ClientConnInterface, error)

func NewRolesService

func NewRolesService(ctx context.Context, svc service.Service, roles ...*idm.Role) (grpc.ClientConnInterface, error)

func NewUsersService

func NewUsersService(ctx context.Context, svc service.Service, users ...*idm.User) (grpc.ClientConnInterface, error)

NewUsersService registers a mock - Warning, passed context must contain necessary data to resolve DAO

func NewWorkspacesService

func NewWorkspacesService(ctx context.Context, svc service.Service, ww ...*idm.Workspace) (grpc.ClientConnInterface, error)

func RegisterIdmMocksWithData

func RegisterIdmMocksWithData(ctx context.Context, testData *TestData) error

Types

type TestData

type TestData struct {
	Users      []*idm.User
	Workspaces []*idm.Workspace
	Roles      []*idm.Role
	ACLs       []*idm.ACL
}

func GetStartData

func GetStartData() (*TestData, error)

func (*TestData) WsSlugToUuid

func (t *TestData) WsSlugToUuid(slug string) string

Jump to

Keyboard shortcuts

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