integration layer; merge work on indicators from forks with existing ingestion pipeline
This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user