]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Fix restart-jobmedia-test for community
authorEric Bollengier <eric@baculasystems.com>
Wed, 15 May 2019 08:24:34 +0000 (10:24 +0200)
committerEric Bollengier <eric@baculasystems.com>
Wed, 15 May 2019 08:51:43 +0000 (10:51 +0200)
regress/tests/restart-jobmedia-test

index 9118a92fa90d17c7330be5014abd91cde113ce7c..042ca96ea0d35b0955213c2d5e9580edbb442690 100755 (executable)
@@ -16,11 +16,6 @@ JobName=RestartJob
 scripts/cleanup
 scripts/copy-test-confs
 
-# Unfortunately this code is designed for the Enterprise database
-#  and does not work for the Community database.
-#  FileName table ...
-exit 1
-
 setup_shstore # simulate shared storage if enabled
 
 echo "$tmp/files/po"    >${cwd}/tmp/file-list
@@ -73,7 +68,7 @@ Job {
 }
 Pool {
  Name = VF
- Pool Type = backup
+ Pool Type = Backup
  Storage = File1
  LabelFormat = "VF"
 }
@@ -93,13 +88,13 @@ run job=$JobName spooldata=no yes
 messages
 sql
 select * from JobMedia;
-select FileId, FileIndex, Path.Path, Filename from File JOIN Path USING (PathId);
+select FileId, FileIndex, Path.Path, Filename.Name from File JOIN Path USING (PathId) JOIN Filename USING (FilenameId);
 
 wait
 messages
 sql
 select * from JobMedia;
-select FileId, FileIndex, Path.Path, Filename from File JOIN Path USING (PathId);
+select FileId, FileIndex, Path.Path, Filename.Name from File JOIN Path USING (PathId) JOIN Filename USING (FilenameId);
 
 quit
 END_OF_DATA