]>
git.proxmox.com Git - pve-manager.git/blob - test/replication_test3.pl
3 # Note: Try to run replication job to same node (should fail)
10 use lib
('.', '../..');
15 use ReplicationTestEnv
;
16 use PVE
::API2
::Replication
;
18 $ReplicationTestEnv::mocked_nodename
= 'node1';
26 $ReplicationTestEnv::mocked_replication_jobs
= {
29 'target' => 'node1', # local node, job should be skipped
34 $ReplicationTestEnv::mocked_vm_configs
= {
38 ide0
=> 'local-lvm:vm-900-disk-1,size=4G',
40 ide2
=> 'none,media=cdrom',
44 ReplicationTestEnv
::setup
();
46 eval { PVE
::API2
::Replication
::run_single_job
('job_900_to_node1', 1000); };
49 is($err, "unable to sync to local node\n", "test error message");