]> git.proxmox.com Git - pve-manager.git/blobdiff - bin/test/ReplicationTestEnv.pm
PVE::Replication - remove dependency to PVE::LXC/PVE::QemuServer
[pve-manager.git] / bin / test / ReplicationTestEnv.pm
index cdf81f05ebc23b8956f2b27e6aabe6d1403b924f..d435f1b1513710c6dca9c53da89bc8ad3c3da103 100755 (executable)
@@ -15,10 +15,12 @@ use PVE::Cluster;
 use PVE::Storage;
 use PVE::ReplicationConfig;
 use PVE::ReplicationState;
+use PVE::API2::Replication;
 use PVE::Replication;
 use PVE::QemuConfig;
 use PVE::LXC::Config;
 
+
 use Test::MockModule;
 
 our $mocked_nodename = 'node1';
@@ -290,7 +292,7 @@ sub track_jobs {
        }
     }
 
-    PVE::Replication::run_jobs($ctime, $logmsg);
+    PVE::API2::Replication::run_jobs($ctime, $logmsg);
 
     my $new = PVE::Replication::job_status();