test: Refactor to use dbtest package instead of docker

This swaps the test initialization to use the dbtest package so each
test will get a fresh database created from a template database, instead
of a completely new docker container.
This commit is contained in:
Timothy Messier committed 2021-09-09 13:42:01 -04:00
1 parent af5d1af568
commit 75388f727a
19 files changed
+372 -490

No files matched your search

+1
View File
@@ -582,6 +582,7 @@ func NewTestController(t *testing.T, opts *TestControllerOpts) *TestController {
if opts.DisableOidcAuthMethodCreation {
createOpts = append(createOpts, base.WithSkipOidcAuthMethodCreation())
}
createOpts = append(createOpts, base.WithDatabaseTemplate("boundary_template"))
if err := tc.b.CreateDevDatabase(ctx, createOpts...); err != nil {
t.Fatal(err)
}