@codezavod/ssh-tunneler
v1.1.0
Published
Plugin for gemini and hermione to set up ssh tunnel while running tests
Downloads
4
Maintainers
Readme
ssh-tunneler
Forked from https://github.com/gemini-testing/ssh-tunneler
Plugin for gemini and hermione to set up ssh tunnel while running tests.
Install
$ npm install ssh-tunneler
Configuration
- host (mandatory)
String
– address of a remote host to which ssh tunnel will be established - ports (mandatory)
Object
- ports range on a remote host; port will be picked randomly from this range- min
Number
– min port number - max
Number
- max port number
- min
- localport (mandatory)
Number
- available port on a local machine - user (optional)
String
- user to connect to a remote host - sshPort (optional)
Number
- port which should be used to create ssh tunnel, default is22
- retries (optional)
Number
- the number of attempts to establish a tunnel, default is5
- protocol (optional)
String
- protocol which will be used in a resulting base url, default ishttp
- enabled (optional)
Boolean
- switch on/off the plugin; the plugin is switched on by default. - urlDecorator (optional)
Function
- provides the ability to decorate a resulting base url; function accepts two arguments - 1) a current value of a base url, 2) an instance of a created ssh tunnel
Usage
gemini
Add the plugin to your configuration file:
module.exports = {
system: {
plugins: {
'ssh-tunneler/gemini': {
// configuration
}
}
}
};
hermione
Add the plugin to your configuration file:
module.exports = {
plugins: {
'ssh-tunneler/hermione': {
// configuration
}
}
};