test: Add option for logging in test controller (#3738)

This commit is contained in:
Michael Li authored and GitHub committed 2023-09-15 14:14:12 -04:00
1 parent c3d3000a3e
commit 98f8383a2b
1 file changed
+9
+9
View File
@@ -32,6 +32,7 @@ type option struct {
setRecoveryKms bool
setDatabaseUrl bool
setEnableTemplatedDatabase bool
setEnableEventing bool
}
type Option func(*option) error
@@ -215,6 +216,14 @@ func WithEnableTemplatedDatabase(enable bool) Option {
}
}
func WithEnableEventing() Option {
return func(c *option) error {
c.setEnableEventing = true
c.tcOptions.EnableEventing = true
return nil
}
}
type TestController struct {
*controller.TestController
}