Nebulous Pumpkin Moons

    hermione-tunnel

    1.0.0 • Public • Published

    hermione-tunnel

    Plugin for setting up ssh tunnel while running tests with Hermione.

    Installation

    npm i hermione-tunnel

    Configuration

    • host (mandatory) String Address of remote host to which tunnel will be established.
    • ports (mandatory) Object Ports 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) Number Min port number.
    • ports.max (mandatory) Number Max port number.
    • localport (mandatory) Number|Function Available port on local machine. If set to Function, it should return Promise which will be resolved with the actual port number. If promise is rejected, plugin will fail.
    • enabled (optional) Boolean Determines whether plugin is enabled. If set to false plugin will do nothing. Defaults to true.
    • retries (optional) Number of attempts to establish tunnel. Defaults to 5.
    • protocol (optional) String Protocol which will be used in resulting root url. Defaults to http.

    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'
        }
    }

    Install

    npm i hermione-tunnel

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • flack
    • j0tunn