@applitools/execution-grid-tunnel
Version:
Allows user to run tests with exection-grid and navigate to private hosts and ips
11 lines (8 loc) • 384 B
JavaScript
const TUNNEL_STATUS = require('./tunnel-status')
module.exports = {convertFrpcOutputToTunnelStatus}
function convertFrpcOutputToTunnelStatus(line) {
if (line.includes('start proxy success')) return TUNNEL_STATUS.RUNNING
if (line.includes('start error:')) return TUNNEL_STATUS.INIT_ERROR
if (line.includes('reconnect to server')) return TUNNEL_STATUS.RECONNECT
return null
}