integration

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2016 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package integration contains integration tests for Sous.

Index

Constants

This section is empty.

Variables

View Source
var SingularityURL string

SingularityURL captures the URL discovered during docker-compose for Singularity

Functions

func BuildAndPushContainer

func BuildAndPushContainer(containerDir, tagName string) error

BuildAndPushContainer builds a container based on the source found in containerDir, and then pushes it to the integration docker registration under tagName

func BuildImageName

func BuildImageName(reponame, tag string) string

BuildImageName constructs a simple image name rooted at the SingularityURL

func ResetSingularity

func ResetSingularity()

ResetSingularity clears out the state from the integration singularity service Call it (with and extra call deferred) anywhere integration tests use Singularity

func WrapCompose

func WrapCompose(m *testing.M, composeDir string) (resultCode int)

WrapCompose is used to set up the docker/singularity testing environment. Use like this:

func TestMain(m *testing.M) {
	flag.Parse()
	os.Exit(WrapCompose(m))
}

Importantly, WrapCompose handles panics so that defers will still happen (including shutting down singularity)

Types

This section is empty.

Jump to

Keyboard shortcuts

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