File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
service/common/src/test/java/org/apache/polaris/service/auth Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public class PemUtilsTest {
51
51
52
52
private static final String RSA_PRIVATE_KEY_FILE = "rsa-private-key.pem" ;
53
53
54
- private static final String RSA_PUBLIC_KEY_AND_PRIVATE_KEY_FILE = "rsa-public-key-and-private-key .pem" ;
54
+ private static final String RSA_PUBLIC_KEY_AND_PRIVATE_KEY_FILE = "rsa-public-key-pair .pem" ;
55
55
56
56
private static final String EMPTY_FILE = "empty.pem" ;
57
57
@@ -112,14 +112,16 @@ public void testReadPrivateKeyFromFileRSA() throws IOException {
112
112
113
113
@ Test
114
114
public void testReadPublicKeyFromFileRSAWithPrivateKeyIgnored () throws IOException {
115
- final PublicKey publicKeyRead = PemUtils .readPublicKeyFromFile (rsaPublicKeyAndPrivateKeyPath , RSA_ALGORITHM );
115
+ final PublicKey publicKeyRead =
116
+ PemUtils .readPublicKeyFromFile (rsaPublicKeyAndPrivateKeyPath , RSA_ALGORITHM );
116
117
117
118
assertEquals (rsaPublicKey , publicKeyRead );
118
119
}
119
120
120
121
@ Test
121
122
public void testReadEmptyFIle () {
122
- assertThrows (IOException .class , () -> PemUtils .readPublicKeyFromFile (emptyFilePath , RSA_ALGORITHM ));
123
+ assertThrows (
124
+ IOException .class , () -> PemUtils .readPublicKeyFromFile (emptyFilePath , RSA_ALGORITHM ));
123
125
}
124
126
125
127
private static String getPublicKeyEncoded (final PublicKey publicKey ) {
You can’t perform that action at this time.
0 commit comments