Documentation
¶
Overview ¶
Package integration contains integration tests for Sous.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var SingularityURL string
SingularityURL captures the URL discovered during docker-compose for Singularity
Functions ¶
func BuildAndPushContainer ¶
BuildAndPushContainer builds a container based on the source found in containerDir, and then pushes it to the integration docker registration under tagName
func BuildImageName ¶
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 ¶
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.