File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
oauth2_http/javatests/com/google/auth/mtls Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -85,27 +85,6 @@ public void X509Provider_EmptyFile_Throws() {
8585 }
8686 }
8787
88- @ Test
89- public void X509Provider_EmptyCertFile_Throws () throws IOException {
90- String certConfigPath = "certConfig.txt" ;
91- String certPath = "cert.crt" ;
92- String keyPath = "key.crt" ;
93- InputStream certConfigStream = writeWorkloadCertificateConfigStream (certPath , keyPath );
94-
95- TestX509Provider testProvider = new TestX509Provider (certConfigPath );
96- testProvider .addFile (certConfigPath , certConfigStream );
97- testProvider .addFile (keyPath , new ByteArrayInputStream (TEST_PRIVATE_KEY .getBytes ()));
98- String expectedErrorMessage = String .format ("Error reading certificate configuration file value '%s': no JSON input found" , certConfigPath );
99-
100- try {
101- testProvider .getKeyStore ();
102- fail ("No key store expected." );
103- } catch (IOException e ) {
104- String message = e .getMessage ();
105- assertTrue (message .equals (expectedErrorMessage ));
106- }
107- }
108-
10988 @ Test
11089 public void X509Provider_Succeeds () throws IOException , KeyStoreException , CertificateException {
11190 String certConfigPath = "certConfig.txt" ;
You can’t perform that action at this time.
0 commit comments