pull/23203/head
Richard Belleville 4 years ago
parent a03e8efdf5
commit d067b63d48
  1. 1
      src/core/lib/security/credentials/google_default/google_default_credentials.cc
  2. 2
      src/cpp/client/secure_credentials.cc
  3. 5
      test/core/security/credentials_test.cc

@ -289,7 +289,6 @@ static void update_tenancy() {
g_metadata_server_available = is_metadata_server_reachable();
}
gpr_mu_unlock(&g_state_mu);
}
static void default_call_creds(grpc_core::RefCountedPtr<grpc_call_credentials>* call_creds,

@ -97,7 +97,7 @@ std::shared_ptr<CallCredentials> WrapCallCredentials(
std::shared_ptr<ChannelCredentials> GoogleDefaultCredentials() {
grpc::GrpcLibraryCodegen init; // To call grpc_init().
return WrapChannelCredentials(grpc_google_default_credentials_create());
return WrapChannelCredentials(grpc_google_default_credentials_create(nullptr));
}
// Builds SSL Credentials given SSL specific options

@ -1522,6 +1522,10 @@ static void test_no_google_default_creds(void) {
grpc_httpcli_set_override(nullptr, nullptr);
}
static void test_google_default_creds_call_creds_specified(void) {
}
typedef enum {
PLUGIN_INITIAL_STATE,
PLUGIN_GET_METADATA_CALLED_STATE,
@ -1831,6 +1835,7 @@ int main(int argc, char** argv) {
test_google_default_creds_gce();
test_google_default_creds_non_gce();
test_no_google_default_creds();
test_google_default_creds_call_creds_specified();
test_metadata_plugin_success();
test_metadata_plugin_failure();
test_get_well_known_google_credentials_file_path();

Loading…
Cancel
Save