feat(proxy-tunnel): add proxy endpoint profile test
This commit is contained in:
1 parent
d4c28c5a9a
commit
7edab93ec2
15 files changed
+1085
-92
No files matched your search
@@ -8,12 +8,44 @@ const patterns: [RegExp, string][] = [
|
||||
[/^Agent requires Java 21, but DBX started it with an older Java runtime\. Use DBX managed JRE 21 or select a Java 21 executable in Driver Manager\./, "connection.agentJavaTooOld"],
|
||||
[/^JDBC plugin is not installed\. Install the optional JDBC plugin to use this connection\.$/, "connection.jdbcPluginNotInstalled"],
|
||||
[/^ai\.configNameExists:(.+)$/, "ai.configNameExists"],
|
||||
|
||||
// Tunnel / proxy test messages
|
||||
[/^HTTP CONNECT proxy connection successful \((\d+)\)$/, "settings.tunnelsHttpTestSuccess"],
|
||||
[/^SOCKS5 proxy connection successful$/, "settings.tunnelsSocks5TestSuccess"],
|
||||
[/^SSH tunnel connection successful$/, "settings.tunnelsTestSuccess"],
|
||||
[/^Proxy host is required\.$/, "settings.tunnelsProxyHostRequired"],
|
||||
[/^Proxy port is required\.$/, "settings.tunnelsProxyPortRequired"],
|
||||
[/^SSH host is required\.$/, "settings.tunnelsSshHostRequired"],
|
||||
[/^Tunnel test is not supported for HTTP tunnel profiles\.$/, "settings.tunnelsHttpTunnelUnsupported"],
|
||||
[/^Proxy connection timed out \(([^)]+)\)$/, "settings.tunnelsProxyTimedOut"],
|
||||
[/^Failed to connect to proxy: (.+)$/, "settings.tunnelsProxyConnectFailed"],
|
||||
[/^Proxy handshake failed \([^)]+\): (.+)$/, "settings.tunnelsProxyHandshakeFailed"],
|
||||
[/^Proxy handshake timed out \(([^)]+)\)$/, "settings.tunnelsProxyHandshakeTimedOut"],
|
||||
[/^HTTP proxy CONNECT failed: (.+)$/, "settings.tunnelsHttpConnectFailed"],
|
||||
[/^Invalid SOCKS proxy version: (\d+)$/, "settings.tunnelsSocksInvalidVersion"],
|
||||
[/^SOCKS username or password is too long$/, "settings.tunnelsSocksAuthTooLong"],
|
||||
[/^SOCKS proxy authentication failed$/, "settings.tunnelsSocksAuthFailed"],
|
||||
[/^SOCKS proxy rejected all supported auth methods$/, "settings.tunnelsSocksAuthRejected"],
|
||||
[/^SOCKS proxy selected unsupported auth method: (\d+)$/, "settings.tunnelsSocksUnsupportedAuth"],
|
||||
[/^Proxy host too long for SOCKS5 domain address$/, "settings.tunnelsSocksHostTooLong"],
|
||||
[/^SOCKS proxy connect rejected \(code (\d+)\)$/, "settings.tunnelsSocksConnectRejected"],
|
||||
[/^Unsupported SOCKS bound address type: (\d+)$/, "settings.tunnelsSocksUnsupportedAddrType"],
|
||||
];
|
||||
|
||||
const paramNames: Record<string, string> = {
|
||||
"connection.driverNotInstalled": "driver",
|
||||
"connection.jreNotInstalled": "jre",
|
||||
"ai.configNameExists": "name",
|
||||
"settings.tunnelsHttpTestSuccess": "code",
|
||||
"settings.tunnelsProxyTimedOut": "duration",
|
||||
"settings.tunnelsProxyConnectFailed": "error",
|
||||
"settings.tunnelsProxyHandshakeFailed": "error",
|
||||
"settings.tunnelsProxyHandshakeTimedOut": "duration",
|
||||
"settings.tunnelsHttpConnectFailed": "detail",
|
||||
"settings.tunnelsSocksInvalidVersion": "version",
|
||||
"settings.tunnelsSocksUnsupportedAuth": "method",
|
||||
"settings.tunnelsSocksConnectRejected": "code",
|
||||
"settings.tunnelsSocksUnsupportedAddrType": "type",
|
||||
};
|
||||
|
||||
export function translateBackendError(t: ComposerTranslation, message: string): string {
|
||||
|
||||
Reference in new issue
Block a user