sign: provide display in TestSigningBackend

We need to provide a value for the `display` attribute to assert against
in upcoming tests, which verify signature templates.
This commit is contained in:
pylbrecht 2024-12-29 13:31:30 +01:00 committed by Philipp Albrecht
parent 638f123459
commit 87b38b3073
2 changed files with 3 additions and 3 deletions

View file

@ -63,13 +63,13 @@ impl SigningBackend for TestSigningBackend {
Ok(Verification {
status: SigStatus::Good,
key,
display: None,
display: Some("test-display".into()),
})
} else {
Ok(Verification {
status: SigStatus::Bad,
key,
display: None,
display: Some("test-display".into()),
})
}
}

View file

@ -48,7 +48,7 @@ fn good_verification() -> Option<Verification> {
Some(Verification {
status: SigStatus::Good,
key: Some("impeccable".to_owned()),
display: None,
display: Some("test-display".into()),
})
}