fix33: безлимитная квота bootstrap-peer и защита от регрессии в acceptance

This commit is contained in:
2026-05-09 11:51:08 +05:00
parent 466a572263
commit b2639da71c
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ func ensureSecureBootstrapPeer() error {
name := "bootstrap-admin-peer"
authID := "bootstrap-admin-peer"
remark := "bootstrap peer seeded from HY2XS_ADMIN_CON_PASS"
quota := int64(0)
quota := int64(-1)
download := int64(0)
upload := int64(0)
expires := int64(0)
+3
View File
@@ -37,6 +37,9 @@ run_fix20_acceptance_subset() {
grep -q 'unexpected auth status without machine token' orchestrator/src/steps/smoke.ts || fail "acceptance: missing 403 negative smoke for auth without machine token"
grep -q 'hysteria2/auth?access_token=\${context.config.hysteriaTrafficStatsSecret}' orchestrator/src/steps/smoke.ts || fail "acceptance: smoke auth URL is not tokenized"
log_step "Acceptance: bootstrap peer can pass auth smoke"
grep -q 'quota := int64(-1)' apps/dao/sqlite.go || fail "acceptance: bootstrap peer quota must be unlimited (-1), otherwise install auth smoke fails"
log_step "Acceptance: env rendering maps machine token and fails on unresolved placeholders"
grep -q 'HYSTERIA_API_SECRET: context.config.hysteriaTrafficStatsSecret' orchestrator/src/steps/env.ts || fail "acceptance: writePostInstallEnv must pass HYSTERIA_API_SECRET"
grep -q 'template render failed: unresolved placeholders' orchestrator/src/lib/fs.ts || fail "acceptance: renderTemplate must fail on unresolved placeholders"