since it is now used for getting a cluster node's migration IP address. Signed-off-by: Fabian Grünbichler <f.gruenbich...@proxmox.com> ---
Notes: needs versioned build dependency on libpve-cluster-perl requires versioned build dependency on libpve-cluster-perl test/ReplicationTestEnv.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/ReplicationTestEnv.pm b/test/ReplicationTestEnv.pm index fa106037..bc305627 100755 --- a/test/ReplicationTestEnv.pm +++ b/test/ReplicationTestEnv.pm @@ -83,6 +83,8 @@ if (!mkdir($PVE::GuestHelpers::lockdir) && !$!{EEXIST}) { die "mkdir($PVE::GuestHelpers::lockdir): $!\n"; } +my $pve_sshinfo_module = Test::MockModule->new('PVE::SSHInfo'); + my $pve_cluster_module = Test::MockModule->new('PVE::Cluster'); my $pve_inotify_module = Test::MockModule->new('PVE::INotify'); @@ -254,9 +256,12 @@ sub setup { $pve_lxc_config_module->mock(load_config => $mocked_lxc_load_conf); - $pve_cluster_module->mock( + $pve_sshinfo_module->mock( get_ssh_info => $mocked_get_ssh_info, ssh_info_to_command => $mocked_ssh_info_to_command, + ); + + $pve_cluster_module->mock( get_vmlist => sub { return $mocked_vmlist->(); }, get_members => $mocked_get_members, cfs_update => sub {}, -- 2.20.1 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel