Skip to content

tests: add Realisation signing tests#15536

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:realisation-signing-tests
Mar 21, 2026
Merged

tests: add Realisation signing tests#15536
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:realisation-signing-tests

Conversation

@amaanq
Copy link
Copy Markdown
Member

@amaanq amaanq commented Mar 21, 2026

Motivation

UnkeyedRealisation::sign() and checkSignatures() had no test coverage. This adds characterisation tests for fingerprint output and behavioral tests for sign-then-verify, wrong-key rejection, tampered-outpath rejection, and signature stripping.


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

`UnkeyedRealisation::sign()` and `checkSignatures()` had no test coverage.
This adds characterisation tests for fingerprint output and behavioral tests
for sign-then-verify, wrong-key rejection, tampered-outpath rejection, and
signature stripping.
@amaanq amaanq requested a review from edolstra as a code owner March 21, 2026 01:45
Copy link
Copy Markdown
Member

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But we'll do more tests

@Ericson2314 Ericson2314 enabled auto-merge March 21, 2026 02:22
@Ericson2314 Ericson2314 added this pull request to the merge queue Mar 21, 2026
Merged via the queue into NixOS:master with commit 685f031 Mar 21, 2026
16 checks passed
@Ericson2314 Ericson2314 deleted the realisation-signing-tests branch March 21, 2026 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants