Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #790 from bareos/dev/pstorz/master/enhance-testcov…
…erage systemtests: increase test coverage
- Loading branch information
Showing
72 changed files
with
540 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
systemtests/tests/bscan-bextract-bls/etc/bareos/bareos-dir.d/job/backup-bareos-fd.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Job { | ||
Name = "backup-bareos-fd" | ||
JobDefs = "DefaultJob" | ||
Client = "bareos-fd" | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
systemtests/tests/gfapi-fd/etc/bareos/bareos-dir.d/catalog/MyCatalog.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Catalog { | ||
Name = MyCatalog | ||
#dbdriver = "@DEFAULT_DB_TYPE@" | ||
dbdriver = "XXX_REPLACE_WITH_DATABASE_DRIVER_XXX" | ||
dbname = "@db_name@" | ||
dbuser = "@db_user@" | ||
dbpassword = "@db_password@" | ||
} |
7 changes: 7 additions & 0 deletions
7
systemtests/tests/gfapi-fd/etc/bareos/bareos-dir.d/client/bareos-fd.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Client { | ||
Name = bareos-fd | ||
Description = "Client resource of the Director itself." | ||
Address = @hostname@ | ||
Password = "@fd_password@" # password for FileDaemon | ||
FD PORT = @fd_port@ | ||
} |
7 changes: 7 additions & 0 deletions
7
systemtests/tests/gfapi-fd/etc/bareos/bareos-dir.d/console/bareos-mon.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Console { | ||
Name = bareos-mon | ||
Description = "Restricted console used by tray-monitor to get the status of the director." | ||
Password = "@mon_dir_password@" | ||
CommandACL = status, .status | ||
JobACL = *all* | ||
} |
27 changes: 27 additions & 0 deletions
27
systemtests/tests/gfapi-fd/etc/bareos/bareos-dir.d/director/bareos-dir.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Director { # define myself | ||
Name = bareos-dir | ||
QueryFile = "@scriptdir@/query.sql" | ||
Maximum Concurrent Jobs = 10 | ||
Password = "@dir_password@" # Console password | ||
Messages = Daemon | ||
Auditing = yes | ||
|
||
# Enable the Heartbeat if you experience connection losses | ||
# (eg. because of your router or firewall configuration). | ||
# Additionally the Heartbeat can be enabled in bareos-sd and bareos-fd. | ||
# | ||
# Heartbeat Interval = 1 min | ||
|
||
# remove comment in next line to load dynamic backends from specified directory | ||
Backend Directory = @backenddir@ | ||
|
||
# remove comment from "Plugin Directory" to load plugins from specified directory. | ||
# if "Plugin Names" is defined, only the specified plugins will be loaded, | ||
# otherwise all director plugins (*-dir.so) from the "Plugin Directory". | ||
# | ||
# Plugin Directory = "@python_plugin_module_src_dir@" | ||
# Plugin Names = "" | ||
Working Directory = "@working_dir@" | ||
Pid Directory = "@piddir@" | ||
DirPort = @dir_port@ | ||
} |
11 changes: 11 additions & 0 deletions
11
systemtests/tests/gfapi-fd/etc/bareos/bareos-dir.d/fileset/Catalog.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FileSet { | ||
Name = "Catalog" | ||
Description = "Backup the catalog dump and Bareos configuration files." | ||
Include { | ||
Options { | ||
signature = MD5 | ||
} | ||
File = "@working_dir@/@db_name@.sql" # database dump | ||
File = "@confdir@" # configuration | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
systemtests/tests/gfapi-fd/etc/bareos/bareos-dir.d/fileset/SelfTest.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FileSet { | ||
Name = "SelfTest" | ||
Description = "fileset just to backup some files for selftest" | ||
Include { | ||
Options { | ||
Signature = MD5 # calculate md5 checksum per file | ||
} | ||
Plugin = "gfapi:volume=gluster\\://@gfapi_fd_host@/@gfapi_fd_testvolume@:"` | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
systemtests/tests/gfapi-fd/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Job { | ||
Name = "BackupCatalog" | ||
Description = "Backup the catalog database (after the nightly save)" | ||
JobDefs = "DefaultJob" | ||
Level = Full | ||
FileSet="Catalog" | ||
|
||
# This creates an ASCII copy of the catalog | ||
# Arguments to make_catalog_backup.pl are: | ||
# make_catalog_backup.pl <catalog-name> | ||
RunBeforeJob = "@scriptdir@/make_catalog_backup.pl MyCatalog" | ||
|
||
# This deletes the copy of the catalog | ||
RunAfterJob = "@scriptdir@/delete_catalog_backup" | ||
|
||
# This sends the bootstrap via mail for disaster recovery. | ||
# Should be sent to another system, please change recipient accordingly | ||
Write Bootstrap = "|@bindir@/bsmtp -h @smtp_host@ -f \"\(Bareos\) \" -s \"Bootstrap for Job %j\" @job_email@" # (#01) | ||
Priority = 11 # run after main backup | ||
} |
11 changes: 11 additions & 0 deletions
11
systemtests/tests/gfapi-fd/etc/bareos/bareos-dir.d/job/RestoreFiles.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Job { | ||
Name = "RestoreFiles" | ||
Description = "Standard Restore template. Only one such job is needed for all standard Jobs/Clients/Storage ..." | ||
Type = Restore | ||
Client = bareos-fd | ||
FileSet = SelfTest | ||
Storage = File | ||
Pool = Incremental | ||
Messages = Standard | ||
Where = @tmp@/bareos-restores | ||
} |
5 changes: 5 additions & 0 deletions
5
systemtests/tests/gfapi-fd/etc/bareos/bareos-dir.d/job/backup-bareos-fd.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Job { | ||
Name = "backup-bareos-fd" | ||
JobDefs = "DefaultJob" | ||
Client = "bareos-fd" | ||
} |
15 changes: 15 additions & 0 deletions
15
systemtests/tests/gfapi-fd/etc/bareos/bareos-dir.d/jobdefs/DefaultJob.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
JobDefs { | ||
Name = "DefaultJob" | ||
Type = Backup | ||
Level = Incremental | ||
Client = bareos-fd | ||
FileSet = "SelfTest" | ||
Storage = File | ||
Messages = Standard | ||
Pool = Incremental | ||
Priority = 10 | ||
Write Bootstrap = "@working_dir@/%c.bsr" | ||
Full Backup Pool = Full # write Full Backups into "Full" Pool | ||
Differential Backup Pool = Differential # write Diff Backups into "Differential" Pool | ||
Incremental Backup Pool = Incremental # write Incr Backups into "Incremental" Pool | ||
} |
Oops, something went wrong.