Skip to content

systemtests: add config-default test#2332

Merged
BareosBot merged 4 commits intobareos:masterfrom
bruno-at-bareos:dev/bruno/master/issue-2237-systemtest-defaultconfig
Aug 7, 2025
Merged

systemtests: add config-default test#2332
BareosBot merged 4 commits intobareos:masterfrom
bruno-at-bareos:dev/bruno/master/issue-2237-systemtest-defaultconfig

Conversation

@bruno-at-bareos
Copy link
Contributor

@bruno-at-bareos bruno-at-bareos commented Jul 24, 2025

This PR aims to introduce a new systemtest, we test prepared and distributed defaultsconfigs.

  • BareosSystemtestFunctions.cmake
    • remove unused copy of defaultsconfig, bconsole.conf
    • add systemtests/tests/config-default
  • systemtests/CMakeLists.txt
    • add bareos-tray-monitor in binary list
  • systemtest/environment.in
    • add BAREOS_TRAY_MONITOR_BINARY
  • do not test traymonitor if not build
  • use translated path variable BAREOS_WORKING_DIR
  • Exclude backend directory for Windows tests
    Backend Directory is only valid for dynamic backend,
    on Windows backends are statically build
  • use future normalized BAREOS_CONFIG_DIR variable
  • use WINDIR variable to detect if running on windows
  • use new SKIP_BAREOS_STATUS for default start_test function
  • use check_config function from bareos-ctl-func

Fix #2237

Thank you for contributing to the Bareos Project!

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
  • Is the PR title usable as CHANGELOG entry?
  • Purpose of the PR is understood
  • Commit descriptions are understandable and well formatted
    Required backport PRs have been created
  • Correct milestone is set
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR

@bruno-at-bareos bruno-at-bareos self-assigned this Jul 24, 2025
@bruno-at-bareos bruno-at-bareos added this to the 25.0.0 milestone Jul 24, 2025
@bruno-at-bareos bruno-at-bareos added bugfix bug This addresses a bug and removed enhancement labels Jul 24, 2025
@bruno-at-bareos bruno-at-bareos requested a review from sebsura July 24, 2025 11:49
@bruno-at-bareos bruno-at-bareos force-pushed the dev/bruno/master/issue-2237-systemtest-defaultconfig branch 2 times, most recently from d752db6 to ecd3d92 Compare July 24, 2025 15:18
@bruno-at-bareos
Copy link
Contributor Author

@sebsura do you think we should try to make it working on Windows testing. If yes, what is my best approach to learn how to do so ?
Last CI/CD failed with non existing path?

@bruno-at-bareos bruno-at-bareos force-pushed the dev/bruno/master/issue-2237-systemtest-defaultconfig branch 2 times, most recently from a5c880c to 85dcab8 Compare August 5, 2025 13:49
@bruno-at-bareos bruno-at-bareos force-pushed the dev/bruno/master/issue-2237-systemtest-defaultconfig branch 2 times, most recently from c093f68 to 332a3d9 Compare August 6, 2025 11:28
@bruno-at-bareos bruno-at-bareos force-pushed the dev/bruno/master/issue-2237-systemtest-defaultconfig branch from 332a3d9 to e053b63 Compare August 6, 2025 12:59
@bruno-at-bareos bruno-at-bareos requested a review from sebsura August 6, 2025 13:50
bruno-at-bareos and others added 3 commits August 7, 2025 07:16
- BareosSystemtestFunctions.cmake
  + remove unused copy of defaultsconfig, bconsole.conf
  + add `systemtests/tests/config-default`
- systemtests/CMakeLists.txt
  + add bareos-tray-monitor in binary list
- systemtest/environment.in
  + add BAREOS_TRAY_MONITOR_BINARY
- do not test traymonitor if not build
- use translated path variable BAREOS_WORKING_DIR
- Exclude backend directory for Windows tests
  ``Backend Directory`` is only valid for dynamic backend,
  on Windows backends are statically build
- use future normalized BAREOS_CONFIG_DIR variable
- use WINDIR variable to detect if running on windows
- use new SKIP_BAREOS_STATUS for default start_test function
- use check_config function from bareos-ctl-func

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
@sebsura sebsura force-pushed the dev/bruno/master/issue-2237-systemtest-defaultconfig branch from e053b63 to 008ceca Compare August 7, 2025 05:16
@sebsura
Copy link
Contributor

sebsura commented Aug 7, 2025

This is a great new test, thanks for your work!

@BareosBot BareosBot merged commit cb37560 into bareos:master Aug 7, 2025
@bruno-at-bareos bruno-at-bareos deleted the dev/bruno/master/issue-2237-systemtest-defaultconfig branch November 26, 2025 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug This addresses a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

defaultconfig should be systemtested

3 participants

Comments