e2e

package
v6.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 18 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 ./...

or

make e2e

docker environment

export HAPROXY_VERSION=2.7; 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 ./...

or

make e2e-docker

where HAPROXY_VERSION is set to desired version of HAProxy

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientResponse

type ClientResponse struct {
	Client         clientnative.HAProxyClient
	Cmd            *exec.Cmd
	TmpDir         string
	HAProxyVersion string
	SocketPath     string
}

func GetClient

func GetClient(t *testing.T) (*ClientResponse, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳