This commit is contained in:
2025-05-29 11:30:42 +00:00
parent f1c012ec30
commit b0beeae19e
18 changed files with 420 additions and 426 deletions

View File

@ -50,11 +50,16 @@ tap.test('should detect and forward non-TLS connections on useHttpProxy ports',
})
};
// Mock security manager
const mockSecurityManager = {
validateIP: () => ({ allowed: true })
};
// Create route connection handler instance
const handler = new RouteConnectionHandler(
mockSettings,
mockConnectionManager as any,
{} as any, // security manager
mockSecurityManager as any, // security manager
{} as any, // tls manager
mockHttpProxyBridge as any,
{} as any, // timeout manager
@ -137,10 +142,14 @@ tap.test('should handle TLS connections normally', async (tapTest) => {
})
};
const mockSecurityManager = {
validateIP: () => ({ allowed: true })
};
const handler = new RouteConnectionHandler(
mockSettings,
mockConnectionManager as any,
{} as any,
mockSecurityManager as any,
mockTlsManager as any,
mockHttpProxyBridge as any,
{} as any,