@@ -185,7 +185,7 @@ func NewCluster(t *testing.T, options *TestClusterConfig, logger log.Logger, par
185185 MatchingConfig : options .MatchingConfig ,
186186 WorkerConfig : options .WorkerConfig ,
187187 MockAdminClient : options .MockAdminClient ,
188- DomainReplicationTaskExecutor : domain .NewReplicationTaskExecutor (testBase .DomainManager , testBase . DomainAuditManager , clock .NewRealTimeSource (), logger ),
188+ DomainReplicationTaskExecutor : domain .NewReplicationTaskExecutor (testBase .DomainManager , newNoopDomainAuditManager () , clock .NewRealTimeSource (), logger , dynamicproperties . GetBoolPropertyFn ( false ) ),
189189 AuthorizationConfig : aConfig ,
190190 AsyncWFQueues : options .AsyncWFQueues ,
191191 TimeSource : options .TimeSource ,
@@ -266,7 +266,7 @@ func NewPinotTestCluster(t *testing.T, options *TestClusterConfig, logger log.Lo
266266 MatchingConfig : options .MatchingConfig ,
267267 WorkerConfig : options .WorkerConfig ,
268268 MockAdminClient : options .MockAdminClient ,
269- DomainReplicationTaskExecutor : domain .NewReplicationTaskExecutor (testBase .DomainManager , testBase . DomainAuditManager , clock .NewRealTimeSource (), logger ),
269+ DomainReplicationTaskExecutor : domain .NewReplicationTaskExecutor (testBase .DomainManager , newNoopDomainAuditManager () , clock .NewRealTimeSource (), logger , dynamicproperties . GetBoolPropertyFn ( false ) ),
270270 AuthorizationConfig : aConfig ,
271271 PinotConfig : options .PinotConfig ,
272272 PinotClient : pinotClient ,
@@ -354,6 +354,26 @@ func NewPersistenceTestCluster(t *testing.T, clusterConfig *TestClusterConfig) t
354354 return testCluster
355355}
356356
357+ func newNoopDomainAuditManager () persistence.DomainAuditManager {
358+ return & noopDomainAuditManager {}
359+ }
360+
361+ type noopDomainAuditManager struct {}
362+
363+ func (n * noopDomainAuditManager ) GetName () string {
364+ return "noop"
365+ }
366+
367+ func (n * noopDomainAuditManager ) Close () {}
368+
369+ func (n * noopDomainAuditManager ) CreateDomainAuditLog (ctx context.Context , request * persistence.CreateDomainAuditLogRequest ) (* persistence.CreateDomainAuditLogResponse , error ) {
370+ return & persistence.CreateDomainAuditLogResponse {}, nil
371+ }
372+
373+ func (n * noopDomainAuditManager ) GetDomainAuditLogs (ctx context.Context , request * persistence.GetDomainAuditLogsRequest ) (* persistence.GetDomainAuditLogsResponse , error ) {
374+ return & persistence.GetDomainAuditLogsResponse {}, nil
375+ }
376+
357377func setupShards (testBase * persistencetests.TestBase , numHistoryShards int , logger log.Logger ) {
358378 // shard 0 is always created, we create additional shards if needed
359379 for shardID := 1 ; shardID < numHistoryShards ; shardID ++ {
0 commit comments