test: verify gb32960 history tables in production smoke
This commit is contained in:
@@ -182,7 +182,8 @@ def build_check_specs(
|
||||
max_raw_age_minutes: float | None = None,
|
||||
) -> list[CheckSpec]:
|
||||
raw_params = {"dateFrom": date_from, "dateTo": date_to, "limit": 1}
|
||||
history_params = {"protocol": "JT808", "dateFrom": date_from, "dateTo": date_to, "limit": 1}
|
||||
gb32960_history_params = {"protocol": "GB32960", "dateFrom": date_from, "dateTo": date_to, "limit": 1}
|
||||
jt808_history_params = {"protocol": "JT808", "dateFrom": date_from, "dateTo": date_to, "limit": 1}
|
||||
return [
|
||||
CheckSpec(
|
||||
"gb32960.raw",
|
||||
@@ -205,8 +206,10 @@ def build_check_specs(
|
||||
min_raw,
|
||||
max_age_minutes=max_raw_age_minutes,
|
||||
),
|
||||
CheckSpec("jt808.locations", "/api/history/locations", history_params, min_history),
|
||||
CheckSpec("jt808.mileage_points", "/api/history/mileage-points", history_params, min_history),
|
||||
CheckSpec("gb32960.locations", "/api/history/locations", gb32960_history_params, min_history),
|
||||
CheckSpec("gb32960.mileage_points", "/api/history/mileage-points", gb32960_history_params, min_history),
|
||||
CheckSpec("jt808.locations", "/api/history/locations", jt808_history_params, min_history),
|
||||
CheckSpec("jt808.mileage_points", "/api/history/mileage-points", jt808_history_params, min_history),
|
||||
CheckSpec(
|
||||
"gb32960.daily_mileage",
|
||||
"/api/stats/daily-metrics",
|
||||
|
||||
Reference in New Issue
Block a user