diff options
author | Vincent Breitmoser <valodim@mugenguild.com> | 2014-08-16 05:13:09 +0200 |
---|---|---|
committer | Vincent Breitmoser <valodim@mugenguild.com> | 2014-08-16 06:53:50 +0200 |
commit | c54fe21f44f118c59874fe97b662b3faea6ebc48 (patch) | |
tree | a3da875b766cd32ef9b15f44c14581967a782a67 /OpenKeychain-Test/src/test | |
parent | 0708b573fc7a058d08840b8ce256cb103a0eeafa (diff) | |
download | open-keychain-c54fe21f44f118c59874fe97b662b3faea6ebc48.tar.gz open-keychain-c54fe21f44f118c59874fe97b662b3faea6ebc48.tar.bz2 open-keychain-c54fe21f44f118c59874fe97b662b3faea6ebc48.zip |
modifySecretKey: err out on revocation of nonexistent user id
Diffstat (limited to 'OpenKeychain-Test/src/test')
-rw-r--r-- | OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java b/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java index 91c95a873..9d4aa7dba 100644 --- a/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java +++ b/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java @@ -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 |