mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-07-10 00:14:38 +00:00
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.
27 lines
575 B
Go
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)
|
|
}
|
|
}
|
|
}
|