test

package
v0.46.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HTTPPort is 80.
	HTTPPort = 80

	// AlternativeHTTPPort is 8080.
	AlternativeHTTPPort = 8080
)

Variables

View Source
var (
	ErrNotEqual    = errors.New("not equal")
	ErrDontContain = errors.New("don't contain")
)

Functions

func EnsureResolveAddress

func EnsureResolveAddress(
	ctx context.Context,
	tb testing.TB,
	tc ResolveAddressTestCase,
	clientsFn func() (k8s.Clients, func(tb testing.TB)),
)

EnsureResolveAddress thelper lint skipped for greater visibility of failure location.

Types

type ResolveAddressTestCase

type ResolveAddressTestCase struct {
	Name string

	Objects []runtime.Object
	// contains filtered or unexported fields
}

func ResolveAddressTestCases

func ResolveAddressTestCases(namespace string) []ResolveAddressTestCase

ResolveAddressTestCases will return the test cases for resolving the address.

Jump to

Keyboard shortcuts

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