From: Kern Sibbald Date: Tue, 11 Dec 2007 20:01:46 +0000 (+0000) Subject: Add tls authenticate test X-Git-Tag: Release-7.0.0~5317 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3222975c6bc9cb425a40ecabd2a866a4028cb3f9;p=bacula%2Fbacula Add tls authenticate test git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6039 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/scripts/do_sed b/regress/scripts/do_sed index 48a7cab73e..ed1e39ad20 100755 --- a/regress/scripts/do_sed +++ b/regress/scripts/do_sed @@ -76,6 +76,11 @@ sed -f ${out} ${cwd}/scripts/tls-bacula-fd.conf.in >${cwd}/scripts/tls-bacula-fd sed -f ${out} ${cwd}/scripts/tls-bacula-sd.conf.in >${cwd}/scripts/tls-bacula-sd.conf sed -f ${out} ${cwd}/scripts/tls-bacula-dir.conf.in >${cwd}/scripts/tls-bacula-dir.conf +sed -f ${out} ${cwd}/scripts/tls-auth-bacula-fd.conf.in >${cwd}/scripts/tls-auth-bacula-fd.conf +sed -f ${out} ${cwd}/scripts/tls-auth-bacula-sd.conf.in >${cwd}/scripts/tls-auth-bacula-sd.conf +sed -f ${out} ${cwd}/scripts/tls-auth-bacula-dir.conf.in >${cwd}/scripts/tls-auth-bacula-dir.conf + + sed -f ${out} ${cwd}/scripts/bacula-fd-2d.conf.in >${cwd}/scripts/bacula-fd-2d.conf sed -f ${out} ${cwd}/scripts/bacula-sd-2d.conf.in >${cwd}/scripts/bacula-sd-2d.conf sed -f ${out} ${cwd}/scripts/bacula-dir-2d.conf.in >${cwd}/scripts/bacula-dir-2d.conf diff --git a/regress/tests/tls-authenticate-test b/regress/tests/tls-authenticate-test new file mode 100755 index 0000000000..38dffafc6d --- /dev/null +++ b/regress/tests/tls-authenticate-test @@ -0,0 +1,52 @@ +#!/bin/sh +# +# Run a simple backup of the Bacula build directory with TLS +# communications code enabled then restore it. +# +TestName="tls-authenticate-test" +JobName=tls +. scripts/functions + +scripts/cleanup +scripts/copy-tls-confs +echo "${cwd}/build" >${cwd}/tmp/file-list + +change_jobname CompressedTest $JobName +start_test + +cat <tmp/bconcmds +@output +messages +@$out tmp/log1.out +setdebug level=100 dir +setdebug level=100 storage=File +setdebug level=100 client +status all +status all +messages +label storage=File volume=TestVolume001 pool=Default +run job=$JobName storage=File yes +wait +messages +@# +@# now do a restore +@# +@$out tmp/log2.out +restore where=${cwd}/tmp/bacula-restores select storage=File +unmark * +mark * +done +yes +wait +messages +@output +quit +END_OF_DATA + +run_bacula +check_for_zombie_jobs storage=File +stop_bacula + +check_two_logs +check_restore_diff +end_test