diff --git a/testing/controller/controller.go b/testing/controller/controller.go index 66115745f..ec5d1e293 100644 --- a/testing/controller/controller.go +++ b/testing/controller/controller.go @@ -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 }