testutils

package
v1.15.6 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ACLAnonymous added in v1.14.4

func ACLAnonymous(t *testing.T) resolver.Result

func ACLNoPermissions added in v1.14.4

func ACLNoPermissions(t *testing.T) resolver.Result

func ACLServiceRead added in v1.14.4

func ACLServiceRead(t *testing.T, serviceName string) resolver.Result

func ACLServiceWriteAny added in v1.14.4

func ACLServiceWriteAny(t *testing.T) resolver.Result

func ACLsDisabled added in v1.14.4

func ACLsDisabled(t *testing.T) resolver.Result

func RunTestServer

func RunTestServer(t *testing.T, services ...GRPCService) net.Addr

func TestStateStore

func TestStateStore(t *testing.T, publisher state.EventPublisher) *state.Store

Types

type FakeFSM

type FakeFSM struct {
	// contains filtered or unexported fields
}

func SetupFSMAndPublisher

func SetupFSMAndPublisher(t *testing.T, config FakeFSMConfig) (*FakeFSM, state.EventPublisher)

func (*FakeFSM) GetStore

func (f *FakeFSM) GetStore() *state.Store

func (*FakeFSM) ReplaceStore

func (f *FakeFSM) ReplaceStore(store *state.Store)

type FakeFSMConfig

type FakeFSMConfig struct {
	Register Registrar
	Refresh  []stream.Topic
	// contains filtered or unexported fields
}

type GRPCService

type GRPCService interface {
	Register(*grpc.Server)
}

type Registrar

type Registrar func(*FakeFSM, *stream.EventPublisher)

Jump to

Keyboard shortcuts

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