Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
test(infra): refuse a TLS pin for the bundled PostgreSQL at save
Yudhi Armyndharisa9e064e97b42
diff --git a/src/modules/infra/infra-config.persistence.spec.ts b/src/modules/infra/infra-config.persistence.spec.tsindex 248d26b64..563b9190e 100644--- a/src/modules/infra/infra-config.persistence.spec.ts+++ b/src/modules/infra/infra-config.persistence.spec.ts@@ -159,6 +159,12 @@ const invalidBootCases: Array<{body: { database: { type: 'postgres', builtIn: true } },},{ name: 'an exponent-form pool size', stored: database, pins: {}, body: { database: { poolSize: 1e21 } } },+ {+ name: 'a true TLS pin for bundled PostgreSQL',+ stored: { ...database, POSTGRES_BUILTIN: 'true', DATABASE_HOST: 'postgres' },+ pins: { DATABASE_SSL: 'true' },+ body: { database: { type: 'postgres', builtIn: true } },+ },];for (const example of invalidBootCases) {it(`refuses ${example.name} before persisting`, async () => {