hub 0.177.0: Reboot guest on the host page (D65 = A, reboot_guest in the agent's closed list, 30-minute expiry); R-1346: the slow-request line and the vouch save's per-leg timing
gates / gates (push) Successful in 1m52s
gates / gates (push) Successful in 1m52s
This commit is contained in:
1 parent
dd3e4137ee
commit
636022dc31
10 files changed
+223
-16
No files matched your search
@@ -176,12 +176,15 @@ func TestHandleHostDetail(t *testing.T) {
|
||||
// remains absent: 2 log requests + 4 operator actions, and the 4 all post to /operator-action.
|
||||
// 2026-10-29 (operator brief, Part 1): plus ONE „Restart controller" per guest of a customer host (the AGENT's closed
|
||||
// list, behind a confirm step; this fixture has one guest). „Clear hold" appears only per held app (none
|
||||
// here). No other button.
|
||||
if got := strings.Count(strings.ToLower(body), "<button"); got != 7 {
|
||||
t.Errorf("host detail has %d buttons, want exactly the 2 log-request + 4 operator-action + 1 restart-controller buttons", got)
|
||||
// here). D65 = A (2026-10-29): plus ONE „Reboot guest" per guest, beside it. No other button.
|
||||
if got := strings.Count(strings.ToLower(body), "<button"); got != 8 {
|
||||
t.Errorf("host detail has %d buttons, want exactly the 2 log-request + 4 operator-action + 1 restart-controller + 1 reboot-guest buttons", got)
|
||||
}
|
||||
if got := strings.Count(body, `action="/hosts/demo-felhom-01/operator-action"`); got != 5 {
|
||||
t.Errorf("operator-action forms = %d, want 5", got)
|
||||
if got := strings.Count(body, `action="/hosts/demo-felhom-01/operator-action"`); got != 6 {
|
||||
t.Errorf("operator-action forms = %d, want 6", got)
|
||||
}
|
||||
if got := strings.Count(body, `value="reboot_guest"`); got != 1 {
|
||||
t.Errorf("reboot_guest forms = %d, want 1 (one guest)", got)
|
||||
}
|
||||
if got := strings.Count(body, `value="restart_controller"`); got != 1 {
|
||||
t.Errorf("restart_controller forms = %d, want 1 (one guest)", got)
|
||||
|
||||
Reference in new issue
Block a user