sqlinsight-pro/tests
Søren Eggert Lundsteen Olsen 1c9d24a6a2 Review 1.5: repository: reuse waiting agent requests, active findings only on monitored servers and checks, cleanup on removal
- AddServerRequestAsync returns a ServerTest/SyntheticCheckRun already waiting for the agent (Pending, same kind and
  target) instead of queueing another one, like AddAgentRequestAsync; AgentRequestRow carries TargetId.
- Active server findings and the overview counts leave out removed servers and checks, and paused ones across all
  (a paused one's own list keeps its latest findings, as for instances); findings say ScopeRemoved/ScopePaused.
  GetServerFindingsAsync pages with OFFSET/FETCH.
- Removing a server (in the web UI or a SQL Server host by the agent's sync) detaches its synthetic checks in the same
  transaction (ServerId NULL, serviceName out of the settings); check queries only join servers in use.
- Removing a check clears its sealed password, key id, secret error and last message; a late agent result does not
  write to a removed check. (0018: UPDATE on LastMessage for the web login.)
- 0018: settings and service lists as nvarchar(max) (no 500 on long æøå queries); indexes on SampledAt/LastAt/RunAt
  for the retention deletes. Run details that do not fit are trimmed from the end instead of all dropped.
- One query for the overview's latest CPU/memory and disk collection per server.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-02 15:53:26 +02:00
..
SQLInsight.Agent.Tests Repository and agent: Dynamics AX history (migration 0017), seeding, hub opt-in 2026-10-02 13:53:34 +02:00
SQLInsight.Collectors.Tests Review 1.5: SQL Scripts for Windows servers and synthetic checks follow main's structure and registry 2026-10-02 15:18:24 +02:00
SQLInsight.Community.Tests Docs: Windows-servere og syntetiske tjek (1.5) 2026-10-02 14:59:22 +02:00
SQLInsight.Connectivity.Tests Fase 2: Azure SQL Managed Instance, docs and rule catalog test 2026-09-29 08:23:40 +00:00
SQLInsight.Core.Tests 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
SQLInsight.IntegrationTests Review 1.5: repository: reuse waiting agent requests, active findings only on monitored servers and checks, cleanup on removal 2026-10-02 15:53:26 +02:00
SQLInsight.Licensing.Tests Ship SEOSoft's license key k20261001; agent defaults to the real hub 2026-10-01 07:15:47 +02:00
SQLInsight.Notifications.Tests Fase 4: integration with Prometheus, Grafana, SCOM and scripts 2026-09-29 09:56:01 +00:00
SQLInsight.Rules.Tests Review 1.5: server and check rules never pass unmeasured, cap and stabilize findings, keep sensitive text out of titles 2026-10-02 15:45:44 +02:00
SQLInsight.Servers.Tests 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.Updates.Tests Community-websted og Discourse-forum 2026-09-29 13:45:06 +00:00