Documentation ¶
Overview ¶
Package controller is a package meant for internal testing only. The interfaces may change or be removed at any time without warning.
Index ¶
- type Option
- func DisableAuthMethodCreation() Option
- func DisableDatabaseCreation() Option
- func DisableDatabaseDestruction() Option
- func WithConfigFile(f string) Option
- func WithConfigText(ct string) Option
- func WithDatabaseUrl(url string) Option
- func WithDefaultLoginName(ln string) Option
- func WithDefaultOidcAuthMethodId(id string) Option
- func WithDefaultPassword(pw string) Option
- func WithDefaultPasswordAuthMethodId(id string) Option
- func WithRecoveryKms(wrapper wrapping.Wrapper) Option
- func WithRootKms(wrapper wrapping.Wrapper) Option
- func WithWorkerAuthKms(wrapper wrapping.Wrapper) Option
- type TestController
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 ¶
WithConfigFile provides the given ConfigFile to the built TestController. This option cannot be used if WithConfigText is used.
func WithConfigText ¶
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 WithDefaultLoginName ¶
func WithDefaultOidcAuthMethodId ¶ added in v0.3.0
func WithDefaultPassword ¶
func WithDefaultPasswordAuthMethodId ¶ added in v0.3.0
func WithRecoveryKms ¶
func WithRootKms ¶
func WithWorkerAuthKms ¶
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.