test: the reservation guard lives in reserveWorkspaceDeletion; the live-lease delete fixture is an established volume

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pingqiuandClaude Opus 5.5 committed 2026-11-25 21:46:59 -08:00
1 parent 353163e23c
commit f5641b362f
2 files changed
+2 -1

No files matched your search

@@ -13,7 +13,7 @@ import (
func TestDeletionReservationGuardSites(t *testing.T) {
// A new field access or grant-bound writer must join the causal controls.
flagSites := map[string]bool{
"ReserveWorkspaceDeletion": true, "NoLiveWorkspaceLease": true,
"reserveWorkspaceDeletion": true, "NoLiveWorkspaceLease": true,
"applyWithWorkspaceMove": true, "MoveWorkspace": true,
"RenewWorkspaceLease": true, "firstWorkspaceGrant": true,
"regrantWorkspaceLease": true, "extendWorkspaceLease": true,
@@ -125,6 +125,7 @@ func TestVolumeDeleteAuthorityRPCFailureIsUnknown(t *testing.T) {
func TestReserveVolumeDeletionLiveLeaseIsDefiniteAndKeepsRenewing(t *testing.T) {
h, conn, ctx := reviewBindingHost(t)
reviewLegacyBind(t, h, conn, ctx, "live-delete")
establishVolume(t, h, "live-delete") // a volume past creation keeps the live-lease refusal
if _, err := h.Publisher().RenewWorkspaceLease(ctx, "live-delete", "r1", 1); err != nil {
t.Fatal(err)
}