testinfra

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: Apache-2.0 Imports: 31 Imported by: 0 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 DeclareTestAWSInfrastructure

func DeclareTestAWSInfrastructure(ctx context.Context, cfg *mqs.AWSSQSConfig, attributes map[string]string) (string, error)

func DeclareTestGCPInfrastructure

func DeclareTestGCPInfrastructure(ctx context.Context, cfg *mqs.GCPPubSubConfig, endpoint string) error

func EnsureGCP

func EnsureGCP() string

func EnsureLocalStack

func EnsureLocalStack() string

func EnsureRabbitMQ

func EnsureRabbitMQ() string

func GetMockServer

func GetMockServer(t *testing.T) string

func NewClickHouseConfig

func NewClickHouseConfig(t *testing.T) clickhouse.ClickHouseConfig

func NewMQAWSConfig

func NewMQAWSConfig(t *testing.T, attributes map[string]string) mqs.QueueConfig

func NewMQGCPConfig

func NewMQGCPConfig(t *testing.T, attributes map[string]string) mqs.QueueConfig

func NewMQRabbitMQConfig

func NewMQRabbitMQConfig(t *testing.T) mqs.QueueConfig

func NewPostgresConfig

func NewPostgresConfig(t *testing.T) string

func Start

func Start(t *testing.T) func()

func TeardownTestAWSInfrastructure

func TeardownTestAWSInfrastructure(ctx context.Context, cfg *mqs.AWSSQSConfig) error

func TeardownTestGCPInfrastructure

func TeardownTestGCPInfrastructure(ctx context.Context, cfg *mqs.GCPPubSubConfig, endpoint string) error

Types

type Config

type Config struct {
	TestInfra     bool
	ClickHouseURL string
	PostgresURL   string
	LocalStackURL string
	RabbitMQURL   string
	MockServerURL string
	GCPURL        string
	// contains filtered or unexported fields
}

func ReadConfig

func ReadConfig() *Config

type MockServerInfra

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

func NewMockServerInfra

func NewMockServerInfra(baseURL string) *MockServerInfra

func (*MockServerInfra) NewMockDestination

func (mock *MockServerInfra) NewMockDestination(t *testing.T, destination models.Destination)

type PGDB

type PGDB struct{}

Jump to

Keyboard shortcuts

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