fix: auto materialize completed container plans

This commit is contained in:
2026-09-10 17:05:40 +08:00
parent 343c6e278a
commit d37e6cf147
7 changed files with 121 additions and 5 deletions
@@ -68,7 +68,7 @@ class InboundPlanControllerTest {
void platformManualPlanPassesVersionedIdempotentCommand() {
ManualInboundPlanRequest request = manualRequest();
controller.manual(platform(), "manual-key", request);
verify(service).convertManual(request, "manual-key", "7");
verify(containerConversion).convertManualAndAutoMaterialize(request, "manual-key", "7");
}
@Test
@@ -76,7 +76,7 @@ class InboundPlanControllerTest {
AuthenticatedUser customer = new AuthenticatedUser(8L, 100L, 100L, 9L, "customer", "MERCHANT", "WEB", Set.of());
assertThatThrownBy(() -> controller.manual(customer, "manual-key", manualRequest()))
.isInstanceOf(ResponseStatusException.class);
verify(service, never()).convertManual(org.mockito.ArgumentMatchers.any(),
verify(containerConversion, never()).convertManualAndAutoMaterialize(org.mockito.ArgumentMatchers.any(),
org.mockito.ArgumentMatchers.any(), org.mockito.ArgumentMatchers.any());
}