Skip to content

[low] tests: cover security_guard daemon-recovery path (re-probe succeeds) #444

Description

@fentas

Follow-up from PR #443 (#418) round-2 review.

The re-probe test (daemon_disabled is re-probed …) uses a missing socket, so the re-probe always re-fails — it verifies the increment→reset trajectory but can't assert the recovery path (re-probe succeeds → daemon_disabled stays false AND daemon_trust_seeded re-seeds). Asserting that needs a mock UDS daemon fixture on the Zig side (the security_guard tests currently have none).

Add a lightweight in-test UDS server (or a fixture) that accepts classify (and trust_list) so a test can drive: down → latch → re-probe → daemon back up → daemon_disabled==false + trust seeded. Non-blocking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    audit-trackedFiled from a self-review audit; future reviews should skiplow-priorityLow-severity audit finding / improvement opportunity

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions