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

pull/3744/head
Michael Li 3 years ago committed by GitHub
parent c3d3000a3e
commit 98f8383a2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
}

Loading…
Cancel
Save