feat: sync vehicle monitoring and accumulated platform updates
Add monitoring metrics, numeric sorting, report-time display, vehicle number labels, and map layout fixes. Include accumulated mileage, hydrogen, OneOS authentication, open platform, ingestion, deployment, and UI updates. Exclude temporary files, generated reports, and credentials. Validate frontend 632 tests and production build, API packages, vehicle-map tests, and release installer tests. Gateway suite has one pre-existing date-sensitive identity throttling test failure reproduced on the parent commit.
This commit is contained in:
@@ -34,6 +34,26 @@ type Config struct {
|
||||
OneOSDefaultMenus []string
|
||||
OneOSRequestTimeout time.Duration
|
||||
OneOSSessionTTL time.Duration
|
||||
OneOSProfileEnabled bool
|
||||
OneOSAuthEnabled bool
|
||||
OneOSProfileBaseURL string
|
||||
OneOSProfileServiceToken string
|
||||
OneOSProfileIssuer string
|
||||
OneOSProfileAllowedTenant string
|
||||
OneOSProfileTimeout time.Duration
|
||||
OneOSPublicOrigin string
|
||||
OneOSPasswordEnabled bool
|
||||
OneOSPasswordClientID string
|
||||
OneOSPasswordRSAPublicKey string
|
||||
OneOSLoginTicketExchangePath string
|
||||
OneOSLoginTicketServiceToken string
|
||||
OneOSDevIntegration bool
|
||||
OneOSLocalBackend bool
|
||||
OneOSVehicleQueryScope bool
|
||||
OneOSDevDataProxyURL string
|
||||
OneOSDevDataProxyToken string
|
||||
OneOSLocalOnly bool
|
||||
OneOSVehicleScopePath string
|
||||
DataMode string
|
||||
ExportDir string
|
||||
RequestTimeout time.Duration
|
||||
@@ -93,6 +113,26 @@ func Load() Config {
|
||||
OneOSDefaultMenus: splitCSV(env("ONEOS_SSO_DEFAULT_MENUS", "vehicles")),
|
||||
OneOSRequestTimeout: time.Duration(envInt("ONEOS_SSO_REQUEST_TIMEOUT_MS", 3000)) * time.Millisecond,
|
||||
OneOSSessionTTL: time.Duration(envInt("ONEOS_SSO_SESSION_TTL_MINUTES", 30)) * time.Minute,
|
||||
OneOSProfileEnabled: envBool("ONEOS_PROFILE_ENABLED", false),
|
||||
OneOSAuthEnabled: envBool("ONEOS_AUTH_ENABLED", false),
|
||||
OneOSProfileBaseURL: os.Getenv("ONEOS_PROFILE_BASE_URL"),
|
||||
OneOSProfileServiceToken: os.Getenv("ONEOS_PROFILE_SERVICE_TOKEN"),
|
||||
OneOSProfileIssuer: os.Getenv("ONEOS_PROFILE_ISSUER"),
|
||||
OneOSProfileAllowedTenant: os.Getenv("ONEOS_PROFILE_ALLOWED_TENANT"),
|
||||
OneOSProfileTimeout: time.Duration(envInt("ONEOS_PROFILE_TIMEOUT_MS", 3500)) * time.Millisecond,
|
||||
OneOSPublicOrigin: os.Getenv("ONEOS_PUBLIC_ORIGIN"),
|
||||
OneOSPasswordEnabled: envBool("ONEOS_PASSWORD_ENABLED", false),
|
||||
OneOSPasswordClientID: os.Getenv("ONEOS_PASSWORD_CLIENT_ID"),
|
||||
OneOSPasswordRSAPublicKey: os.Getenv("ONEOS_PASSWORD_RSA_PUBLIC_KEY"),
|
||||
OneOSLoginTicketExchangePath: os.Getenv("ONEOS_LOGIN_TICKET_EXCHANGE_PATH"),
|
||||
OneOSLoginTicketServiceToken: os.Getenv("ONEOS_LOGIN_TICKET_SERVICE_TOKEN"),
|
||||
OneOSDevIntegration: envBool("ONEOS_DEV_INTEGRATION", false),
|
||||
OneOSLocalBackend: envBool("ONEOS_LOCAL_BACKEND", false),
|
||||
OneOSVehicleQueryScope: envBool("ONEOS_VEHICLE_QUERY_SCOPE", false),
|
||||
OneOSDevDataProxyURL: os.Getenv("ONEOS_DEV_DATA_PROXY_URL"),
|
||||
OneOSDevDataProxyToken: os.Getenv("ONEOS_DEV_DATA_PROXY_TOKEN"),
|
||||
OneOSLocalOnly: envBool("ONEOS_LOCAL_ONLY", false),
|
||||
OneOSVehicleScopePath: os.Getenv("ONEOS_VEHICLE_SCOPE_PATH"),
|
||||
DataMode: dataMode(),
|
||||
ExportDir: os.Getenv("EXPORT_DIR"),
|
||||
RequestTimeout: time.Duration(envInt("REQUEST_TIMEOUT_MS", 5000)) * time.Millisecond,
|
||||
|
||||
@@ -79,3 +79,12 @@ func TestLoadReadsHistoryCleanupAutomationSettings(t *testing.T) {
|
||||
t.Fatalf("history cleanup automation settings were not loaded: %+v", cfg)
|
||||
}
|
||||
}
|
||||
|
||||
func TestLoadReadsOneOSLoginTicketServiceToken(t *testing.T) {
|
||||
t.Setenv("ONEOS_LOGIN_TICKET_EXCHANGE_PATH", "/auth/inner/v1/sso/vehicle-platform/token-exchange")
|
||||
t.Setenv("ONEOS_LOGIN_TICKET_SERVICE_TOKEN", "local-fixture-service-credential")
|
||||
cfg := Load()
|
||||
if cfg.OneOSLoginTicketExchangePath != "/auth/inner/v1/sso/vehicle-platform/token-exchange" || cfg.OneOSLoginTicketServiceToken != "local-fixture-service-credential" {
|
||||
t.Fatal("OneOS login-ticket service configuration was not loaded")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user