Sha256: e4466f22fd17d139e654a15397f2647506f30909a5f0f99260eb26b2d63f4d4c

Contents?: true

Size: 1 KB

Versions: 79

Compression:

Stored size: 1 KB

Contents

# Enabling access bewteen SUTs during an acceptance test run

If you are running acceptance tests for Beaker that, at some point, will perform one of the following:

* SSH between SUTs
* Clone private repos

You will need to run an SSH agent, and add the SSH key for accessing your SUTs/private repos, prior to running the tests.

To load the SSH agent and add your SSH key, run the following:

~~~bash
eval `ssh-agent`
ssh-add <SSH key file path>
~~~

A common example of where this functionality would be required for beaker developers, is in testing subcommands. There, we setup multiple SUTs that need to communicate between themselves. To run our subcommand testing to verify that you have agent forwarding setup correctly, run the following:

~~~bash
beaker --tests acceptance/tests/subcommands/ --log-level debug --preserve-hosts onfail --pre-suite acceptance/pre_suite/subcommands/ --load-path acceptance/lib --keyfile ~/.ssh/id_rsa-acceptance
~~~

And Beaker will be able to SSH between SUTs and clone private repos

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
beaker-6.4.1 docs/how_to/enabling_cross_sut_access.md
beaker-6.4.0 docs/how_to/enabling_cross_sut_access.md
beaker-6.3.0 docs/how_to/enabling_cross_sut_access.md
beaker-6.2.0 docs/how_to/enabling_cross_sut_access.md
beaker-6.1.0 docs/how_to/enabling_cross_sut_access.md
beaker-5.8.1 docs/how_to/enabling_cross_sut_access.md
beaker-4.42.0 docs/how_to/enabling_cross_sut_access.md
beaker-5.8.0 docs/how_to/enabling_cross_sut_access.md
beaker-5.7.0 docs/how_to/enabling_cross_sut_access.md
beaker-4.41.2 docs/how_to/enabling_cross_sut_access.md
beaker-4.41.1 docs/how_to/enabling_cross_sut_access.md
beaker-5.6.0 docs/how_to/enabling_cross_sut_access.md
beaker-4.41.0 docs/how_to/enabling_cross_sut_access.md
beaker-5.5.0 docs/how_to/enabling_cross_sut_access.md
beaker-5.4.0 docs/how_to/enabling_cross_sut_access.md
beaker-5.3.1 docs/how_to/enabling_cross_sut_access.md
beaker-4.40.2 docs/how_to/enabling_cross_sut_access.md
beaker-5.3.0 docs/how_to/enabling_cross_sut_access.md
beaker-4.40.1 docs/how_to/enabling_cross_sut_access.md
beaker-5.2.0 docs/how_to/enabling_cross_sut_access.md