canned

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: MIT Imports: 5 Imported by: 0

README

canned-testcontainers

Canned container for tests using the library testcontainers-go.

What does it mean? It means that if you have tests using the library testcontainers-go, you can easily spin up some specific applications without worring about the waiting logic or connection string/client url-building logic.

You can also specify your own images to be initialized using the same logic as one that is already implemented here (i.e. if you create your own SQL Server image with your tables already).

Included Containers

General Purpose
SQL Server for Linux
  • Default Image: mcr.microsoft.com/mssql/server

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNetworkAlias

func AddNetworkAlias(req *testcontainers.GenericContainerRequest, network, alias string)

func GetAliasForNetwork added in v0.0.2

func GetAliasForNetwork(ctx context.Context, req testcontainers.GenericContainerRequest, network string) (string, error)

func GetHostAndPort added in v0.0.2

func GetHostAndPort(ctx context.Context, c testcontainers.Container, exposedPort nat.Port) (host string, port nat.Port, err error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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