v0.282.0: after_setup (the app's own sign-up switch), close sign-up now (decision 49), probes read lists + done_status (R-715)
gates / gates (push) Successful in 27s
gates / gates (push) Successful in 27s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
@@ -55,7 +55,9 @@ func tier2PageServer(t *testing.T, tiers func(context.Context) (agentapi.TiersRe
|
||||
bm.SetStackProvider(&blockProvider{hdd: ""}) // driveless: IsHDDApp false
|
||||
s := &Server{cfg: cfg, settings: sett, stackMgr: sm, backupMgr: bm, logger: lg, version: "test"}
|
||||
s.tiersFn = tiers
|
||||
s.disksFn = func(context.Context) (agentapi.DisksResponse, error) { return agentapi.DisksResponse{Disks: disks}, nil }
|
||||
s.disksFn = func(context.Context) (agentapi.DisksResponse, error) {
|
||||
return agentapi.DisksResponse{Disks: disks}, nil
|
||||
}
|
||||
s.loadTemplates()
|
||||
w := httptest.NewRecorder()
|
||||
s.tier2ConfigPageHandler(w, httptest.NewRequest("GET", "/stacks/privatebin/backup", nil), "privatebin")
|
||||
@@ -83,7 +85,9 @@ func TestR499_Tier2PageSaysWhatIsTrueForThisBox(t *testing.T) {
|
||||
{"same disk (the measured box)", "same_disk", primaryTier("local"), nil},
|
||||
{"own drive", "protected", primaryTier("felhom-backup"), []agentapi.DiskInfo{ownDrive}},
|
||||
{"configured drive gone", "absent", primaryTier("felhom-backup"), nil},
|
||||
{"agent not askable", "unknown", func(context.Context) (agentapi.TiersResponse, error) { return agentapi.TiersResponse{}, errors.New("down") }, nil},
|
||||
{"agent not askable", "unknown", func(context.Context) (agentapi.TiersResponse, error) {
|
||||
return agentapi.TiersResponse{}, errors.New("down")
|
||||
}, nil},
|
||||
}
|
||||
for _, c := range cases {
|
||||
body := tier2PageServer(t, c.tiers, c.disks)
|
||||
|
||||
Reference in New Issue
Block a user