Use authenticate and Auth Method repo functions (#242)
This commit is contained in:
1 parent
908a299ea3
commit
f84991c0f1
17 files changed
+324
-184
No files matched your search
@@ -114,6 +114,12 @@ type TestControllerOpts struct {
|
||||
// in the normal config.
|
||||
DefaultOrgId string
|
||||
|
||||
// DefaultUsername is the username used when creating the default account.
|
||||
DefaultUsername string
|
||||
|
||||
// DefaultPassword is the password used when creating the default account.
|
||||
DefaultPassword string
|
||||
|
||||
// DisableDatabaseCreation can be set true to disable creating a dev
|
||||
// database
|
||||
DisableDatabaseCreation bool
|
||||
@@ -163,6 +169,13 @@ func NewTestController(t *testing.T, opts *TestControllerOpts) *TestController {
|
||||
tc.b.DefaultOrgId = opts.DefaultOrgId
|
||||
}
|
||||
|
||||
if opts.DefaultUsername != "" {
|
||||
tc.b.DevUsername = opts.DefaultUsername
|
||||
}
|
||||
if opts.DefaultPassword != "" {
|
||||
tc.b.DevPassword = opts.DefaultPassword
|
||||
}
|
||||
|
||||
// Start a logger
|
||||
tc.b.Logger = hclog.New(&hclog.LoggerOptions{
|
||||
Level: hclog.Trace,
|
||||
|
||||
Reference in new issue
Block a user