From b2639da71cade8cd3436c903bdfdf640cb013496 Mon Sep 17 00:00:00 2001 From: Crimson Date: Sat, 9 May 2026 11:51:08 +0500 Subject: [PATCH] =?UTF-8?q?fix33:=20=D0=B1=D0=B5=D0=B7=D0=BB=D0=B8=D0=BC?= =?UTF-8?q?=D0=B8=D1=82=D0=BD=D0=B0=D1=8F=20=D0=BA=D0=B2=D0=BE=D1=82=D0=B0?= =?UTF-8?q?=20bootstrap-peer=20=D0=B8=20=D0=B7=D0=B0=D1=89=D0=B8=D1=82?= =?UTF-8?q?=D0=B0=20=D0=BE=D1=82=20=D1=80=D0=B5=D0=B3=D1=80=D0=B5=D1=81?= =?UTF-8?q?=D1=81=D0=B8=D0=B8=20=D0=B2=20acceptance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/dao/sqlite.go | 2 +- tools/build/lib/acceptance.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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"