chore(routes): close Shanghai mission and unify code channel
This commit is contained in:
parent
5e2ba5b006
commit
2bf4b63cff
24 changed files with 246 additions and 129 deletions
|
|
@ -20,13 +20,14 @@ test("canonical AI and persona entry files route to the domestic map", () => {
|
|||
assert.match(key, /禁止从本路径恢复.*\/exec/);
|
||||
});
|
||||
|
||||
test("code map resolves only REPO-012 and REPO-014 as current push routes", () => {
|
||||
test("code map resolves only REPO-012, REPO-014 and REPO-015 as current push routes", () => {
|
||||
const codeMap = read(".code-map");
|
||||
assert.match(codeMap, /^REPO-001=HISTORICAL_READ_ONLY_NO_PUSH$/m);
|
||||
assert.match(codeMap, /^REPO-001-HISTORICAL-URL=https:\/\/guanghulab\.com\/fifth-domain\/bingshuo\/fifth-domain\.git$/m);
|
||||
assert.match(codeMap, /^REPO-012=https:\/\/guanghulab\.com\/code\/bingshuo\/guanghu-ice-heart\.git$/m);
|
||||
assert.match(codeMap, /^REPO-014=https:\/\/guanghulab\.com\/code\/bingshuo\/hololake-system-architecture\.git$/m);
|
||||
assert.match(codeMap, /^CURRENT-PUSH-ALLOWLIST=REPO-012,REPO-014$/m);
|
||||
assert.match(codeMap, /^REPO-015=https:\/\/guanghulab\.com\/code\/bingshuo\/grok-build-upstream-mirror\.git$/m);
|
||||
assert.match(codeMap, /^CURRENT-PUSH-ALLOWLIST=REPO-012,REPO-014,REPO-015$/m);
|
||||
assert.match(codeMap, /^REPO-001-LEGACY-SG=/m);
|
||||
assert.match(codeMap, /^FD-REPO-MAP-001=routing\/repository-route-map\.json$/m);
|
||||
assert.match(codeMap, /^FD-WORLD-TREE-001=routing\/fifth-domain-world-tree\.json$/m);
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@ const {
|
|||
resolveSubjectId, search, searchAll,
|
||||
} = require("./server");
|
||||
|
||||
test("repository map exposes only the two current code-channel repositories", () => {
|
||||
test("repository map exposes only the three current code-channel repositories", () => {
|
||||
const map = loadMap();
|
||||
const expectedCodes = ["REPO-012", "REPO-014"];
|
||||
const expectedCodes = ["REPO-012", "REPO-014", "REPO-015"];
|
||||
assert.deepEqual(map.repositories.map(item => item.code), expectedCodes);
|
||||
assert.equal(new Set(map.repositories.map(item => item.code)).size, expectedCodes.length);
|
||||
for (const item of map.repositories) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue