framework

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalFSPrefix = "/tmp/haproxy-ingress"

	PublishSvcName  = "default/publish"
	PublishAddress  = "10.0.1.1"
	PublishHostname = "ingress.local"

	TestPortHTTP  = 28080
	TestPortFront = 28081
	TestPortHTTPS = 28443
	TestPortStat  = 21936
)
View Source
const (
	CertificateIssuerCN = "HAProxy Ingress issuer"
	CertificateClientCN = "HAProxy Ingress client"
)

Variables

This section is empty.

Functions

func AppendStringMap

func AppendStringMap(src, add map[string]string) map[string]string

func CreateCA

func CreateCA(t *testing.T, cn string) (ca, key []byte)

func CreateCertificate

func CreateCertificate(t *testing.T, ca, cakey []byte, cn string, o ...options.Certificate) (crt, key []byte)

func NewFramework

func NewFramework(ctx context.Context, t *testing.T, o ...options.Framework) *framework

func RandomHostName

func RandomHostName() string

func RandomName

func RandomName(prefix string) string

func RandomPort

func RandomPort() int32

func TLSConnection

func TLSConnection(collect assert.TestingT, host string, port int32) *tls.Conn

Types

type EchoResponse

type EchoResponse struct {
	Parsed     bool
	ServerName string
	Port       int
	Path       string
	ReqHeaders map[string]string
}

type Response

type Response struct {
	HTTPResponse *http.Response
	Body         string
	EchoResponse EchoResponse
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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