feat: build vehicle data platform and production pipeline

This commit is contained in:
lingniu
2026-07-14 12:35:33 +08:00
parent b452be3b94
commit bb59303a4b
270 changed files with 88016 additions and 1975 deletions

View File

@@ -80,6 +80,13 @@ func TestNewMuxRegistersHealthAndReadinessRoutes(t *testing.T) {
t.Fatalf("%s status = %d body=%s", path, response.Code, response.Body.String())
}
}
request := httptest.NewRequest(http.MethodGet, "/metrics", nil)
response := httptest.NewRecorder()
mux.ServeHTTP(response, request)
if !strings.Contains(response.Body.String(), `vehicle_service_info{service="vehicle-stat-writer"} 1`) {
t.Fatalf("service info metric missing: %s", response.Body.String())
}
}
func TestNewServerReturnsNilWhenAddressIsEmpty(t *testing.T) {