| 1 |
#[cfg(test)] |
| 2 |
mod integration { |
| 3 |
use std::path; |
| 4 |
|
| 5 |
use assert_cmd::Command; |
| 6 |
|
| 7 |
#[test] |
| 8 |
fn no_issuer_subpacket() { |
| 9 |
Command::cargo_bin("sqv").expect("have sqv") |
| 10 |
.current_dir(path::Path::new("tests").join("data")) |
| 11 |
.args(&["--keyring", "keybox.kbx", |
| 12 |
"bad-subkey.txt.sig", "bad-subkey.txt"]) |
| 13 |
.assert() |
| 14 |
.failure() |
| 15 |
.stderr(predicates::function::function(|data| { |
| 16 |
let data = String::from_utf8_lossy(data); |
| 17 |
data.contains("File appears to be in keybox format, which is not supported") |
| 18 |
})); |
| 19 |
} |
| 20 |
} |