Skip to content

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

@jimklimov

Description

@jimklimov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIEntries related to continuous integration infrastructure (here CI = tools + scripts + recipes)enhancementnut-driver-enumerator (NDE)nut-driver-enumerator (NDE) automates service management integration for NUT driver instances etc.portabilityWe want NUT to build and run everywhere possible

    Type

    No type

    Projects

    Status

    TODO

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions