feat(platform): summarize service status on dashboard
This commit is contained in:
@@ -19,6 +19,9 @@ func TestHandlerDashboardSummary(t *testing.T) {
|
||||
if !strings.Contains(rec.Body.String(), "onlineVehicles") {
|
||||
t.Fatalf("response missing onlineVehicles: %s", rec.Body.String())
|
||||
}
|
||||
if !strings.Contains(rec.Body.String(), "serviceStatuses") || !strings.Contains(rec.Body.String(), "degraded") {
|
||||
t.Fatalf("response missing vehicle service status distribution: %s", rec.Body.String())
|
||||
}
|
||||
}
|
||||
|
||||
func TestHandlerVehicles(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user