mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-01 05:58:12 -06:00
signing_with_translated_labels_through_tools (from #1951) creates and uses a digital ID with the password "secret1"; #2201 ("harden .p12 digital IDs") now requires at least 8 characters. Each passed alone; together the test fails on main, and so does every PR's test job. The password is "secret12" in both places. Claude-Session: https://claude.ai/code/session_011K1peyrh5MdZ6ttHkVq8Gh Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
afa8e1843c
commit
224416a3dd
@@ -4527,11 +4527,11 @@ fn signature_appearances(path: &Path) -> String {
|
||||
fn signing_with_translated_labels_through_tools() {
|
||||
let dir = workdir("signing-labels");
|
||||
let mut a = auto(&dir);
|
||||
ok(&mut a, "sign_id_create", json!({ "name": "Ada Lovelace", "key": "p256", "password": "secret1", "path": "ada.p12" }));
|
||||
ok(&mut a, "sign_id_create", json!({ "name": "Ada Lovelace", "key": "p256", "password": "secret12", "path": "ada.p12" }));
|
||||
let open = |a: &mut Automation| ok(a, "doc_open", json!({ "path": "a.pdf" }))["doc"].as_u64().unwrap();
|
||||
let doc = open(&mut a);
|
||||
let args = |doc: u64, extra: Value, out: &str| {
|
||||
let mut args = json!({ "doc": doc, "id": "ada.p12", "password": "secret1", "page": 1, "rect": [10, 150, 190, 290], "reason": "Genehmigt", "location": "Berlin", "out": out });
|
||||
let mut args = json!({ "doc": doc, "id": "ada.p12", "password": "secret12", "page": 1, "rect": [10, 150, 190, 290], "reason": "Genehmigt", "location": "Berlin", "out": out });
|
||||
for (k, v) in extra.as_object().unwrap() {
|
||||
args[k] = v.clone();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user