test

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEVELOPMENT_ENVIRONMENT_PATH  string = "../../../development-environment"
	DATABASE_ENVIRONMENT_PATH     string = DEVELOPMENT_ENVIRONMENT_PATH + "/database/"
	REST_ENVIRONMENT_PATH         string = DEVELOPMENT_ENVIRONMENT_PATH + "/rest/"
	LOCALSTACK_ENVIRONMENT_PATH   string = DEVELOPMENT_ENVIRONMENT_PATH + "/localstack/"
	GCP_EMULATOR_ENVIRONMENT_PATH string = DEVELOPMENT_ENVIRONMENT_PATH + "/gcp-emulator/"
	RABBITMQ_ENVIRONMENT_PATH     string = DEVELOPMENT_ENVIRONMENT_PATH + "/rabbitmq/"
	WIREMOCK_ENVIRONMENT_PATH     string = DEVELOPMENT_ENVIRONMENT_PATH + "/wiremock/"
)

Variables

This section is empty.

Functions

func InitializeBaseTest

func InitializeBaseTest()

func InitializeCacheDBTest

func InitializeCacheDBTest()

func InitializeGcpEmulator

func InitializeGcpEmulator(path ...string)

func InitializeRabbitmq added in v0.1.3

func InitializeRabbitmq(path ...string)

func InitializeSqlDBTest

func InitializeSqlDBTest()

func InitializeTestLocalstack

func InitializeTestLocalstack(path ...string)

func MountAbsolutPath

func MountAbsolutPath(p string) string

func UseGcpEmulatorContainer

func UseGcpEmulatorContainer(ctx context.Context, configPath string) *gcpEmulatorContainer

Types

type LocalstackContainer

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

func UseLocalstackContainer

func UseLocalstackContainer(ctx context.Context, configPath string) *LocalstackContainer

type PostgresContainer

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

func UsePostgresContainer

func UsePostgresContainer(ctx context.Context) *PostgresContainer

UsePostgresContainer initialize postgres container for integration tests.

func (*PostgresContainer) Dataset

func (c *PostgresContainer) Dataset(basePath string, scripts ...string) error

type RabbitmqContainer added in v0.1.3

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

func UseRabbitmqContainer added in v0.1.3

func UseRabbitmqContainer(ctx context.Context, configPath string) *RabbitmqContainer

type RedisContainer

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

func UseRedisContainer

func UseRedisContainer(ctx context.Context) *RedisContainer

type WiremockContainer

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

func UseWiremockContainer

func UseWiremockContainer(ctx context.Context, configPath string) *WiremockContainer

func (*WiremockContainer) Port

func (c *WiremockContainer) Port() int

Jump to

Keyboard shortcuts

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