configs

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyMigrations added in v0.17.0

func ApplyMigrations(t *testing.T, cfg *config.Config)

ApplyMigrations runs all pending SQL and Redis migrations for the given config. E2E tests must call this before starting the app, since the app refuses to start when migrations are pending.

func Basic

func Basic(t *testing.T, opts BasicOpts) config.Config

func CreateRedisClusterConfig added in v0.6.0

func CreateRedisClusterConfig(t *testing.T) *redis.RedisConfig

CreateRedisClusterConfig creates a Redis cluster configuration for testing Returns nil if TEST_REDIS_CLUSTER_URL is not set

Types

type BasicOpts

type BasicOpts struct {
	LogStorage   LogStorageType
	RedisConfig  *redis.RedisConfig // Optional Redis config override
	DeploymentID string             // Optional deployment ID for multi-tenancy testing
}

type LogStorageType

type LogStorageType string
const (
	LogStorageTypePostgres   LogStorageType = "postgres"
	LogStorageTypeClickHouse LogStorageType = "clickhouse"
)

Jump to

Keyboard shortcuts

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