Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*Options)
func WithPrefix ¶
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.
Click to show internal directories.
Click to hide internal directories.