test: add go native production smoke
This commit is contained in:
@@ -136,6 +136,14 @@ curl -sS 'http://115.29.187.205:20210/api/stats/daily-metrics?dateFrom=2026-07-0
|
||||
|
||||
分页参数统一使用 `limit` 和 `offset`。
|
||||
|
||||
部署后推荐直接运行 Go 原生生产 smoke:
|
||||
|
||||
```bash
|
||||
python3 tools/go_native_prod_smoke.py --date 2026-07-02 --timeout 8
|
||||
```
|
||||
|
||||
该脚本通过 `20210` HTTP API 验证 GB32960、JT808、宇通 MQTT 的 RAW 查询,JT808 的位置/里程点查询,以及 GB32960/JT808 的 `daily_mileage_km`、`daily_total_mileage_km` 统计。任一检查不达标时退出码为非 0。
|
||||
|
||||
## 部署命令
|
||||
|
||||
在开发机或 CI 构建 Linux amd64:
|
||||
@@ -180,4 +188,3 @@ journalctl -u lingniu-go-realtime-api --since '5 minutes ago' --no-pager
|
||||
- `realtime-api` 正在监听 `20210`。
|
||||
- GB32960、JT808、YUTONG_MQTT 的东八区 RAW 查询均可命中生产数据。
|
||||
- `vehicle_daily_metric` 可查到 `daily_mileage_km` 和 `daily_total_mileage_km`。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user