feat(platform): expose deployed release

This commit is contained in:
lingniu
2026-07-04 15:34:37 +08:00
parent 1f069178d6
commit ff36cb4bd1
9 changed files with 32 additions and 1 deletions

View File

@@ -895,6 +895,7 @@ func TestHandlerOpsHealthIncludesVehicleServiceRuntime(t *testing.T) {
AMapSecurityProxyEnabled: true,
AMapSecurityCodeExposed: false,
AMapSecurityServiceHost: "/_AMapService",
PlatformRelease: "platform-20260704153005",
}))
rec := httptest.NewRecorder()
req := httptest.NewRequest(http.MethodGet, "/api/ops/health", nil)
@@ -920,6 +921,9 @@ func TestHandlerOpsHealthIncludesVehicleServiceRuntime(t *testing.T) {
if body.Data.Runtime.AMapSecurityServiceHost != "/_AMapService" {
t.Fatalf("ops health should include AMap security service host, got %+v", body.Data.Runtime)
}
if body.Data.Runtime.PlatformRelease != "platform-20260704153005" {
t.Fatalf("ops health should include platform release, got %+v", body.Data.Runtime)
}
}
func TestHandlerVehicleDataAPIsResolveVehicleKeyword(t *testing.T) {