Sha256: bb192d6cc0993f79f079760c287368b0824328fe015dd6a4e7cd074f1d22497c

Contents?: true

Size: 1 KB

Versions: 22

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

22 entries across 22 versions & 1 rubygems

Version Path
beaker-3.34.0 docs/how_to/enabling_cross_sut_access.md
beaker-3.33.0 docs/how_to/enabling_cross_sut_access.md
beaker-3.32.0 docs/how_to/enabling_cross_sut_access.md
beaker-3.31.0 docs/how_to/enabling_cross_sut_access.md
beaker-3.30.0 docs/how_to/enabling_cross_sut_access.md
beaker-3.29.0 docs/how_to/enabling_cross_sut_access.md
beaker-3.28.0 docs/how_to/enabling_cross_sut_access.md
beaker-3.27.0 docs/how_to/enabling_cross_sut_access.md
beaker-3.26.0 docs/how_to/enabling_cross_sut_access.md
beaker-3.25.0 docs/how_to/enabling_cross_sut_access.md
beaker-3.24.0 docs/how_to/enabling_cross_sut_access.md
beaker-3.23.0 docs/how_to/enabling_cross_sut_access.md
beaker-3.22.0 docs/how_to/enabling_cross_sut_access.md
beaker-3.21.1 docs/how_to/enabling_cross_sut_access.md
beaker-3.21.0 docs/how_to/enabling_cross_sut_access.md
beaker-3.20.0 docs/how_to/enabling_cross_sut_access.md
beaker-3.19.0 docs/how_to/enabling_cross_sut_access.md
beaker-3.18.0 docs/how_to/enabling_cross_sut_access.md
beaker-3.17.0 docs/how_to/enabling_cross_sut_access.md
beaker-3.16.0 docs/how_to/enabling_cross_sut_access.md