[pve-devel] [PATCH-SERIES v3] migration tests

Fabian Ebner f.ebner at proxmox.com
Tue Dec 1 13:06:57 CET 2020


Refactor some code and create a test enviroment for migration. See the last
patch for a description of the latter.

The first two patches depend on libpve-guest-common-perl >=3.1-3

Changes from v2:
    * drop already applied patch introducing move_config_to_node helper
    * rebase on current master and verify tests still behave the same
      way (they did, but it's not surprising as QemuMigrate.pm didn't
      change much since v2 was sent).
    * add a patch to sort volumes migrated with storage_migrate and adapt
      affected test


container:

Fabian Ebner (1):
  use new move_config_to_node method

 src/PVE/LXC/Migrate.pm | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)


qemu-server:

Fabian Ebner (4):
  use new move_config_to_node method
  migration: factor out starting remote tunnel
  migration: sort volumes migrated with storage_migrate
  create test environment for migration

 PVE/QemuMigrate.pm                    |  130 +-
 test/Makefile                         |    5 +-
 test/MigrationTest/QemuMigrateMock.pm |  319 +++++
 test/MigrationTest/QmMock.pm          |  142 +++
 test/MigrationTest/Shared.pm          |  170 +++
 test/run_qemu_migrate_tests.pl        | 1594 +++++++++++++++++++++++++
 6 files changed, 2295 insertions(+), 65 deletions(-)
 create mode 100644 test/MigrationTest/QemuMigrateMock.pm
 create mode 100644 test/MigrationTest/QmMock.pm
 create mode 100644 test/MigrationTest/Shared.pm
 create mode 100755 test/run_qemu_migrate_tests.pl

-- 
2.20.1






More information about the pve-devel mailing list