Skip to content

tests: use valid signature format in protocol characterization tests#15010

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
amaanq:fix-test-signature-format
Jan 17, 2026
Merged

tests: use valid signature format in protocol characterization tests#15010
Ericson2314 merged 1 commit intoNixOS:masterfrom
amaanq:fix-test-signature-format

Conversation

@amaanq
Copy link
Member

@amaanq amaanq commented Jan 16, 2026

Motivation

The protocol characterization tests use placeholder signature strings like "asdf" and "qwer" which don't follow the valid signature format (name:base64signature). This makes the test data inconsistent with real-world usage and will cause failures when stricter signature validation is introduced (#15009)

Context

This change was extracted from a larger PR (#15009) which introduces a Signature type with validation. Separating it out keeps the main PR's diff cleaner and easier to review.


Add 👍 to pull requests you find important.

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

@amaanq amaanq requested a review from edolstra as a code owner January 16, 2026 22:00
@amaanq amaanq force-pushed the fix-test-signature-format branch 2 times, most recently from 6dc0e67 to b4225bb Compare January 16, 2026 22:14
@amaanq amaanq force-pushed the fix-test-signature-format branch 2 times, most recently from 28246fb to 0979ca1 Compare January 16, 2026 22:45
The test data was using invalid signature strings like "asdf" and
"qwer" which don't follow the required "name:base64signature" format.
This updates them to use properly formatted signatures with valid
base64-encoded data.
@amaanq amaanq force-pushed the fix-test-signature-format branch from 0979ca1 to 51ca872 Compare January 16, 2026 22:50
@Ericson2314
Copy link
Member

@amaanq works with me, so I would not normally merge his work, but this is just updating tests. I have hand-reviewed the binary format diffs to make sure there are not other accidental changes. In particular, the tests with the now-deprecated dependent realizations still have that field non-empty.

@Ericson2314 Ericson2314 enabled auto-merge January 16, 2026 22:59
@Ericson2314 Ericson2314 added this pull request to the merge queue Jan 16, 2026
Merged via the queue into NixOS:master with commit d6fa3e3 Jan 17, 2026
14 checks passed
@amaanq amaanq deleted the fix-test-signature-format branch January 22, 2026 19:54
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