feat(GOV-009): 建立后端契约与健康检查

This commit is contained in:
2026-08-13 17:26:51 +08:00
parent 3fc703de0b
commit 420aa22342
32 changed files with 1625 additions and 8 deletions
@@ -157,4 +157,19 @@ describe('进程级运行配置', () => {
expect(serialized).not.toContain('password');
expect(serialized).not.toContain('apiKey');
});
it('RocketMQ 在未落地已验证 Node 客户端前禁止启用', () => {
expect(() =>
loadSchedulerConfig({
APP_ENV: 'development',
LOG_LEVEL: 'debug',
SCHEDULER_TIMEZONE: 'Asia/Shanghai',
SCHEDULER_ENABLED: 'true',
...baseRedisEnv,
...disabledRocketMqEnv,
ROCKETMQ_ENABLED: 'true',
ROCKETMQ_SEND_TIMEOUT_MS: '3000',
}),
).toThrow(/RocketMQ Node 客户端/);
});
});