]> git.proxmox.com Git - pve-manager.git/commitdiff
test: replication: adapt test data
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 14 May 2018 11:58:11 +0000 (13:58 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 14 May 2018 11:58:11 +0000 (13:58 +0200)
otherwise the checks in write_config fail

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
bin/test/replication_test2.pl

index 45479b41135c144373cd5708b8dfa86d0c08dcf6..f49572a006459259227265f3deecee4c37f57b5a 100755 (executable)
@@ -37,12 +37,12 @@ my $pve_replication_module = Test::MockModule->new('PVE::Replication');
 $pve_replication_module->mock(replicate => $mocked_replicate);
 
 $ReplicationTestEnv::mocked_replication_jobs = {
-    job_900_to_node2 => {
+    '900-1_to_node2' => {
        'type'  => 'local',
        'target' => 'node2',
        'guest' => 900,
     },
-    job_900_to_node1 => {
+    '900-2_to_node1' => {
        'type'  => 'local',
        'target' => 'node1', # local node, job should be skipped
        'guest' => 900,
@@ -73,7 +73,7 @@ my $exptected_schedule = [
        start => 900,
        vmtype => 'qemu',
        guest_class => 'PVE::QemuConfig',
-       id => 'job_900_to_node2',
+       id => '900-1_to_node2',
        guest => 900
     },
     {
@@ -81,7 +81,7 @@ my $exptected_schedule = [
        start => 1800,
        vmtype => 'qemu',
        guest_class => 'PVE::QemuConfig',
-       id => 'job_900_to_node2',
+       id => '900-1_to_node2',
        guest => 900,
    },
     {
@@ -89,7 +89,7 @@ my $exptected_schedule = [
        start => 2700,
        vmtype => 'qemu',
        guest_class => 'PVE::QemuConfig',
-       id => 'job_900_to_node2',
+       id => '900-1_to_node2',
        guest => 900
     },
     {
@@ -97,7 +97,7 @@ my $exptected_schedule = [
        start => 3600,
        vmtype => 'qemu',
        guest_class => 'PVE::QemuConfig',
-       id => 'job_900_to_node2',
+       id => '900-1_to_node2',
        guest => 900
     }
 ];