use PVE::LXC;
use PVE::LXC::Config;
use PVE::Tools;
+use PVE::ReplicationConfig;
use Test::MockModule;
use Test::More;
my $raw = PVE::Tools::file_get_contents($filename);
- my $conf = PVE::LXC::parse_pct_config($filename, $raw);
+ my $conf = PVE::LXC::Config::parse_pct_config($filename, $raw);
return $conf;
}
}
}
- my $raw = PVE::LXC::write_pct_config($filename, $conf);
+ my $raw = PVE::LXC::Config::write_pct_config($filename, $conf);
PVE::Tools::file_set_contents($filename, $raw);
}
$lxc_config_module->mock('write_config', \&mocked_write_config);
$lxc_config_module->mock('has_feature', \&mocked_has_feature);
+# 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;
$freeze_possible = 1;