mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-09 10:19:39 +02:00
DetachedVerifyImpl: Export signature mode in Verification result
This commit is contained in:
parent
05968533a5
commit
2ec176e938
3 changed files with 20 additions and 5 deletions
|
@ -90,7 +90,7 @@ public class InlineDetachCmdTest extends CLITest {
|
|||
pipeStringToStdin(msgOut.toString());
|
||||
ByteArrayOutputStream verifyOut = pipeStdoutToStream();
|
||||
assertSuccess(executeCommand("verify", sigFile.getAbsolutePath(), certFile.getAbsolutePath()));
|
||||
assertEquals("2021-05-15T16:08:06Z 4F665C4DC2C4660BC6425E415736E6931ACF370C 4F665C4DC2C4660BC6425E415736E6931ACF370C\n",
|
||||
assertEquals("2021-05-15T16:08:06Z 4F665C4DC2C4660BC6425E415736E6931ACF370C 4F665C4DC2C4660BC6425E415736E6931ACF370C mode:text\n",
|
||||
verifyOut.toString());
|
||||
}
|
||||
|
||||
|
@ -115,7 +115,7 @@ public class InlineDetachCmdTest extends CLITest {
|
|||
ByteArrayOutputStream verifyOut = pipeStdoutToStream();
|
||||
File certFile = writeFile("cert.asc", CERT);
|
||||
assertSuccess(executeCommand("verify", sigFile.getAbsolutePath(), certFile.getAbsolutePath()));
|
||||
assertEquals("2021-05-15T16:08:06Z 4F665C4DC2C4660BC6425E415736E6931ACF370C 4F665C4DC2C4660BC6425E415736E6931ACF370C\n",
|
||||
assertEquals("2021-05-15T16:08:06Z 4F665C4DC2C4660BC6425E415736E6931ACF370C 4F665C4DC2C4660BC6425E415736E6931ACF370C mode:text\n",
|
||||
verifyOut.toString());
|
||||
}
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@ public class RoundTripSignVerifyCmdTest extends CLITest {
|
|||
"=VWAZ\n" +
|
||||
"-----END PGP SIGNATURE-----";
|
||||
private static final String BINARY_SIG_VERIFICATION =
|
||||
"2022-11-09T18:40:24Z 444C10AB011EF8424C83F0A9DA9F413986211DC6 9DA09423C9F94BA4CCA30951099B11BF296A373E\n";
|
||||
"2022-11-09T18:40:24Z 444C10AB011EF8424C83F0A9DA9F413986211DC6 9DA09423C9F94BA4CCA30951099B11BF296A373E mode:binary\n";
|
||||
private static final String TEXT_SIG = "-----BEGIN PGP SIGNATURE-----\n" +
|
||||
"Version: PGPainless\n" +
|
||||
"\n" +
|
||||
|
@ -104,7 +104,7 @@ public class RoundTripSignVerifyCmdTest extends CLITest {
|
|||
"=s5xn\n" +
|
||||
"-----END PGP SIGNATURE-----";
|
||||
private static final String TEXT_SIG_VERIFICATION =
|
||||
"2022-11-09T18:41:18Z 444C10AB011EF8424C83F0A9DA9F413986211DC6 9DA09423C9F94BA4CCA30951099B11BF296A373E\n";
|
||||
"2022-11-09T18:41:18Z 444C10AB011EF8424C83F0A9DA9F413986211DC6 9DA09423C9F94BA4CCA30951099B11BF296A373E mode:text\n";
|
||||
private static final Date TEXT_SIG_CREATION = UTCUtil.parseUTCDate("2022-11-09T18:41:18Z");
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue