integration layer; merge work on indicators from forks with existing ingestion pipeline

This commit is contained in:
Roberto Treviño Cervantes
2026-10-23 00:00:14 -06:00
parent b0608fdc70
commit d9245fe9b7
194 changed files with 21773 additions and 848 deletions
+12
View File
@@ -0,0 +1,12 @@
import { describeSqlServer, describeSqlUrl } from './sql-url';
describe('sql-url', () => {
const mssql = { id: 'mssql', label: 'SQL Server', description: '', default_port: 1433, default_schema: 'dbo', available: true };
it('never puts the password in what the UI shows', () => {
const settings = { engine: mssql, host: '10.0.10.41', port: null, database: 'his', user: 'lector', password: 'p@ss:w/rd' };
expect(describeSqlServer(settings)).toBe('his · lector@10.0.10.41:1433');
expect(describeSqlUrl('mysql+pymysql://u:secret@db.local:3307/hospital_legacy')).toBe('hospital_legacy · db.local:3307');
expect(describeSqlUrl('not a url')).toBe('Base de datos');
});
});