feat(GOV-009): 建立后端契约与健康检查
This commit is contained in:
@@ -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 客户端/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user