fix(corporate): restore persisted orchestration APIs with code-only Stage CI
Deploy Canina / deploy (push) Successful in 4m39s
Deploy Canina / deploy (push) Successful in 4m39s
This commit is contained in:
1 parent
4d41a5bbf7
commit
85ef01d337
16 files changed
+2832
-1
No files matched your search
@@ -0,0 +1,16 @@
|
||||
const {test} = require('node:test');
|
||||
const assert = require('node:assert/strict');
|
||||
const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
const root = path.join(__dirname, '..');
|
||||
test('AdminModule registers persisted corporate controller and service', () => {
|
||||
const module = fs.readFileSync(path.join(root,'backend/src/admin/admin.module.ts'),'utf8');
|
||||
assert.match(module, /controllers:\s*\[[\s\S]*?CorporateController/);
|
||||
assert.match(module, /providers:\s*\[[\s\S]*?CorporateService/);
|
||||
});
|
||||
test('develop CI dispatches code-only isolated Stage release before legacy side effects', () => {
|
||||
const deploy = fs.readFileSync(path.join(root,'scripts/deploy.sh'),'utf8');
|
||||
const dispatch = deploy.indexOf('exec bash "$SCRIPT_DIR/release-corporate-stage.sh"');
|
||||
assert.ok(dispatch > 0, 'Stage code-only dispatch required');
|
||||
assert.ok(dispatch < deploy.indexOf('docker network connect'), 'dispatch precedes shared bot and legacy DB changes');
|
||||
});
|
||||
Reference in new issue
Block a user