testutils

package
v1.16.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MPL-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ACLAnonymous

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

func ACLNoPermissions

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

func ACLOperatorRead

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

func ACLOperatorWrite

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

func ACLServiceRead

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

func ACLServiceWriteAny

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

func ACLsDisabled

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