package reconcile import ( "testing" "gitea.dooplex.hu/admin/felhom-agent/internal/proxmox" ) // R-1192: a new guest is created with swap = its RAM (left unset, Proxmox gives an LXC 512 MB — the measured freeze, // felhom.eu audits/fixes-2026-10-21/P4-freeze/). COMPANION RED-PROOF: drop params["swap"] in buildBringUpConfig. func TestR1192_BringUpSetsSwapToTheRAM(t *testing.T) { p := buildBringUpConfig(BringUpSpec{MemoryMB: 4096}, proxmox.GuestConfig{}) if p["memory"] != "4096" || p["swap"] != "4096" { t.Fatalf("bring-up params memory=%q swap=%q, want 4096/4096", p["memory"], p["swap"]) } if q := buildBringUpConfig(BringUpSpec{}, proxmox.GuestConfig{}); q["swap"] != "" { t.Fatalf("no memory in the spec → no swap written either, got %q", q["swap"]) } }