From 4223820358129df0b370834345b6a4cacac9d723 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 11 Dec 2007 20:01:46 +0000 Subject: [PATCH] Add tls authenticate test git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6039 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/scripts/do_sed | 5 +++ regress/tests/tls-authenticate-test | 52 +++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100755 regress/tests/tls-authenticate-test 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 -- 2.39.5