testsetup

package
v0.0.0-...-dbb2ee5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNamespaceWithRandomID

func CreateNamespaceWithRandomID(t *testing.T, options ...Option) (testId string, namespaceName string, err error)

Types

type Option

type Option func(*Options)

func WithPrefix

func WithPrefix(prefix string) Option

func WithSidecarInjectionEnabled

func WithSidecarInjectionEnabled() Option

type Options

type Options struct {
	Prefix                   string
	NamespaceCreationOptions []infrastructure.NamespaceOption
}

type TestBackground

type TestBackground struct {
	TestName          string
	Namespace         string
	TargetServiceName string
	TargetServicePort int
	Provider          oauth2.Provider
}

func SetupRandomNamespaceWithOauth2MockAndHttpbin

func SetupRandomNamespaceWithOauth2MockAndHttpbin(t *testing.T, options ...Option) (bckg TestBackground, err error)

SetupRandomNamespaceWithOauth2MockAndHttpbin creates a namespace with a random ID, deploys the oauth2mock and httpbin services, and returns a TestBackground struct. It also sets up the namespace with sidecar injection enabled.

Jump to

Keyboard shortcuts

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