File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
google-cloud-spanner/src/test/java/com/google/cloud/spanner Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2121import static com .google .common .base .Preconditions .checkState ;
2222
2323import com .google .api .gax .grpc .InstantiatingGrpcChannelProvider ;
24- import com .google .auth .oauth2 .GoogleCredentials ;
24+ import com .google .auth .oauth2 .ServiceAccountCredentials ;
2525import com .google .cloud .spanner .spi .v1 .SpannerInterceptorProvider ;
2626import io .grpc .CallOptions ;
2727import io .grpc .Channel ;
@@ -80,7 +80,8 @@ public GceTestEnvConfig() {
8080 }
8181 if (!credentialsFile .isEmpty ()) {
8282 try {
83- builder .setCredentials (GoogleCredentials .fromStream (new FileInputStream (credentialsFile )));
83+ builder .setCredentials (
84+ ServiceAccountCredentials .fromStream (new FileInputStream (credentialsFile )));
8485 } catch (IOException e ) {
8586 throw new RuntimeException (e );
8687 }
You can’t perform that action at this time.
0 commit comments