fix33: безлимитная квота bootstrap-peer и защита от регрессии в acceptance
This commit is contained in:
+1
-1
@@ -181,7 +181,7 @@ func ensureSecureBootstrapPeer() error {
|
|||||||
name := "bootstrap-admin-peer"
|
name := "bootstrap-admin-peer"
|
||||||
authID := "bootstrap-admin-peer"
|
authID := "bootstrap-admin-peer"
|
||||||
remark := "bootstrap peer seeded from HY2XS_ADMIN_CON_PASS"
|
remark := "bootstrap peer seeded from HY2XS_ADMIN_CON_PASS"
|
||||||
quota := int64(0)
|
quota := int64(-1)
|
||||||
download := int64(0)
|
download := int64(0)
|
||||||
upload := int64(0)
|
upload := int64(0)
|
||||||
expires := int64(0)
|
expires := int64(0)
|
||||||
|
|||||||
@@ -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 '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"
|
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"
|
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 '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"
|
grep -q 'template render failed: unresolved placeholders' orchestrator/src/lib/fs.ts || fail "acceptance: renderTemplate must fail on unresolved placeholders"
|
||||||
|
|||||||
Reference in New Issue
Block a user