e2e

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

README

HAProxy

e2e Testing

testing can be done in two ways, locally if HAProxy is installed, or in docker image

local machine

go test -tags integration ./...

docker environment

export HAPROXY_VERSION=2.4; sed -e "s/alpine:2.3/alpine:$HAPROXY_VERSION/g" e2e/Dockerfile-TestEnv | docker build -t test_env -f - .
docker build -f e2e/Dockerfile -t client-native-test .
docker run --entrypoint "go" client-native-test test -tags integration ./...

where HAPROXY_VERSION is set to desired version of HAProxy

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(t *testing.T) (*clientnative.HAProxyClient, *exec.Cmd, string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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