test: Add option for logging in test controller (#3738)
This commit is contained in:
1 parent
c3d3000a3e
commit
98f8383a2b
1 file changed
+9
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user