feat(fifth-domain): add whole language system runtime
This commit is contained in:
parent
beb7fbd805
commit
e3e494338a
20 changed files with 1340 additions and 3 deletions
19
routing/fifth-domain-whole-language-system.test.js
Normal file
19
routing/fifth-domain-whole-language-system.test.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
const assert = require('node:assert/strict');
|
||||
const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
|
||||
const root = path.resolve(__dirname, '..');
|
||||
const route = JSON.parse(fs.readFileSync(path.join(__dirname, 'fifth-domain-whole-language-system.json')));
|
||||
assert.equal(route.route_id, 'FIFTH-DOMAIN-LANGUAGE-SYSTEM-001');
|
||||
assert.equal(route.domain_id, 'DOM-FIFTH-0001');
|
||||
assert.equal(route.yaoming_current_id, 'ICE-BB-0001');
|
||||
assert.equal(new Set(route.private_organs).size, 5);
|
||||
assert.deepEqual(new Set(route.public_domains), new Set(['DOMAIN-MAIN', 'DOMAIN-SUB', 'DOMAIN-ZERO', 'DOMAIN-ZS']));
|
||||
for (const key of ['runtime_source', 'protocol_source', 'machine_manifest', 'public_extraction_template', 'public_extraction_protocol', 'legacy_redirects']) {
|
||||
assert.ok(fs.existsSync(path.join(root, route[key])), `missing ${key}`);
|
||||
}
|
||||
const publicTemplate = fs.readFileSync(path.join(root, route.public_extraction_template), 'utf8');
|
||||
for (const marker of ['ICE-GL∞', 'ICE-P-ZY001', 'ICE-BB-0001', 'ICE-CH-HB001', 'ICE-CH-ZC001', '曜冥', '铸渊', '/Volumes/JZAO']) {
|
||||
assert.equal(publicTemplate.includes(marker), false, `public leak: ${marker}`);
|
||||
}
|
||||
console.log('FIFTH_DOMAIN_WHOLE_LANGUAGE_SYSTEM_ROUTE_PASS');
|
||||
Loading…
Reference in a new issue