1.0.0 • Published 10 years ago
hermione-tunnel v1.0.0
hermione-tunnel
Plugin for setting up ssh tunnel while running tests with Hermione.
Installation
npm i hermione-tunnel
Configuration
- host (mandatory)
StringAddress of remote host to which tunnel will be established. - ports (mandatory)
ObjectPorts range on remote host, port will be picked randomly from this range. If you want to set specific port, min and max values must be the same. - ports.min (mandatory)
NumberMin port number. - ports.max (mandatory)
NumberMax port number. - localport (mandatory)
Number|FunctionAvailable port on local machine. If set toFunction, it should returnPromisewhich will be resolved with the actual port number. If promise is rejected, plugin will fail. - enabled (optional)
BooleanDetermines whether plugin is enabled. If set tofalseplugin will do nothing. Defaults totrue. - retries (optional)
Numberof attempts to establish tunnel. Defaults to5. - protocol (optional)
StringProtocol which will be used in resulting root url. Defaults tohttp.
Set the configuration to your .hermione.conf.js
plugins: {
'hermione-tunnel': {
host: remote_host_address,
ports: {
min: 8201,
max: 8400
},
localport: 3333,
retries: 3,
protocol: 'https'
}
}1.0.0
10 years ago