Add dynamoDbClient to CommandDependencies

This commit is contained in:
Chris Eager authored and Chris Eager committed 2026-08-12 16:09:01 -04:00
1 parent 48fd25f01e
commit 17a824954e
7 files changed
+8 -3

No files matched your search

@@ -123,6 +123,7 @@ public record CommandDependencies(
SubscriptionManager subscriptionManager,
DynamicConfigurationManager<DynamicConfiguration> dynamicConfigurationManager,
DynamoDbAsyncClient dynamoDbAsyncClient,
DynamoDbClient dynamoDbClient,
PhoneNumberIdentifiers phoneNumberIdentifiers,
DynamoDbRecoveryManager dynamoDbRecoveryManager) {
@@ -455,6 +456,7 @@ public record CommandDependencies(
subscriptionManager,
dynamicConfigurationManager,
dynamoDbAsyncClient,
dynamoDbClient,
phoneNumberIdentifiers,
dynamoDbRecoveryManager
);
@@ -45,7 +45,7 @@ class ClearExpiredFoundationDbMessagesCommandTest {
super(clock);
this.commandDependencies = new CommandDependencies(null, null, null, null, messagesManager, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
this.commandDependencies = new CommandDependencies(null, null, null, null, messagesManager, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
this.dryRun = dryRun;
}
@@ -86,6 +86,7 @@ class FinishPushNotificationExperimentCommandTest {
null,
null,
null,
null,
null);
//noinspection unchecked
@@ -1,6 +1,5 @@
package org.whispersystems.textsecuregcm.workers;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.mock;
@@ -68,6 +67,7 @@ class NotifyIdleDevicesCommandTest {
null,
null,
null,
null,
null);
this.idleDeviceNotificationScheduler = idleDeviceNotificationScheduler;
@@ -53,6 +53,7 @@ class RegenerateSecondaryDynamoDbTableDataCommandTest {
null,
null,
null,
null,
dynamoDbRecoveryManager);
namespace = new Namespace(Map.of(
@@ -75,6 +75,7 @@ class StartPushNotificationExperimentCommandTest {
null,
null,
null,
null,
null);
}
@@ -40,7 +40,7 @@ public class TrimOversizedFoundationDbMessageQueuesCommandTest {
final boolean dryRun) {
super();
this.commandDependencies = new CommandDependencies(null, null, null, null, messagesManager, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
this.commandDependencies = new CommandDependencies(null, null, null, null, messagesManager, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
this.dryRun = dryRun;
}