docs: align adr with active production scope

This commit is contained in:
lingniu
2026-07-01 07:06:09 +08:00
parent 18aa32a721
commit 9bd61ac91b
2 changed files with 27 additions and 5 deletions

View File

@@ -83,6 +83,19 @@ class MavenModuleProfileTest {
.doesNotContain("Spring Boot 3.4");
}
@Test
void architectureDecisionsMatchCurrentDefaultProductionSurface() throws Exception {
String decisions = Files.readString(repositoryRoot().resolve("DECISIONS.md"));
assertThat(decisions)
.contains("## ADR-004 信达 PushLegacy only")
.contains("## ADR-011 默认生产面:三协议接入 + 历史 + 统计")
.contains("GB32960、JT808、Yutong MQTT、vehicle-history-app、vehicle-analytics-app")
.contains("Xinda Push 仅保留在 `legacy-xinda` profile")
.doesNotContain("## ADR-004 信达 Push保留模块但彻底重写\n- **Status**: Accepted")
.doesNotContain("Spring Boot 3.4.x");
}
private static Document rootPom() throws Exception {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);