Pulse/pkg/licensing/host_lifecycle_test.go
rcourtman 81b31e4d3b Remove monitored-system volume caps
Retire runtime/API/UI monitored-system volume enforcement now that infrastructure monitoring is no longer capped.

Keep only legacy metadata scrubbing and purchase-start compatibility for old max_monitored_systems references.

Rename the remaining preview surface to monitored-system impact and make previews explanatory rather than save-blocking.

Update subsystem contracts and RA7 evidence for the caps-retired invariant.
2026-05-05 12:59:59 +01:00

27 lines
575 B
Go

package licensing
import (
"os"
"strings"
"testing"
)
func TestHostLifecycleCapacityTrackerStaysRetired(t *testing.T) {
source, err := os.ReadFile("host_lifecycle.go")
if err != nil {
t.Fatalf("ReadFile() error = %v", err)
}
for _, retired := range []string{
"HostLifecycleTracker",
"HostStabilizationPeriod",
"HostInactivityTimeout",
"StableActiveHosts",
"RecordHeartbeat",
"monitored-system capacity",
} {
if strings.Contains(string(source), retired) {
t.Fatalf("host lifecycle capacity tracker must stay retired; found %q", retired)
}
}
}