test

package
v2.12.4 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 4 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.
	// Read more about it here: http://github.com/kong/go-echo
	EchoImage    = "kong/go-echo:0.3.0"
	EchoTCPPort  = 1025
	EchoUDPPort  = 1026
	EchoHTTPPort = 1027

	// 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 = time.Minute * 3
)

Variables

This section is empty.

Functions

func TCPEchoResponds added in v2.6.0

func TCPEchoResponds(url string, podName string) (bool, error)

TCPEchoResponds takes a TCP address URL and a Pod name and checks if a go-echo instance is running on that Pod at that address. It compares an expected message and its length against an expected message, returning true if it is and false and an error explanation if it is not.

Types

This section is empty.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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