test: replication: cleanup use statements

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-12-02 17:57:18 +01:00
parent 41303e9779
commit d59f1fa868
7 changed files with 13 additions and 26 deletions

View File

@ -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;

View File

@ -4,12 +4,11 @@
use strict;
use warnings;
use JSON;
use lib ('.', '../..');
use Data::Dumper;
use ReplicationTestEnv;
use Test::More tests => 3;

View File

@ -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,

View File

@ -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 = {

View File

@ -8,8 +8,6 @@ use JSON;
use lib ('.', '../..');
use Data::Dumper;
use Test::MockModule;
use ReplicationTestEnv;

View File

@ -12,8 +12,6 @@ use JSON;
use lib ('.', '../..');
use Data::Dumper;
use Test::MockModule;
use ReplicationTestEnv;

View File

@ -8,8 +8,6 @@ use JSON;
use lib ('.', '../..');
use Data::Dumper;
use Test::MockModule;
use ReplicationTestEnv;