mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
pv: Rewrite CRL download tests
Replace the existing mocks with a trait-based test infrastructure. This allows testing download_first_crl_from_x509() functionally while avoiding actual network access, resulting in more comprehensive and realistic test coverage. Assisted-by: IBM Bob:1.0.5 Signed-off-by: Marc Hartmayer <marc@linux.ibm.com> Acked-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
2565a4ca99
commit
692af4058c
@@ -175,6 +175,8 @@ pub enum HkdVerifyErrorType {
|
||||
NoCrlDP,
|
||||
#[error("The IBM Z signing key could not be verified. Error occurred at level {1}")]
|
||||
IbmSignInvalid(#[source] openssl::x509::X509VerifyResult, u32),
|
||||
#[error("CRL download failed")]
|
||||
CrlDownloadFailed,
|
||||
}
|
||||
|
||||
macro_rules! bail_hkd_verify {
|
||||
|
||||
Reference in New Issue
Block a user