From 98f8383a2be7fb273a694c818bea2e1a8a6c649d Mon Sep 17 00:00:00 2001 From: Michael Li Date: Fri, 15 Sep 2023 14:14:12 -0400 Subject: [PATCH] test: Add option for logging in test controller (#3738) --- testing/controller/controller.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/testing/controller/controller.go b/testing/controller/controller.go index 66115745f6..ec5d1e2936 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 }