modifySecretKey: err out on revocation of nonexistent user id

This commit is contained in:
Vincent Breitmoser committed 2014-08-16 06:53:50 +02:00
1 parent 0708b573fc
commit c54fe21f44
4 files changed
+21

No files matched your search

@@ -589,6 +589,13 @@ public class PgpKeyOperationTest {
ring.getMasterKeyId(), ((SignaturePacket) p).getKeyID());
}
{ // revocation of non-existent user id should fail
parcel.reset();
parcel.mRevokeUserIds.add("nonexistent");
assertModifyFailure("revocation of nonexistent user id should fail", modified, parcel);
}
}
@Test