integration

package
v0.0.0-...-6e596f9 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestBankContainerRequest

func TestBankContainerRequest(dbAddr, absoluteMigrationsPath string) tc.GenericContainerRequest

Types

type AccountRequest

type AccountRequest struct {
	Owner    string `json:"owner"`
	Currency string `json:"currency"`
}

type Network

type Network struct {
	tc.Network
	Name string
}

func CreateNetwork

func CreateNetwork(ctx context.Context) (*Network, error)

CreateNetwork creates a network with a random name

func (*Network) ApplyNetworkAlias

func (n *Network) ApplyNetworkAlias(req *tc.GenericContainerRequest, alias string)

ApplyNetworkAlias applies a network alias to a generic container request

func (*Network) TearDown

func (n *Network) TearDown(ctx context.Context)

TearDown tears down the network

type TestBank

type TestBank struct {
	URI string
	// contains filtered or unexported fields
}

func (*TestBank) TearDown

func (tdb *TestBank) TearDown()

TearDown tears down the running bank container

type TestBankClient

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

type TestLogConsumer

type TestLogConsumer struct {
	Msgs []string
	Done chan bool

	// Accepted provides a blocking way of ensuring the logs messages have been consumed.
	// This allows for proper synchronization during Test_StartStop in particular.
	// Please see func devNullAcceptorChan if you're not interested in this synchronization.
	Accepted chan string
}

func (*TestLogConsumer) Accept

func (g *TestLogConsumer) Accept(l tc.Log)

type UserRequest

type UserRequest struct {
	UserName string `json:"username"`
	Password string `json:"password"`
	FullName string `json:"full_name"`
	Email    string `json:"email"`
}

Jump to

Keyboard shortcuts

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