3 TestName="reload-client-address-test"
11 # Zap out any schedule in default conf file so that
12 # it doesn't start during our test
15 echo "s% Schedule =%# Schedule =%g" >${outf}
16 cp $scripts/bacula-dir.conf $tmp/1
17 sed -f ${outf} $tmp/1 >$scripts/bacula-dir.conf
19 change_jobname BackupClient1 $JobName
22 $bperl -e 'add_attribute("$conf/bacula-dir.conf", "Address", "127.0.0.1", "Client")'
24 cat <<END_OF_DATA >$tmp/bconcmds
38 print_debug "Changing 127.0.0.1 to 127.0.0.2 for the Client"
39 $bperl -e 'add_attribute("$conf/bacula-dir.conf", "Address", "127.0.0.2", "Client")'
41 cat <<END_OF_DATA >$tmp/bconcmds
51 cat <<END_OF_DATA >$tmp/bconcmds
59 grep "127.0.0.1" $tmp/log0.out
61 print_debug "ERROR: Should find 127.0.0.1 in $tmp/log0.out"
65 grep "127.0.0.2" $tmp/log2.out
67 print_debug "ERROR: Should find 127.0.0.2 in $tmp/log2.out"
71 grep "127.0.0.2" $tmp/log3.out
73 print_debug "ERROR: Should find 127.0.0.2 in $tmp/log3.out"