test: replication: cleanup use statements
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
41303e9779
commit
d59f1fa868
@ -2,24 +2,23 @@ package ReplicationTestEnv;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use JSON;
|
||||
|
||||
use Clone 'clone';
|
||||
use File::Basename;
|
||||
use JSON;
|
||||
|
||||
use lib ('.', '../..');
|
||||
|
||||
use Data::Dumper;
|
||||
|
||||
use PVE::INotify;
|
||||
use PVE::Cluster;
|
||||
use PVE::INotify;
|
||||
use PVE::LXC::Config;
|
||||
use PVE::QemuConfig;
|
||||
use PVE::Storage;
|
||||
use PVE::ReplicationConfig;
|
||||
use PVE::ReplicationState;
|
||||
|
||||
use PVE::API2::Replication;
|
||||
use PVE::Replication;
|
||||
use PVE::QemuConfig;
|
||||
use PVE::LXC::Config;
|
||||
|
||||
use PVE::ReplicationConfig;
|
||||
use PVE::ReplicationState;
|
||||
|
||||
use Test::MockModule;
|
||||
|
||||
|
@ -4,12 +4,11 @@
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use JSON;
|
||||
|
||||
use lib ('.', '../..');
|
||||
|
||||
use Data::Dumper;
|
||||
|
||||
use ReplicationTestEnv;
|
||||
use Test::More tests => 3;
|
||||
|
||||
|
@ -8,12 +8,10 @@ use JSON;
|
||||
|
||||
use lib ('.', '../..');
|
||||
|
||||
use Data::Dumper;
|
||||
|
||||
use Test::MockModule;
|
||||
use ReplicationTestEnv;
|
||||
use Test::More tests => 1;
|
||||
|
||||
use ReplicationTestEnv;
|
||||
use PVE::API2::Replication;
|
||||
|
||||
$ReplicationTestEnv::mocked_nodename = 'node1';
|
||||
@ -65,8 +63,6 @@ for (my $i = 0; $i < 61; $i++) {
|
||||
PVE::API2::Replication::run_jobs($i*60);
|
||||
}
|
||||
|
||||
#print Dumper($schedule);
|
||||
|
||||
my $exptected_schedule = [
|
||||
{
|
||||
last_sync => 0,
|
||||
|
@ -4,18 +4,17 @@
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use JSON;
|
||||
|
||||
use lib ('.', '../..');
|
||||
|
||||
use Data::Dumper;
|
||||
|
||||
use Test::MockModule;
|
||||
use Test::More;
|
||||
|
||||
use ReplicationTestEnv;
|
||||
use PVE::API2::Replication;
|
||||
|
||||
use Test::More;
|
||||
|
||||
$ReplicationTestEnv::mocked_nodename = 'node1';
|
||||
|
||||
my $testjob = {
|
||||
|
@ -8,8 +8,6 @@ use JSON;
|
||||
|
||||
use lib ('.', '../..');
|
||||
|
||||
use Data::Dumper;
|
||||
|
||||
use Test::MockModule;
|
||||
use ReplicationTestEnv;
|
||||
|
||||
|
@ -12,8 +12,6 @@ use JSON;
|
||||
|
||||
use lib ('.', '../..');
|
||||
|
||||
use Data::Dumper;
|
||||
|
||||
use Test::MockModule;
|
||||
use ReplicationTestEnv;
|
||||
|
||||
|
@ -8,8 +8,6 @@ use JSON;
|
||||
|
||||
use lib ('.', '../..');
|
||||
|
||||
use Data::Dumper;
|
||||
|
||||
use Test::MockModule;
|
||||
use ReplicationTestEnv;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user