]>
git.proxmox.com Git - pve-manager.git/blob - test/replication_test3.pl
3 # Note: Try to run replication job to same node (should fail)
9 use lib
('.', '../..');
14 use ReplicationTestEnv
;
15 use PVE
::API2
::Replication
;
19 $ReplicationTestEnv::mocked_nodename
= 'node1';
27 $ReplicationTestEnv::mocked_replication_jobs
= {
30 'target' => 'node1', # local node, job should be skipped
35 $ReplicationTestEnv::mocked_vm_configs
= {
39 ide0
=> 'local-lvm:vm-900-disk-1,size=4G',
41 ide2
=> 'none,media=cdrom',
45 ReplicationTestEnv
::setup
();
47 eval { PVE
::API2
::Replication
::run_single_job
('job_900_to_node1', 1000); };
50 is($err, "unable to sync to local node\n", "test error message");