Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gtest: added tests for default listening behavior
* the tests launche the bareos director * checks for the expected addresses and ports to be correctly set in the director, * and then creates a new socket and tries to bind on the same expected default/set ports, which should fail because the director is supposed to connect on them first.
- Loading branch information
1 parent
0dab5a4
commit abce51c
Showing
5 changed files
with
194 additions
and
1 deletion.
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
4 changes: 4 additions & 0 deletions
4
.../src/tests/configs/dual_stacking/default_dir_values/bareos-dir.d/director/bareos-dir.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,4 @@ | ||
Director { # define myself | ||
Name = bareos-dir | ||
Password = "dir_password" # Console password | ||
} |
6 changes: 6 additions & 0 deletions
6
core/src/tests/configs/dual_stacking/dir_port_set/bareos-dir.d/director/bareos-dir.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,6 @@ | ||
Director { # define myself | ||
Name = bareos-dir | ||
Password = "dir_password" # Console password | ||
|
||
DirPort = 30013 | ||
} |
7 changes: 7 additions & 0 deletions
7
...ts/configs/dual_stacking/dir_v4address_and_port_set/bareos-dir.d/director/bareos-dir.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,7 @@ | ||
Director { # define myself | ||
Name = bareos-dir | ||
Password = "dir_password" # Console password | ||
|
||
DirPort = 30012 | ||
DirAddress = 127.0.0.1 | ||
} |
6 changes: 6 additions & 0 deletions
6
core/src/tests/configs/dual_stacking/dir_v4address_set/bareos-dir.d/director/bareos-dir.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,6 @@ | ||
Director { | ||
Name = bareos-dir | ||
Password = "dir_password" # Console password | ||
|
||
DirAddress = 127.0.0.1 | ||
} |