servertest: recapture re-authentication golden data

The probe now stops a refused login's retries; the replay disconnects
there too. Outcomes match the first capture, and user IDs are labels.
This commit is contained in:
Kristoffer Dalby committed 2026-10-27 21:31:35 +00:00
1 parent 5ae0064ef8
commit 9a3553665e
7 files changed
+25100 -23222

No files matched your search

File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+5 -2
View File
@@ -871,7 +871,7 @@ func (r *stepReplay) apply(t *testing.T, step testcapture.Step) map[string]error
}
case "restart", "start", "kill", "shutdown", "logout", "advertise", "set_hostname",
"break_tcp_conns", "rotate_disco_key", "cli":
"break_tcp_conns", "rotate_disco_key", "cli", "disconnect_control":
r.daemon(ctx, t, step.Name, a)
case "retire":
@@ -909,7 +909,10 @@ func (r *stepReplay) daemon(ctx context.Context, t *testing.T, stepName string,
// start follows a kill: the daemon comes back on its state.
require.NoError(t, cl.Restart(ctx, r.hostinfo[a.Node].Clone()), "%s: %s", stepName, a.Kind)
case a.Kind == "kill", a.Kind == "shutdown" && !r.memState[a.Node]:
case a.Kind == "kill", a.Kind == "disconnect_control",
a.Kind == "shutdown" && !r.memState[a.Node]:
// disconnect_control stops a refused login's retries; the next login
// starts a new control client, as every replayed login does.
cl.Disconnect(t)
case a.Kind == "shutdown", a.Kind == "logout", a.Kind == "cli" && args == "logout":