| 1 |
#[cfg(test)] |
| 2 |
mod integration { |
| 3 |
use std::path; |
| 4 |
|
| 5 |
use assert_cmd::Command; |
| 6 |
use predicates::prelude::*; |
| 7 |
|
| 8 |
#[test] |
| 9 |
fn no_issuer_subpacket() { |
| 10 |
Command::cargo_bin("sqv").expect("have sqv") |
| 11 |
.current_dir(path::Path::new("tests").join("data")) |
| 12 |
.args(&["--keyring", "bad-subkey-keyring.pgp", |
| 13 |
"no-issuer-subpacket.sig", "bad-subkey.txt"]) |
| 14 |
.assert() |
| 15 |
.failure() |
| 16 |
.stderr(predicate::eq( |
| 17 |
b"Missing key <unknown issuer>, which is needed to verify signature.\n" as &[u8])); |
| 18 |
} |
| 19 |
} |