test

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HTTPBinImage is the container image name we use for deploying the "httpbin" HTTP testing tool.
	// If you need a simple HTTP server for tests you're writing, use this and check the documentation.
	// See: https://github.com/kong/httpbin
	HTTPBinImage = "kong/httpbin:0.1.0"
	HTTPBinPort  = 80

	// EchoImage works with TCP, UDP, HTTP, TLS and responds with basic information about its environment and echo
	// Sample response:
	// Welcome, you are connected to node kind-control-plane.
	// Running on Pod tcp-echo-58ccd6b78d-hn9t8.
	// In namespace foo.
	// With IP address 10.244.0.13.
	// See: http://github.com/kong/go-echo
	EchoImage     = "kong/go-echo:0.5.0"
	EchoTCPPort   = 1025
	EchoUDPPort   = 1026
	EchoHTTPPort  = 1027
	EchoHTTPSPort = 1028

	// GRPCBinImage is the container image name we use for deploying the "grpcbin" GRPC testing tool.
	// See: https://github.com/Kong/grpcbin
	GRPCBinImage = "kong/grpcbin:latest"

	GRPCBinPort  int32 = 9000
	GRPCSBinPort int32 = 9001

	// EnvironmentCleanupTimeout is the amount of time that will be given by the test suite to the
	// testing environment to perform its cleanup when the test suite is shutting down.
	EnvironmentCleanupTimeout = 3 * time.Minute

	// RequestTimeout is the amount of time that will be given to any request to complete.
	RequestTimeout = 10 * time.Second
)

Variables

This section is empty.

Functions

func KonnectServerRegion added in v2.1.3

func KonnectServerRegion() string

KonnectServerRegion returns the region of the Konnect server based on the server URL.

Types

This section is empty.

Directories

Path Synopsis
controllers
Package kongintegration contains integration tests that require a Kong instance to be running, but do not require a Kubernetes cluster nor full Kong Ingress Controller deployment.
Package kongintegration contains integration tests that require a Kong instance to be running, but do not require a Kubernetes cluster nor full Kong Ingress Controller deployment.
manager

Jump to

Keyboard shortcuts

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