refactor: make jsatl12 optional
This commit is contained in:
@@ -30,6 +30,17 @@ class MavenModuleProfileTest {
|
||||
"modules/apps/command-gateway");
|
||||
}
|
||||
|
||||
@Test
|
||||
void jsatl12AttachmentProtocolIsOptionalAndOutsideDefaultProductionReactor() throws Exception {
|
||||
Document pom = rootPom();
|
||||
|
||||
assertThat(defaultModules(pom))
|
||||
.doesNotContain("modules/protocols/protocol-jsatl12");
|
||||
|
||||
assertThat(profileModules(pom, "optional-attachments"))
|
||||
.containsExactly("modules/protocols/protocol-jsatl12");
|
||||
}
|
||||
|
||||
@Test
|
||||
void xindaIsLegacyOnlyAndOutsideDefaultProductionReactor() throws Exception {
|
||||
Document pom = rootPom();
|
||||
@@ -63,6 +74,7 @@ class MavenModuleProfileTest {
|
||||
.contains("Spring Boot " + projectProperty(pom, "spring-boot.version"))
|
||||
.contains("Netty " + projectProperty(pom, "netty.version"))
|
||||
.contains("Eclipse Paho " + projectProperty(pom, "paho-mqtt.version"))
|
||||
.contains("protocol-jsatl12/ 苏标主动安全报警附件(optional-attachments profile)")
|
||||
.contains("event-file-store/ 可选兼容索引(旧 Parquet/DuckDB 路径)")
|
||||
.contains("vehicle-history-app/ TDengine 历史查询 + RAW JSON")
|
||||
.contains("vehicle-analytics-app/ JT808 每日里程指标消费")
|
||||
@@ -92,8 +104,10 @@ class MavenModuleProfileTest {
|
||||
assertThat(decisions)
|
||||
.contains("## ADR-004 信达 Push:Legacy only")
|
||||
.contains("## ADR-011 默认生产面:三协议接入 + 历史 + 统计")
|
||||
.contains("## ADR-012 JSATL12 附件上传:Optional only")
|
||||
.contains("GB32960、JT808、Yutong MQTT、vehicle-history-app、vehicle-analytics-app")
|
||||
.contains("Xinda Push 仅保留在 `legacy-xinda` profile")
|
||||
.contains("JSATL12 仅保留在 `optional-attachments` profile")
|
||||
.doesNotContain("## ADR-004 信达 Push:保留模块但彻底重写\n- **Status**: Accepted")
|
||||
.doesNotContain("Spring Boot 3.4.x");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user