R-32 (decision 167): RESET purges the off-site folder through the sub-account's own login before deleting it

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:
2026-10-07 10:07:50 +02:00
parent aeca52ea54
commit e03b18ea21
10 changed files with 259 additions and 5 deletions
@@ -5,6 +5,7 @@ package web
// contract of the surrounding POST actions. Groups A + B of the task's test plan.
import (
"context"
"io"
"log"
"net/http"
@@ -221,6 +222,7 @@ func TestCustomerActions_RedirectAnchors(t *testing.T) {
s.SetOffsiteProvisioner(&offsite.Provisioner{
API: hetznerapi.NewFake(), Store: st, Scanner: webTestScanner{},
PoolBoxID: 611714, Location: "fsn1", Logger: log.New(io.Discard, "", 0),
PurgeShared: func(context.Context, string) error { return nil }, // R-32: pinned in internal/offsite
})
cfg := &store.CustomerConfig{
CustomerID: "c1", CustomerName: "Acme", Domain: "acme.hu",