mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
refactor(ses): retire the receipt-rule delegations from the SesService facade (#3618)
The receipt-rule family (rule sets, rules, filters) was the one domain the facade only forwarded: 14 one-line delegations plus create/update rule, which merely bound the verified-sender predicate. SesQueryHandler now injects SesReceiptRuleService and SesIdentityService directly and binds that predicate itself, so the facade drops the field, both constructor parameters and the 16 methods, and SesServiceTestBuilder no longer assembles a receipt-rule service with S3/SNS/Lambda mocks. No wire behavior changes; the v1 integration tests and the SDK compat suite cover every action.
This commit is contained in:
1 parent
a5ab1672f9
commit
c6b736ad60
4 files changed
+36
-114
No files matched your search
@@ -2,9 +2,6 @@ package io.github.hectorvent.floci.services.ses;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.github.hectorvent.floci.core.storage.InMemoryStorage;
|
||||
import io.github.hectorvent.floci.services.lambda.LambdaService;
|
||||
import io.github.hectorvent.floci.services.s3.S3Service;
|
||||
import io.github.hectorvent.floci.services.sns.SnsService;
|
||||
import io.github.hectorvent.floci.services.ses.model.AccountDetails;
|
||||
import io.github.hectorvent.floci.services.ses.model.AccountSuppressionAttributes;
|
||||
import io.github.hectorvent.floci.services.ses.model.AccountVdmAttributes;
|
||||
@@ -15,7 +12,6 @@ import io.github.hectorvent.floci.services.ses.model.CustomVerificationEmailTemp
|
||||
import io.github.hectorvent.floci.services.ses.model.DedicatedIpPool;
|
||||
import io.github.hectorvent.floci.services.ses.model.EmailTemplate;
|
||||
import io.github.hectorvent.floci.services.ses.model.Identity;
|
||||
import io.github.hectorvent.floci.services.ses.model.ReceiptRuleSet;
|
||||
import io.github.hectorvent.floci.services.ses.model.SentEmail;
|
||||
import io.github.hectorvent.floci.services.ses.model.SuppressedDestination;
|
||||
import io.github.hectorvent.floci.services.ses.model.Tenant;
|
||||
@@ -49,7 +45,6 @@ final class SesServiceTestBuilder {
|
||||
private final InMemoryStorage<String, ContactList> contactListStore = new InMemoryStorage<>();
|
||||
private final InMemoryStorage<String, Contact> contactStore = new InMemoryStorage<>();
|
||||
private final InMemoryStorage<String, String> policyStore = new InMemoryStorage<>();
|
||||
private final InMemoryStorage<String, ReceiptRuleSet> receiptRuleStore = new InMemoryStorage<>();
|
||||
private final InMemoryStorage<String, CustomVerificationEmailTemplate> cvetStore = new InMemoryStorage<>();
|
||||
private final InMemoryStorage<String, Tenant> tenantStore = new InMemoryStorage<>();
|
||||
private final InMemoryStorage<String, TenantResourceAssociation> tenantAssociationStore =
|
||||
@@ -128,8 +123,6 @@ final class SesServiceTestBuilder {
|
||||
new SesDedicatedIpService(dedicatedIpPoolStore),
|
||||
new SesContactService(contactListStore, contactStore, clock),
|
||||
new SesPolicyService(policyStore, objectMapper),
|
||||
new SesReceiptRuleService(receiptRuleStore, new InMemoryStorage<>(), mock(S3Service.class),
|
||||
mock(SnsService.class), mock(LambdaService.class), clock),
|
||||
new SesCvetService(cvetStore),
|
||||
new SesTenantService(tenantStore, tenantAssociationStore, clock, new SecureRandom()),
|
||||
smtpRelay);
|
||||
|
||||
Reference in new issue
Block a user