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:
parent
53d6260210
commit
f7576abd35
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue