Skip to content

Add test PKI and issuance helpers, move test modules to their own files - #136

Open
sbihel wants to merge 2 commits into
mainfrom
acc-1912-prep
Open

sbihel wants to merge 2 commits into
mainfrom
acc-1912-prep

Conversation

@sbihel

@sbihel sbihel commented Aug 21, 2026 •

Copy link
Copy Markdown
Member

Preparation for per-document response validation. Test-only; no API
changes.

The tests modules at the end of some files were getting very large,
which would make the PR reviews harder so I decided to move them in
their own files.

REF ACC-1912

Preparation for per-document response validation. Test-only; no API
changes.

The tests modules at the end of some files were getting very large,
which would make the PR reviews harder so I decided to move them in
their own files.

REF ACC-1912
Comment thread src/issuance/mdoc_tests.rs Outdated
&pki.fetcher_revoking(&[pki.leaf_serial()]),
)
.await;
assert!(!outcome.success(), "a revoked signer should not validate");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Assert that outcome.errors contains the text certificate is revoked, any failure could make this successful.

Comment thread src/definitions/x509/tests.rs Outdated
/// moving the MSO's [`ValidityInfo`](crate::definitions::ValidityInfo) over
/// pinning validation time — pinning moves the certificate window too.
///
/// `crl_url` is `None` unless the test exercises CRL fetching; see

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

crl_url is defined as String bellow, how could it be None?

Comment thread src/definitions/x509/tests.rs Outdated
/// - CRL Number (5.2.3, M)
pub(crate) fn build_crl_extensions(root_cert: &Certificate) -> Vec<Extension> {
use const_oid::AssociatedOid;
use der::{Decode, Encode};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Decode at top level already

Suggested change
use der::{Decode, Encode};
use der::Encode;

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.

3 participants