Clear M1 milestone bugs (T-37, T-39, T-41, T-42, T-44, T-45, T-46, T-48, T-49, T-51, T-52)
This commit is contained in:
parent
199f7beecd
commit
9e259ca43b
18 changed files with 255 additions and 34 deletions
|
|
@ -266,6 +266,19 @@ describe('Environment safety & multi-env isolation', () => {
|
|||
);
|
||||
});
|
||||
|
||||
test('blocks leading-zero decimal and octal IPv4 loopback quads like 0127.0.0.1 and 0177.0.0.1 (T-37)', () => {
|
||||
for (const host of ['0127.0.0.1', '00127.0.0.1', '0177.0.0.1', '00.00.00.00']) {
|
||||
const cfg = makeConfig({
|
||||
environment: 'development',
|
||||
mongoUri: `mongodb://trading_admin:pass@${host}:27017/stock`,
|
||||
mongoDatabase: 'stock',
|
||||
});
|
||||
expect(() => assertEnvironmentSafety(cfg, 'dataIngestion', {})).toThrow(
|
||||
/cannot open a writable MongoDB connection to QA MongoDB/
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
test('blocks multi-host MongoDB seed lists targeting QA loopback :27017 for dataIngestion and dataPipeline', () => {
|
||||
const qaFirstIngestion = makeConfig({
|
||||
environment: 'development',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue