Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
systemtests python-bareos: add tests with console runscripts
- Loading branch information
1 parent
7b8aede
commit ea7112d
Showing
6 changed files
with
282 additions
and
1 deletion.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
...ts/python-bareos/etc/bareos/bareos-dir.d/job/admin-runscript-console-server-defaults.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,18 @@ | ||
Job { | ||
Name = "admin-runscript-console-server-defaults" | ||
JobDefs = "DefaultJob" | ||
Type = Admin | ||
RunScript { | ||
RunsWhen = Before | ||
#Runs On Failure = Yes | ||
Runs On Client = No | ||
#FailJobOnError = Yes | ||
# %d Daemon’s name (Such as host-dir or host-fd) | ||
# %n Job name | ||
# %t Job type (Backup, …) | ||
# %i Job Id | ||
Console = "whoami" | ||
Console = "version" | ||
Console = "list jobid=%i" | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...sts/python-bareos/etc/bareos/bareos-dir.d/job/admin-runscript-console-server-invalid.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,17 @@ | ||
Job { | ||
Name = "admin-runscript-console-server-invalid" | ||
JobDefs = "DefaultJob" | ||
Type = Admin | ||
RunScript { | ||
RunsWhen = Before | ||
Runs On Failure = Yes | ||
Runs On Client = No | ||
FailJobOnError = Yes | ||
# %d Daemon’s name (Such as host-dir or host-fd) | ||
# %n Job name | ||
# %t Job type (Backup, …) | ||
# %i Job Id | ||
Console = "list jobid=%i" | ||
Console = "INVALID" | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...tests/tests/python-bareos/etc/bareos/bareos-dir.d/job/admin-runscript-console-server.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,18 @@ | ||
Job { | ||
Name = "admin-runscript-console-server" | ||
JobDefs = "DefaultJob" | ||
Type = Admin | ||
RunScript { | ||
RunsWhen = Before | ||
Runs On Failure = Yes | ||
Runs On Client = No | ||
FailJobOnError = Yes | ||
# %d Daemon’s name (Such as host-dir or host-fd) | ||
# %n Job name | ||
# %t Job type (Backup, …) | ||
# %i Job Id | ||
Console = "whoami" | ||
Console = "version" | ||
Console = "list jobid=%i" | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
.../python-bareos/etc/bareos/bareos-dir.d/job/backup-bareos-fd-runscript-console-client.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,16 @@ | ||
Job { | ||
Name = "backup-bareos-fd-runscript-console-client" | ||
JobDefs = "DefaultJob" | ||
Type = Backup | ||
RunScript { | ||
RunsWhen = Before | ||
Runs On Failure = Yes | ||
Runs On Client = Yes | ||
FailJobOnError = Yes | ||
# %d Daemon’s name (Such as host-dir or host-fd) | ||
# %n Job name | ||
# %t Job type (Backup, …) | ||
# %i Job Id | ||
Console = "version" | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
.../python-bareos/etc/bareos/bareos-dir.d/job/backup-bareos-fd-runscript-console-server.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,18 @@ | ||
Job { | ||
Name = "backup-bareos-fd-runscript-console-server" | ||
JobDefs = "DefaultJob" | ||
Type = Backup | ||
RunScript { | ||
RunsWhen = Before | ||
# Runs On Failure = Yes | ||
Runs On Client = No | ||
FailJobOnError = Yes | ||
# %d Daemon’s name (Such as host-dir or host-fd) | ||
# %n Job name | ||
# %t Job type (Backup, …) | ||
# %i Job Id | ||
Console = "whoami" | ||
Console = "version" | ||
Console = "list jobid=%i" | ||
} | ||
} |
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