[HLCC-ICE-000001][ZY-CONTRIB-20260723-001] feat: 以来光者贡献链启用冰朔第五域个人子频道

This commit is contained in:
光湖代码频道 · 铸渊 2026-07-24 10:39:10 +08:00
commit 5615453e4e
660 changed files with 122355 additions and 0 deletions

View file

@ -0,0 +1,34 @@
const test = require("node:test");
const assert = require("node:assert/strict");
const fs = require("node:fs");
const path = require("node:path");
const root = path.resolve(__dirname, "..");
test("supports the current Ubuntu LTS baselines", () => {
const source = fs.readFileSync(path.join(root, "install.sh"), "utf8");
assert.match(source, /22\\.04\\|24\\.04/);
});
test("official binary download resumes instead of restarting", () => {
const source = fs.readFileSync(path.join(root, "install.sh"), "utf8");
assert.match(source, /--continue-at -/);
assert.match(source, /sha256sum -c/);
});
test("Forgejo stays on loopback and registration is disabled", () => {
const ini = fs.readFileSync(path.join(root, "app.ini.template"), "utf8");
assert.match(ini, /HTTP_ADDR = 127\.0\.0\.1/);
assert.match(ini, /DISABLE_REGISTRATION = true/);
});
test("node belongs to zero-sense and enterprise upstream", () => {
const source = fs.readFileSync(path.join(root, "install.sh"), "utf8");
assert.match(source, /DOMAIN-ZS/);
assert.match(source, /AW-GZ-001/);
assert.doesNotMatch(source, /owner:"ICE-GL/);
});
test("secrets and recipient email are not embedded", () => {
const combined = fs.readdirSync(root).filter(name => fs.statSync(path.join(root, name)).isFile()).map(name => fs.readFileSync(path.join(root, name), "utf8")).join("\n");
assert.doesNotMatch(combined, /@qq\.com|BEGIN .*PRIVATE KEY|Bearer [A-Za-z0-9]/);
});