diff --git a/apps/dao/sqlite.go b/apps/dao/sqlite.go index 7179097..1e68919 100644 --- a/apps/dao/sqlite.go +++ b/apps/dao/sqlite.go @@ -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) diff --git a/tools/build/lib/acceptance.sh b/tools/build/lib/acceptance.sh index e33d0cf..642a156 100644 --- a/tools/build/lib/acceptance.sh +++ b/tools/build/lib/acceptance.sh @@ -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"