feat: listen_ports + patch_status commands, POSTURE/PATCH/PORTS chips, Scan All Selected button

This commit is contained in:
AetherForge
2026-05-30 23:31:52 -07:00
parent d005d5d07c
commit 159747877c
17 changed files with 421 additions and 41 deletions

View File

@@ -69,26 +69,6 @@ func TestManagerSetReconnectDelayAndVerbose(t *testing.T) {
}
}
func TestEnsurePoolWithBackupsEmptyBackups(t *testing.T) {
m := NewManager(nil, nil)
_, err := m.EnsurePoolWithBackups(&Config{Host: "127.0.0.1", Port: 1, Wallet: "48x"}, nil)
if err == nil {
t.Fatal("expected connection failure to unreachable pool")
}
if !strings.Contains(err.Error(), "unreachable") {
t.Fatalf("unexpected error: %v", err)
}
}
func TestEnsurePoolWithBackupsSkipsInvalidBackup(t *testing.T) {
m := NewManager(nil, nil)
backups := []Config{{Host: "", Port: 0}, {Host: "127.0.0.1", Port: 1, Wallet: "48x"}}
_, err := m.EnsurePoolWithBackups(&Config{Host: "127.0.0.1", Port: 1, Wallet: "48x"}, backups)
if err == nil {
t.Fatal("expected all endpoints unreachable")
}
}
func TestPoolStatusJSONTags(t *testing.T) {
st := PoolStatus{Key: "k", Host: "h", Port: 3333, UseTLS: true, Wallet: "w", Connected: true, Status: "green"}
if st.Key == "" || st.Status != "green" {