Pulse/internal/mock
rcourtman ab0b0b14ae Align the service availability fixture test with the check-row contract
8d23529c0 made a configured availability check a first-class, source-owned
resource. It no longer collapses into the resource it matches: the
network-endpoint row survives and owns probe status, incidents, history and
the outgoing checks relationship, while the matched resource carries an
additive facet. The unified-resources contract states that explicitly.

TestFixtureGraphAttachesServiceAvailabilityFixturesToServiceResources still
asserted the old collapsing model. It failed any service target that remained
a network endpoint, selected the matched service by target ID alone even
though the check row now carries the same ID, and looked for the checks edge
on the matched resource rather than on the check that owns it.

The test now pins the documented behaviour. Both the Docker and Kubernetes
checks must keep their source-owned endpoint row, the matched service is
selected by resource type, and the outgoing checks edge is asserted on the
check row for both targets rather than only for Docker.

This failure was invisible in CI. Build and Test runs the frontend suite
before the Go suites, and the frontend has been red since 2026-07-23, so no
Go package ran on main for over a day.

Verified: internal/mock, internal/dockeragent and internal/websocket, the
three packages the first completed post-frontend-fix run reported, plus
gofmt, the canonical completion guard, the status, control-plane, registry
and contract audits, and all thirteen release-control unit test modules.
2026-07-24 23:31:50 +01:00
..
action_fixtures.go Add mock action lifecycle data 2026-07-13 16:24:06 +01:00
action_fixtures_test.go Add mock action lifecycle data 2026-07-13 16:24:06 +01:00
alert_history.go alerts(history): carry alert metadata to the frontend so resourceType resolves 2026-06-11 19:53:45 +01:00
availability_fixtures.go Build canonical availability resource facets 2026-07-19 15:11:01 +01:00
branchcov0723pm_test.go Cover eval scenario catalog, control-plane printers and pure helpers 2026-07-23 16:42:08 +01:00
canonical_api_guardrails_test.go Make fixture graph the only mock runtime API 2026-03-31 15:42:16 +01:00
config_validation.go Make demo mock cadence configurable 2026-04-11 13:50:38 +01:00
config_validation_test.go Clear all errcheck and gofmt violations so make lint gates on real findings 2026-06-09 21:42:21 +01:00
demo_scenarios.go Pace mock churn to homelab rates and stop phantom demo change spam 2026-07-08 09:49:03 +01:00
demo_scenarios_test.go Add Kubernetes RBAC inventory to the agent + canonical + UI 2026-05-25 09:25:03 +01:00
discovery_fixtures.go Tighten Discovery drawer signal 2026-05-20 15:55:19 +01:00
discovery_fixtures_filter_branchcov0720am_test.go Add Go branch-coverage tests for unified-resource pure helpers and platform fixtures 2026-07-20 10:49:11 +01:00
discovery_fixtures_test.go Seed mock Discovery fixtures 2026-05-20 14:54:19 +01:00
env_dev.go Remove 198 unreachable Go functions 2026-06-03 12:29:37 +01:00
env_release.go Gate release mock fixtures behind demo entitlement 2026-04-10 12:33:57 +01:00
fixture_graph.go feat: add evidence-based pool health alerts 2026-07-24 12:40:05 +01:00
generator.go Restore release-blocking backend contracts 2026-07-13 21:51:33 +01:00
generator_helpers_coverage_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
generator_test.go Restore release-blocking backend contracts 2026-07-13 21:51:33 +01:00
integration.go Reuse mock history seeds across tenants 2026-07-20 06:30:55 +01:00
integration_additional_test.go Make demo mock cadence configurable 2026-04-11 13:50:38 +01:00
integration_concurrency_test.go Clear all errcheck and gofmt violations so make lint gates on real findings 2026-06-09 21:42:21 +01:00
integration_coverage_test.go Clear all errcheck and gofmt violations so make lint gates on real findings 2026-06-09 21:42:21 +01:00
integration_release_test.go Gate release mock fixtures behind demo entitlement 2026-04-10 12:33:57 +01:00
integration_security_test.go Clear all errcheck and gofmt violations so make lint gates on real findings 2026-06-09 21:42:21 +01:00
integration_shutdown_test.go Clear all errcheck and gofmt violations so make lint gates on real findings 2026-06-09 21:42:21 +01:00
integration_test.go Make demo mock cadence configurable 2026-04-11 13:50:38 +01:00
metric_personas.go Remove 198 unreachable Go functions 2026-06-03 12:29:37 +01:00
metric_runtime.go Stabilize RC runtime ownership 2026-07-20 07:50:22 +01:00
metric_runtime_test.go Stabilize RC runtime ownership 2026-07-20 07:50:22 +01:00
platform_fixtures.go Remove 198 unreachable Go functions 2026-06-03 12:29:37 +01:00
platform_fixtures_test.go Align the service availability fixture test with the check-row contract 2026-07-24 23:31:50 +01:00
platform_support_contract_test.go Consolidate container and Kubernetes platform tabs 2026-05-24 19:20:14 +01:00
recovery_points.go Remove 198 unreachable Go functions 2026-06-03 12:29:37 +01:00
recovery_points_test.go Clear all errcheck and gofmt violations so make lint gates on real findings 2026-06-09 21:42:21 +01:00
testhelpers_test.go Clear all errcheck and gofmt violations so make lint gates on real findings 2026-06-09 21:42:21 +01:00
truenas_metrics_identity.go Remove 198 unreachable Go functions 2026-06-03 12:29:37 +01:00