(message)
| 213 | }; |
| 214 | |
| 215 | export const classifyGuacUpstreamFailure = (message) => { |
| 216 | const lower = (message || "").toLowerCase(); |
| 217 | if ( |
| 218 | SECURITY_NEGOTIATION_PATTERNS.some((pattern) => lower.includes(pattern)) |
| 219 | ) { |
| 220 | return "rdp_security_negotiation_failed"; |
| 221 | } |
| 222 | if (AUTH_FAILURE_PATTERNS.some((pattern) => lower.includes(pattern))) { |
| 223 | return "rdp_auth_failed"; |
| 224 | } |
| 225 | return "rdp_gateway_failed"; |
| 226 | }; |
| 227 | |
| 228 | export const deriveCodeFromGuacStatus = (status) => { |
| 229 | const code = status?.code; |
no outgoing calls
no test coverage detected