feat(platform): include service status in vehicle resolution

This commit is contained in:
lingniu
2026-07-04 02:29:44 +08:00
parent e7de41894b
commit 58b125912e
4 changed files with 38 additions and 9 deletions

View File

@@ -257,6 +257,9 @@ func TestHandlerVehicleResolveReturnsCanonicalIdentity(t *testing.T) {
if len(body.Data.Protocols) < 2 {
t.Fatalf("resolve should include available source protocols, got %+v", body.Data.Protocols)
}
if body.Data.ServiceStatus == nil || body.Data.ServiceStatus.Status != "degraded" {
t.Fatalf("resolve should include canonical service status, got %+v body=%s", body.Data.ServiceStatus, rec.Body.String())
}
}
func TestHandlerVehicleResolveKeepsUnresolvedKeyword(t *testing.T) {