1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-18 02:12:06 +01:00

Minimal revocation certificate test: Test merging

This commit is contained in:
Paul Schaub 2023-06-20 17:37:18 +02:00
parent 53d6260210
commit f7576abd35
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -67,6 +67,11 @@ public class RevocationCertificateTest {
assertFalse(key.getUserIDs().hasNext());
assertFalse(key.getUserAttributes().hasNext());
assertNull(key.getTrustData());
PGPPublicKeyRing originalCert = PGPainless.extractCertificate(secretKeys);
PGPPublicKeyRing mergedCert = PGPainless.mergeCertificate(originalCert, minimalRevocationCert);
assertTrue(PGPainless.inspectKeyRing(mergedCert).getRevocationState().isSoftRevocation());
}
@Test
@ -85,6 +90,11 @@ public class RevocationCertificateTest {
assertFalse(key.getUserIDs().hasNext());
assertFalse(key.getUserAttributes().hasNext());
assertNull(key.getTrustData());
PGPPublicKeyRing originalCert = PGPainless.extractCertificate(secretKeys);
PGPPublicKeyRing mergedCert = PGPainless.mergeCertificate(originalCert, minimalRevocationCert);
assertTrue(PGPainless.inspectKeyRing(mergedCert).getRevocationState().isSoftRevocation());
}
@Test