Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The nut-driver-enumerator.sh script (NDE) would benefit from a CI mock service backend #2411

Open
jimklimov opened this issue Apr 19, 2024 · 0 comments
Labels
CI Entries related to continuous integration infrastructure (historically also recipes like Makefiles) enhancement nut-driver-enumerator (NDE) nut-driver-enumerator (NDE) automates service management integration for NUT driver instances etc. portability We want NUT to build and run everywhere possible
Projects
Milestone

Comments

@jimklimov
Copy link
Member

jimklimov commented Apr 19, 2024

The NDE script is written in an extensible fashion, as much as shell permits that, and can tap into systemd or SMF service management frameworks to define nut-driver unit instances with their custom dependency configurations, possibly MD5-ized names, config content checksums, etc.

Using real frameworks may be unwieldy for NDE testing and non-regression validation (in CI or during development), so a "mock framework" which would store the information and make-believe about service stop/start activity would be useful.

Inspired by work on #2410 which may be a fallout of #682 change set.

NOTE: The source code does already include a "selftest" frameworks support, with all hook methods currently leading to a selftest_NOOP() implementation.

@jimklimov jimklimov added enhancement CI Entries related to continuous integration infrastructure (historically also recipes like Makefiles) nut-driver-enumerator (NDE) nut-driver-enumerator (NDE) automates service management integration for NUT driver instances etc. portability We want NUT to build and run everywhere possible labels Apr 19, 2024
@jimklimov jimklimov added this to the 2.8.4 milestone Apr 19, 2024
@jimklimov jimklimov added this to TODO in NUT QA Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Entries related to continuous integration infrastructure (historically also recipes like Makefiles) enhancement nut-driver-enumerator (NDE) nut-driver-enumerator (NDE) automates service management integration for NUT driver instances etc. portability We want NUT to build and run everywhere possible
Projects
Development

No branches or pull requests

1 participant