sqlinsight-pro/tests/SQLInsight.Core.Tests
Søren Eggert Lundsteen Olsen 2345b199fa Review 1.5: disk forecasts, 24-hour event counts, performance gaps and per-user tasks in Core
- DiskForecast.EnoughHistory: false for "ingen målinger endnu" and "for lidt historik",
  so a rule can say "ikke målbar" instead of "fyldes ikke op". Days are counted from
  now (a last point older than its hour is subtracted); FullAt takes the time the
  forecast was made; Describe says "fuld nu" at 0 days.
- ServerEventGroup.Buckets: counts per clock hour, and Recent sums only the hours with
  events in the last 24 hours (FirstAt within the window), so a recurring error no
  longer adds up from when it was first seen. Older groups without buckets still merge.
- ServerPerformanceMath.Sample takes the interval: after a gap of more than three
  intervals CPU and pages/s are null rather than the gap's average stamped now.
  Commit percent is computed in floating point.
- TaskResults.IsUserOrUpdaterTask (a user's SID in the name, OneDrive/Edge/Google
  updaters, User_Feed_Synchronization), HasUserSid and Display (SID replaced by a
  short hash for titles and subjects).
- Tests: forecast from real history, irregular sampling, identical timestamps,
  a shrunk volume, days from now; an error every ten hours over three days; a
  sample after a gap.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-02 15:45:44 +02:00
..
BaselineTests.cs Fase 2: baselines and anomaly detection 2026-09-29 08:01:11 +00:00
ConfigurationFingerprintTests.cs Configuration page with change log 2026-10-02 08:12:26 +02:00
DeltaTests.cs Fase 1: collectors and rule pack (41 rules) 2026-09-29 06:17:08 +00:00
DiskTests.cs Disk speed per drive: IOPS, MB/s and latency 2026-10-02 08:03:11 +02:00
DynamicsAxTests.cs Review 1.4: AX texts in API v1 and the hub without logins or host names; API has what the pages show 2026-10-02 14:29:34 +02:00
ErrorLogTests.cs SQL Server error log without elevated rights (8a) 2026-10-02 10:30:41 +02:00
IndexUsageTests.cs Review 1.2: index usage after a counter reset without a restart 2026-10-02 11:34:17 +02:00
InstanceCapabilitiesTests.cs Fase 2: Azure SQL Managed Instance, docs and rule catalog test 2026-09-29 08:23:40 +00:00
InstanceConfigurationTests.cs Instance configuration core: database selection, sealed credentials, agent request contracts 2026-10-02 13:21:59 +02:00
PrivilegeAnalysisTests.cs Privilege audit: sysadmin and server roles with AD unfolding 2026-10-02 08:39:56 +02:00
QueryStatsDeltaTests.cs Top SQL: collect what the heaviest statements use every 5 minutes 2026-10-01 15:46:45 +02:00
ReadOnlyQueryTests.cs Review 1.5: the read-only check of typed queries can no longer be bypassed 2026-10-02 15:08:34 +02:00
ServerGrantScriptTests.cs Review 1.5: grant-windows-server.ps1 backs up, removes exactly what it gave, and never more than read 2026-10-02 15:31:49 +02:00
SQLInsight.Core.Tests.csproj Dynamics AX core: central detector, per-version schema adapters, read-access GRANT 2026-10-02 13:52:58 +02:00
SqlServerVersionTests.cs Fase 0: solution structure, capability model, rule engine, least-privilege script 2026-09-29 05:40:49 +00:00
SyntheticCheckTests.cs Windows servers and synthetic checks core: data, disk forecast, event dedup, grant script 2026-10-02 14:58:17 +02:00
WaitSamplingTests.cs Wait type drill-down with active session sampling 2026-10-02 08:50:31 +02:00
WindowsServerTests.cs Review 1.5: disk forecasts, 24-hour event counts, performance gaps and per-user tasks in Core 2026-10-02 15:45:44 +02:00