PushCertificateChecker: Tweak some error messages
Don't wrap keys in parens, to avoid "))" at the end, as the fingerprint is already in parens. Use "key ID" with lowercase "k". Change-Id: Ied8787cb449cb7b044b49ac9035d0441eea3181b
This commit is contained in:
@@ -96,7 +96,7 @@ public class PushCertificateCheckerTest {
|
||||
TestKey key2 = TestKey.key2();
|
||||
PushCertificate cert = newSignedCert(validNonce(), key2);
|
||||
assertProblems(cert,
|
||||
"No public keys found for Key ID " + keyIdToString(key2.getKeyId()));
|
||||
"No public keys found for key ID " + keyIdToString(key2.getKeyId()));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -104,8 +104,8 @@ public class PushCertificateCheckerTest {
|
||||
TestKey key3 = TestKey.key3();
|
||||
PushCertificate cert = newSignedCert(validNonce(), key3);
|
||||
assertProblems(cert,
|
||||
"Invalid public key (" + keyToString(key3.getPublicKey())
|
||||
+ "):\n Key is expired");
|
||||
"Invalid public key " + keyToString(key3.getPublicKey())
|
||||
+ ":\n Key is expired");
|
||||
}
|
||||
|
||||
private String validNonce() {
|
||||
|
||||
Reference in New Issue
Block a user