test(drive): check quota calculus

This commit is contained in:
Edouard Vanbelle
2026-06-24 23:00:21 +02:00
parent a9a8604322
commit 6b8e2ba49c
8 changed files with 482 additions and 4 deletions
+13
View File
@@ -72,6 +72,19 @@ OXICLOUD_SERVER_HOST=127.0.0.1
# higher = less background DB work. Minimum enforced: 30s.
#OXICLOUD_STORAGE_USAGE_RECONCILE_SECS=600
# Test-only sweep triggers under /api/admin/internal/*.
# When true, exposes:
# POST /api/admin/internal/trigger-sweep — run the storage-usage
# reconciliation synchronously
# POST /api/admin/internal/trigger-gc — run the blob garbage collector
# synchronously
# Used by the Hurl / integration suites to assert post-delete quota
# convergence without waiting out the periodic ticker (default 600 s).
# These endpoints short-circuit operator-visible background cadence, so
# leave OFF in production — when disabled, the routes return 404 even
# to an admin token. Default: false.
#OXICLOUD_ENABLE_ADMIN_INTERNAL_ENDPOINTS=false
# How often (milliseconds) the background job drains storage.tree_etag_dirty
# and bumps folder tree ETags (default: 500). Write paths only enqueue bump
# requests — this is the upper bound on how stale an ancestor folder's ETag