controller

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

controller is a package meant for internal testing only. The interfaces may change or be removed at any time without warning.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*option) error

func DisableAuthMethodCreation

func DisableAuthMethodCreation() Option

DisableAuthMethodCreation skips creating a default auth method

func DisableDatabaseCreation

func DisableDatabaseCreation() Option

DisableDatabaseCreation skips creating a database in docker and allows one to be provided through a tcOptions.

func DisableDatabaseDestruction

func DisableDatabaseDestruction() Option

DisableDatabaseCreation skips creating a database in docker and allows one to be provided through a tcOptions.

func WithConfigFile

func WithConfigFile(f string) Option

WithConfigFile provides the given ConfigFile to the built TestController. This option cannot be used if WithConfigText is used.

func WithConfigText

func WithConfigText(ct string) Option

WithConfigText configures the TestController sets up the Controller using the provided config text. This option cannot be used if WithConfigFile is used.

func WithDatabaseUrl

func WithDatabaseUrl(url string) Option

func WithDefaultAuthMethodId

func WithDefaultAuthMethodId(id string) Option

func WithDefaultLoginName

func WithDefaultLoginName(ln string) Option

func WithDefaultPassword

func WithDefaultPassword(pw string) Option

func WithRecoveryKms

func WithRecoveryKms(wrapper wrapping.Wrapper) Option

func WithRootKms

func WithRootKms(wrapper wrapping.Wrapper) Option

func WithWorkerAuthKms

func WithWorkerAuthKms(wrapper wrapping.Wrapper) Option

type TestController

type TestController struct {
	*controller.TestController
}

func NewTestController

func NewTestController(t *testing.T, opt ...Option) *TestController

NewTestController blocks until a new TestController is created, returns the url for the TestController and a function that can be called to tear down the controller after it has been used for testing.

Jump to

Keyboard shortcuts

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