Add date and algorithm for some PGP verify ops

This commit is contained in:
toby 2017-03-15 16:16:13 -04:00
parent bc4d7e86e3
commit d2e41b7d4b
2 changed files with 36 additions and 11 deletions

View file

@ -304,9 +304,8 @@ TestRegister.addTests([{
"Verified: true",
"Key ID: " + alice.keyID,
"Encrypted for: " + bob.name,
"Signed on: ",
"Signed by: " + alice.name,
"Signed with: ",
"Signed with: rsa_encrypt_sign/aes256",
"\n",
input,
].join("\n"),
@ -338,9 +337,8 @@ TestRegister.addTests([{
expectedOutput: [
"Verified: true",
"Key ID: " + keyPair.keyID,
"Signed on: ",
"Signed by: " + keyPair.name,
"Signed with: ",
"Signed with: rsa_encrypt_sign",
"\n",
input,
].join("\n"),
@ -353,6 +351,16 @@ TestRegister.addTests([{
op: "Verify PGP Cleartext",
args: [keyPair.pub],
},
{
op: "Find / Replace",
args: [
{option: "Regex", string: "Signed on: .*\r?\n"},
"",
true,
false,
false,
],
},
],
};
})