refactor: make raw archive store optional

This commit is contained in:
lingniu
2026-07-01 07:42:16 +08:00
parent ba4bb51a07
commit 51b1dd4174
4 changed files with 29 additions and 1 deletions

View File

@@ -52,6 +52,17 @@ class MavenModuleProfileTest {
.containsExactly("modules/services/vehicle-state-service");
}
@Test
void rawArchiveStorePrototypeIsOptionalAndOutsideDefaultProductionReactor() throws Exception {
Document pom = rootPom();
assertThat(defaultModules(pom))
.doesNotContain("modules/sinks/raw-archive-store");
assertThat(profileModules(pom, "optional-raw-archive-store"))
.containsExactly("modules/sinks/raw-archive-store");
}
@Test
void xindaIsLegacyOnlyAndOutsideDefaultProductionReactor() throws Exception {
Document pom = rootPom();
@@ -121,6 +132,7 @@ class MavenModuleProfileTest {
.contains("Xinda Push 仅保留在 `legacy-xinda` profile")
.contains("JSATL12 仅保留在 `optional-attachments` profile")
.contains("vehicle-state-service 仅保留在 `optional-latest-state` profile")
.contains("raw-archive-store 仅保留在 `optional-raw-archive-store` profile")
.doesNotContain("## ADR-004 信达 Push保留模块但彻底重写\n- **Status**: Accepted")
.doesNotContain("Spring Boot 3.4.x");
}