aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain-Test/src/test/java/org
diff options
context:
space:
mode:
authorVincent Breitmoser <valodim@mugenguild.com>2014-08-16 05:13:09 +0200
committerVincent Breitmoser <valodim@mugenguild.com>2014-08-16 06:53:50 +0200
commitc54fe21f44f118c59874fe97b662b3faea6ebc48 (patch)
treea3da875b766cd32ef9b15f44c14581967a782a67 /OpenKeychain-Test/src/test/java/org
parent0708b573fc7a058d08840b8ce256cb103a0eeafa (diff)
downloadopen-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/java/org')
-rw-r--r--OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java7
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