mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-10-05 04:05:58 +00:00
snapshot-test.pm: ignore existing replication config
This commit is contained in:
parent
85909c04c4
commit
d79a3e5411
@ -10,6 +10,7 @@ use PVE::Storage::Plugin;
|
|||||||
use PVE::QemuServer;
|
use PVE::QemuServer;
|
||||||
use PVE::QemuConfig;
|
use PVE::QemuConfig;
|
||||||
use PVE::Tools;
|
use PVE::Tools;
|
||||||
|
use PVE::ReplicationConfig;
|
||||||
|
|
||||||
use Test::MockModule;
|
use Test::MockModule;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
@ -376,6 +377,10 @@ $qemu_config_module->mock('write_config', \&write_config);
|
|||||||
$qemu_config_module->mock('has_feature', \&has_feature);
|
$qemu_config_module->mock('has_feature', \&has_feature);
|
||||||
$qemu_config_module->mock('__snapshot_save_vmstate', \&__snapshot_save_vmstate);
|
$qemu_config_module->mock('__snapshot_save_vmstate', \&__snapshot_save_vmstate);
|
||||||
|
|
||||||
|
# ignore existing replication config
|
||||||
|
my $repl_config_module = new Test::MockModule('PVE::ReplicationConfig');
|
||||||
|
$repl_config_module->mock('check_for_existing_jobs' => sub { return undef });
|
||||||
|
|
||||||
$running = 1;
|
$running = 1;
|
||||||
$freeze_possible = 1;
|
$freeze_possible = 1;
|
||||||
$save_vmstate_works = 1;
|
$save_vmstate_works = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user