docs: align tdengine verification with active apps
This commit is contained in:
@@ -137,7 +137,7 @@ class PortainerComposeResourceLimitsTest {
|
||||
String runbook = Files.readString(repositoryRoot()
|
||||
.resolve("docs/operations/vehicle-ingest-tdengine-verification.md"));
|
||||
|
||||
for (String httpPort : List.of("20100", "20400", "20200")) {
|
||||
for (String httpPort : List.of("20100", "20400", "20500", "20200", "20300")) {
|
||||
assertThat(runbook)
|
||||
.contains("curl -sS http://127.0.0.1:" + httpPort + "/actuator/health/liveness")
|
||||
.contains("curl -sS http://127.0.0.1:" + httpPort + "/actuator/health/readiness");
|
||||
@@ -316,6 +316,29 @@ class PortainerComposeResourceLimitsTest {
|
||||
.doesNotContain("repackaged all three app jars");
|
||||
}
|
||||
|
||||
@Test
|
||||
void tdengineVerificationRunbookDocumentsAllActiveProductionApps() throws IOException {
|
||||
String runbook = Files.readString(repositoryRoot()
|
||||
.resolve("docs/operations/vehicle-ingest-tdengine-verification.md"));
|
||||
String activeBuildCommand =
|
||||
"mvn -pl :gb32960-ingest-app,:jt808-ingest-app,:yutong-mqtt-app,:vehicle-history-app,:vehicle-analytics-app -am package -Dmaven.test.skip=true";
|
||||
|
||||
assertThat(runbook)
|
||||
.contains(activeBuildCommand)
|
||||
.contains("modules/apps/gb32960-ingest-app/target/gb32960-ingest-app.jar")
|
||||
.contains("modules/apps/jt808-ingest-app/target/jt808-ingest-app.jar")
|
||||
.contains("modules/apps/yutong-mqtt-app/target/yutong-mqtt-app.jar")
|
||||
.contains("modules/apps/vehicle-history-app/target/vehicle-history-app.jar")
|
||||
.contains("modules/apps/vehicle-analytics-app/target/vehicle-analytics-app.jar")
|
||||
.contains("vehicle.raw.mqtt-yutong.v1")
|
||||
.contains("vehicle.event.mqtt-yutong.v1")
|
||||
.contains("vehicle-history-yutong-mqtt-event")
|
||||
.contains("vehicle-history-yutong-mqtt-raw")
|
||||
.contains("vehicle-analytics-app")
|
||||
.doesNotContain("mvn -pl modules/apps/jt808-ingest-app,modules/apps/gb32960-ingest-app,modules/apps/vehicle-history-app")
|
||||
.doesNotContain("健康检查已确认三个服务");
|
||||
}
|
||||
|
||||
@Test
|
||||
void architectureDocsNameKafkaInsteadOfGenericMq() throws IOException {
|
||||
String decisions = Files.readString(repositoryRoot().resolve("DECISIONS.md"));
|
||||
|
||||
Reference in New Issue
Block a user