]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/tls-authenticate-test
fix #3269 obey the user choice of "Are you sure you want to delete X JobIds
[bacula/bacula] / regress / tests / tls-authenticate-test
1 #!/bin/sh
2 #
3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
5 #
6
7 #
8 # Run a simple backup of the Bacula build directory with TLS
9 #   communications code enabled then restore it.
10 #
11 TestName="tls-authenticate-test"
12 JobName=tls
13 . scripts/functions
14
15 scripts/cleanup
16 scripts/copy-tls-confs
17 echo "${cwd}/build" >${cwd}/tmp/file-list
18
19 change_jobname CompressedTest $JobName
20 start_test
21       
22 cat <<END_OF_DATA >tmp/bconcmds
23 @output /dev/null
24 messages
25 @$out tmp/log1.out
26 setdebug level=100 dir
27 setdebug level=100 storage=File
28 setdebug level=100 client=$CLIENT
29 status all
30 status all
31 messages
32 label storage=File volume=TestVolume001 pool=Default
33 run job=$JobName storage=File yes
34 wait
35 messages
36 @# 
37 @# now do a restore
38 @#
39 @$out tmp/log2.out
40 restore where=${cwd}/tmp/bacula-restores select storage=File
41 unmark *
42 mark *
43 done
44 yes
45 wait
46 messages
47 quit
48 END_OF_DATA
49
50 run_bacula
51 check_for_zombie_jobs storage=File
52 stop_bacula
53
54 check_two_logs
55 check_restore_diff
56 end_test