OSDN Git Service

Acceptance Tests: set up existing ssh keys by default
authorCleber Rosa <crosa@redhat.com>
Wed, 3 Feb 2021 17:23:53 +0000 (12:23 -0500)
committerCleber Rosa <crosa@redhat.com>
Tue, 16 Feb 2021 03:30:06 +0000 (22:30 -0500)
commitc0c5a7f18e623b8f6eb7a9ccebdccdc56db2cec7
treede3a6bf7c6f6c05bb8a46e46babd8617c777fe65
parente8197c6e0c56aff83d96df221bb56a57d0bc0e96
Acceptance Tests: set up existing ssh keys by default

It's questionable whether it's necessary to create one brand new pair
for each test.  It's not questionable that it takes less time and
resources to just use the keys available at "tests/keys" that exist
for that exact reason.

If a location for the public key is not given explicitly, the
LinuxTest will now set up the existing pair of keys as the default.
This removes the need for a lot of boilerplate code.

To avoid the ssh client from erroring on permission issues, a
directory with restrictive permissions is created for the private key.
This should still be a lot cheaper than creating a new key.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20210203172357.1422425-19-crosa@redhat.com>
Reviewed-by: Willian Rampazzo <willianr@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
[marcandre: fix typos in commit message]
Signed-off-by: Cleber Rosa <crosa@redhat.com>
tests/acceptance/avocado_qemu/__init__.py