feat(platform): summarize vehicle source status

This commit is contained in:
lingniu
2026-07-03 21:47:30 +08:00
parent a3a91ef1f8
commit 6352289c25
5 changed files with 147 additions and 28 deletions

View File

@@ -41,7 +41,7 @@ func TestHandlerVehicleDetail(t *testing.T) {
if rec.Code != http.StatusOK {
t.Fatalf("status = %d body=%s", rec.Code, rec.Body.String())
}
for _, want := range []string{"identity", "realtime", "history", "raw", "mileage", "sources"} {
for _, want := range []string{"identity", "realtime", "history", "raw", "mileage", "sources", "sourceStatus"} {
if !strings.Contains(rec.Body.String(), want) {
t.Fatalf("response missing %q: %s", want, rec.Body.String())
}