OSDN Git Service

Acceptance Tests: move useful ssh methods to base class
authorCleber Rosa <crosa@redhat.com>
Mon, 12 Apr 2021 04:46:37 +0000 (00:46 -0400)
committerJohn Snow <jsnow@redhat.com>
Tue, 1 Jun 2021 20:21:20 +0000 (16:21 -0400)
commit7edee7ad9408696b9b8d40b5842a07a0c4e9b7a2
treed404815a8b48958ef0e274c012143ac1254306c6
parent976218cbe792c37c1af7840ca5113e37b5a51d95
Acceptance Tests: move useful ssh methods to base class

Both the virtiofs submounts and the linux ssh mips malta tests
contains useful methods related to ssh that deserve to be made
available to other tests.  Let's move them to an auxiliary, mix-in
class that will be used on the base LinuxTest class.

The method that helps with setting up an ssh connection will now
support both key and password based authentication, defaulting to key
based.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Reviewed-by: Willian Rampazzo <willianr@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20210412044644.55083-5-crosa@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
tests/acceptance/avocado_qemu/__init__.py
tests/acceptance/linux_ssh_mips_malta.py
tests/acceptance/virtiofs_submounts.py