完成单机TEST统一入口与可靠投递回归收尾

This commit is contained in:
2026-09-29 19:48:34 +08:00
parent 64a70c9f28
commit 6c0a026cc4
89 changed files with 968 additions and 983 deletions
@@ -12,9 +12,9 @@ class ReceivingPhotoUploadConfigurationContractTest {
@Test
void lastlegAcceptsTheSameTenMegabyteLimitAsFileService() throws Exception {
String application = read("lastleg-service/src/main/resources/application.yml");
String overseas = read("config/nacos/overseas/lastleg-service.yml");
String testConfiguration = read("config/nacos/test/lastleg-service.yml");
for (String configuration : new String[]{application, overseas}) {
for (String configuration : new String[]{application, testConfiguration}) {
assertThat(configuration).contains(
"max-file-size: ${LASTLEG_MULTIPART_MAX_FILE_SIZE:10MB}",
"max-request-size: ${LASTLEG_MULTIPART_MAX_REQUEST_SIZE:11MB}");
@@ -170,6 +170,7 @@ class InboundUnloadCompletedOutboxRelayTest {
private LastlegEventOutbox row(EventEnvelope event) throws Exception {
LastlegEventOutbox row = new LastlegEventOutbox();
row.setId(9001L);
row.setEventType(event.eventType());
row.setEventKey("OverseasContainerUnloaded:7001");
row.setPayloadJson(objectMapper.writeValueAsString(event));
return row;