@@ -9,12 +9,12 @@ import http from 'http';
99import net from 'net' ;
1010import request from 'supertest' ;
1111import { ApplicationModule } from '../../../src/app.module.js' ;
12+ import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js' ;
1213import { AllExceptionsFilter } from '../../../src/exceptions/all-exceptions.filter.js' ;
1314import { ValidationException } from '../../../src/exceptions/custom-exceptions/validation-exception.js' ;
1415import { Cacher } from '../../../src/helpers/cache/cacher.js' ;
1516import { DatabaseModule } from '../../../src/shared/database/database.module.js' ;
1617import { DatabaseService } from '../../../src/shared/database/database.service.js' ;
17- import { WinstonLogger } from '../../../src/entities/logging/winston-logger.js' ;
1818import { createTestTable } from '../../utils/create-test-table.js' ;
1919import {
2020 createInitialTestUser ,
@@ -46,7 +46,9 @@ const upstreamConnectionParams = {
4646// Connection DTO that points to the proxy (used in rocketadmin API).
4747// Each call returns a unique username so the mock-api derives a unique
4848// companyId — this isolates each test's connection pool inside the proxy's
49- // per-company concurrency limiter.
49+ // per-company concurrency limiter. The password must match the upstream
50+ // password the mock-api hands back to the proxy, since the proxy now
51+ // verifies client-supplied credentials before forwarding.
5052function createProxyConnectionDto ( ) : {
5153 title : string ;
5254 type : string ;
@@ -65,7 +67,7 @@ function createProxyConnectionDto(): {
6567 host : PROXY_HOST ,
6668 port : PROXY_PORT ,
6769 username,
68- password : 'proxy_pass' ,
70+ password : upstreamConnectionParams . password ,
6971 database : 'postgres' ,
7072 ssh : false ,
7173 ssl : false ,
0 commit comments