aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Alexander Polcyn <apolcyn@google.com>2018-10-11 13:53:54 -0700
committerGravatar Alexander Polcyn <apolcyn@google.com>2018-10-11 13:53:54 -0700
commitaea5f109a6ad38b1947ef51c14e416653e208a9f (patch)
tree1fdd758de6cfef2dffee573879f6f6de519438ad
parent61b542f912507ca6b5389442645e2449b43a63d5 (diff)
Add c++ google default creds to cloud to prod auth scenarios
-rw-r--r--test/cpp/interop/client.cc3
-rwxr-xr-xtools/run_tests/run_interop_tests.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/test/cpp/interop/client.cc b/test/cpp/interop/client.cc
index a4b1a85f85..1d7fa73aa8 100644
--- a/test/cpp/interop/client.cc
+++ b/test/cpp/interop/client.cc
@@ -137,7 +137,8 @@ int main(int argc, char** argv) {
&grpc::testing::InteropClient::DoTimeoutOnSleepingServer, &client);
actions["empty_stream"] =
std::bind(&grpc::testing::InteropClient::DoEmptyStream, &client);
- if (FLAGS_use_tls) {
+ if (FLAGS_use_tls ||
+ FLAGS_custom_credentials_type == "google_default_credentials") {
actions["compute_engine_creds"] =
std::bind(&grpc::testing::InteropClient::DoComputeEngineCreds, &client,
FLAGS_default_service_account, FLAGS_oauth_scope);
diff --git a/tools/run_tests/run_interop_tests.py b/tools/run_tests/run_interop_tests.py
index e8d6b59687..9752e741fb 100755
--- a/tools/run_tests/run_interop_tests.py
+++ b/tools/run_tests/run_interop_tests.py
@@ -1376,7 +1376,8 @@ try:
transport_security='tls')
jobs.append(tls_test_job)
if str(language) in [
- 'go'
+ 'c++',
+ 'go',
]: # Add more languages to the list to turn on tests.
google_default_creds_test_job = cloud_to_prod_jobspec(
language,