test_utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_EVENTSTORE_DOCKER_REPOSITORY = "docker.pkg.github.com/eventstore/eventstore-client-grpc-testdata/eventstore-client-grpc-testdata"
	DEFAULT_EVENTSTORE_DOCKER_TAG        = "21.6.0-buster-slim"
	DEFAULT_EVENTSTORE_DOCKER_PORT       = "2114"
)

Variables

This section is empty.

Functions

func GetEnableAdminUiWithAtomPub

func GetEnableAdminUiWithAtomPub() map[string]string

func WaitWithTimeout

func WaitWithTimeout(wg *sync.WaitGroup, duration time.Duration) bool

Types

type CloseFunc

type CloseFunc func()

func InitializeGrpcClient

func InitializeGrpcClient(t *testing.T,
	environmentVariableOverrides map[string]string) (connection.GrpcClient, CloseFunc)

func InitializeGrpcClientWithCredentials

func InitializeGrpcClientWithCredentials(t *testing.T,
	username string,
	password string,
	environmentVariableOverrides map[string]string) (connection.GrpcClient, CloseFunc)

func InitializeGrpcClientWithPrePopulatedDatabase

func InitializeGrpcClientWithPrePopulatedDatabase(t *testing.T) (connection.GrpcClient, CloseFunc)

func InitializeGrpcClientWithTLS

func InitializeGrpcClientWithTLS(t *testing.T,
	environmentVariableOverrides map[string]string) (connection.GrpcClient, CloseFunc)

type Container

type Container struct {
	Endpoint string
	Resource *dockertest.Resource
}

Container ...

func InitializeContainerAndGrpcClient

func InitializeContainerAndGrpcClient(t *testing.T,
	environmentVariableOverrides map[string]string) (*Container, connection.GrpcClient)

func StartEventStoreInDockerContainer

func StartEventStoreInDockerContainer(environmentVariableOverrides map[string]string) *Container

func (*Container) Close

func (container *Container) Close()

type EventStoreEnvironmentVariable

type EventStoreEnvironmentVariable string
const (
	EVENTSTORE_DOCKER_REPOSITORY_ENV    EventStoreEnvironmentVariable = "EVENTSTORE_DOCKER_REPOSITORY"
	EVENTSTORE_DOCKER_TAG_ENV           EventStoreEnvironmentVariable = "EVENTSTORE_DOCKER_TAG"
	EVENTSTORE_DOCKER_PORT_ENV          EventStoreEnvironmentVariable = "EVENTSTORE_DOCKER_PORT"
	EVENTSTORE_MAX_APPEND_SIZE_IN_BYTES EventStoreEnvironmentVariable = "EVENTSTORE_MAX_APPEND_SIZE"
)

Jump to

Keyboard shortcuts

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