environment

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NetworkName = "test_id_provisioning_network"

	AppName = "app"

	KafkaImage         = "confluentinc/cp-kafka:7.2.0"
	KafkaBrokerPort    = "9092"
	KafkaClientPort    = "9101"
	KafkaContainerName = "broker"

	ZookeeperImage         = "confluentinc/cp-zookeeper:7.2.0"
	ZooKeeperPort          = "2181"
	ZooKeeperContainerName = "zookeeper"
	ZooTickTime            = "2000"

	PostgresImage         = "postgres:14"
	PostgresPort          = "5432"
	PostgresContainerName = "db"
	PostgresUsername      = "admin"
	PostgresPassword      = "password"
	PostgresDB            = "id-provisioning"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainersEnvironment

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

func (*ContainersEnvironment) FinishedDockerComposeEnvironment

func (c *ContainersEnvironment) FinishedDockerComposeEnvironment(t *testing.T)

FinishedDockerComposeEnvironment - finished containers (env) which we created by second way.

func (*ContainersEnvironment) FinishedPureDockerEnvironment

func (c *ContainersEnvironment) FinishedPureDockerEnvironment(t *testing.T, ctx context.Context)

FinishedPureDockerEnvironment - finished containers (env) which we created by first way.

func (*ContainersEnvironment) StartDockerComposeEnvironment

func (c *ContainersEnvironment) StartDockerComposeEnvironment(
	t *testing.T,
	composeFilePaths []string,
	identifier string,
)

StartDockerComposeEnvironment - create and start docker containers env with second way.

func (*ContainersEnvironment) StartPureDockerEnvironment

func (c *ContainersEnvironment) StartPureDockerEnvironment(t *testing.T, ctx context.Context)

StartPureDockerEnvironment - create and start docker containers env with first way.

Jump to

Keyboard shortcuts

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