[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 00/22] Acceptance Test: introduce base class for Linux based test

From: Cleber Rosa
Subject: [PATCH 00/22] Acceptance Test: introduce base class for Linux based tests
Date: Wed, 3 Feb 2021 12:23:35 -0500

This introduces a base class for tests that need to interact with a
Linux guest.  It generalizes the "boot_linux.py" code, already been
used by the "virtiofs_submounts.py" and also SSH related code being
used by that and "linux_ssh_mips_malta.py".

While at it, a number of fixes on hopeful improvements to those tests
were added.

Cleber Rosa (22):
  tests/acceptance/boot_linux.py: fix typo on cloudinit error message
  tests/acceptance/boot_linux.py: rename misleading cloudinit method
  Acceptance Tests: remove unnecessary tag from documentation example
  tests/acceptance/virtiofs_submounts.py: use workdir property
  tests/acceptance/virtiofs_submounts.py: do not ask for ssh key
  tests/acceptance/virtiofs_submounts.py: use a virtio-net device
  tests/acceptance/virtiofs_submounts.py: evaluate string not length
  tests/acceptance/virtiofs_submounts.py: standardize port as integer
  tests/acceptance/virtiofs_submounts.py: required space between IP and
  Python: add utility function for retrieving port redirection
  tests/acceptance/linux_ssh_mips_malta.py: standardize port as integer
  Acceptance tests: clarify ssh connection failure reason
  tests/acceptance/virtiofs_submounts.py: add missing accel tag
  Acceptance Tests: introduce LinuxTest base class
  Acceptance Tests: move useful ssh methods to base class
  Acceptance Tests: introduce method for requiring an accelerator
  Acceptance Tests: fix population of public key in cloudinit image
  Acceptance Tests: set up existing ssh keys by default
  Acceptance Tests: add port redirection for ssh by default
  Acceptance Tests: add basic documentation on LinuxTest base class
  Acceptance Tests: introduce CPU hotplug test
  [NOTFORMERGE] Bump Avocado version to latest master

 docs/devel/testing.rst                    |  29 +++-
 python/qemu/utils.py                      |  35 +++++
 tests/acceptance/avocado_qemu/__init__.py | 176 ++++++++++++++++++++++
 tests/acceptance/boot_linux.py            | 128 ++--------------
 tests/acceptance/hotplug_cpu.py           |  38 +++++
 tests/acceptance/info_usernet.py          |  29 ++++
 tests/acceptance/linux_ssh_mips_malta.py  |  44 +-----
 tests/acceptance/virtiofs_submounts.py    |  73 +--------
 tests/requirements.txt                    |   2 +-
 tests/vm/basevm.py                        |   7 +-
 10 files changed, 334 insertions(+), 227 deletions(-)
 create mode 100644 python/qemu/utils.py
 create mode 100644 tests/acceptance/hotplug_cpu.py
 create mode 100644 tests/acceptance/info_usernet.py


reply via email to

[Prev in Thread] Current Thread [Next in Thread]