Add a FakeSignatureVerifier for development mode and TESTING builds (PR 21247 follow-up)#21543
Merged
Merged
Conversation
5cbb331 to
08af15d
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #21543 +/- ##
==========================================
+ Coverage 89.41% 89.72% +0.31%
==========================================
Files 262 262
Lines 66738 66747 +9
==========================================
+ Hits 59675 59890 +215
+ Misses 7063 6857 -206
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
… (PR 21247 follow-up) Despite the `enableSignatureVerification` option/preference being enabled in development mode and TESTING builds, the lack of any `SignatureVerifier` implementation still renders the UI disabled. This seems unfortunate, since it makes it more difficult to check that the digital signature UI works correctly: - That the button is visible when it's supposed to be, and that the panel can be opened/closed. - That the UI looks correct, w.r.t. the HTML elements and their CSS rules. - Currently the viewer JS code is effectively uncovered, with overall test-coverage dropping from `90` to `89` percent when PR 21247 landed. To improve the current situation this patch adds a `FakeSignatureVerifier` class, limited to only development mode and TESTING builds, that treats every digital signature as invalid. This allows easier manual testing, and also the addition of a few *very rudimentary* integration-tests. *Note:* It probably wouldn't be all that difficult to add additional integration-tests for *valid* certificates, by having the test-cases instruct (during setup) the `FakeSignatureVerifier` how to respond to simulate verified certificates.
08af15d to
c188012
Compare
timvandermeij
approved these changes
Jul 5, 2026
timvandermeij
left a comment
Collaborator
There was a problem hiding this comment.
Looks good to me. Thank you for improving the coverage on this functionality!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Despite the
enableSignatureVerificationoption/preference being enabled in development mode and TESTING builds, the lack of anySignatureVerifierimplementation still renders the UI disabled.This seems unfortunate, since it makes it more difficult to check that the digital signature UI works correctly:
90to89percent when PR Digital Signature and Certificate verification #21247 landed.To improve the current situation this patch adds a
FakeSignatureVerifierclass, limited to only development mode and TESTING builds, that treats every digital signature as invalid.This allows easier manual testing, and also the addition of a few very rudimentary integration-tests.
Note: It probably wouldn't be all that difficult to add additional integration-tests for valid certificates, by having the test-cases instruct (during setup) the
FakeSignatureVerifierhow to respond to simulate verified certificates.