testinfra

package
v0.1.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

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
JackTT - Gopher 🇻🇳