integration

package
v0.0.0-...-86e4b03 Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManagementPortName = "mgmt"
	PgPortName         = "pg"
)
View Source
const (
	DefaultHost              = "localhost"
	DefaultPort              = "5432"
	DefaultDatabase          = "postgres"
	DefaultUser              = "postgres"
	DefaultPassword          = "12345"
	DefaultConnectionTimeout = 10 * time.Second
	DefaultQueryTimeout      = 10 * time.Second
)
View Source
const (
	Master serviceState = iota + 1
	Replica
	Stopped
	Unavailable
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logging   *Logging     `yaml:"logging"`
	Container []*Container `yaml:"SUT"`
}

func NewConfig

func NewConfig(path string) (cfg *Config, err error)

type Container

type Container struct {
	Image    string   `yaml:"image"`
	Name     string   `yaml:"container_name"`
	Hostname string   `yaml:"hostname"`
	Command  string   `yaml:"command"`
	Env      []string `yaml:"environment"`
	Ports    []Port   `yaml:"ports"`
	Volumes  []string `yaml:"volumes"`
}

type Logging

type Logging struct {
	Level string `yaml:"level"`
}

type Port

type Port struct {
	Name      string `yaml:"name"`
	Published int    `yaml:"published"`
	Target    int    `yaml:"target"`
}

type TestHandle

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

TestHandle contains the test context.

func NewTestHandle

func NewTestHandle(cfg *Config) (*TestHandle, error)

NewTestHandle creates TestContext instance.

func (*TestHandle) Start

func (h *TestHandle) Start() (err error)

func (*TestHandle) Stop

func (h *TestHandle) Stop() (err error)

Jump to

Keyboard shortcuts

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