aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Tim Emiola <tbetbetbe@users.noreply.github.com>2015-05-05 09:50:00 -0700
committerGravatar Tim Emiola <tbetbetbe@users.noreply.github.com>2015-05-05 09:50:00 -0700
commit97c5559040204dcff338df79b16390014fbc82c9 (patch)
tree003d3b0a810f5bdcead97e2a8390c9323e26119d /tools
parenta0e14540210d856c09da184ecd5da7b414056cc9 (diff)
parente19497a9d5e50ce47fb4bc0046aa6b239a15549d (diff)
Merge pull request #1476 from stanley-cheung/php_gce_auth_test
add php compute_engine_creds auth interop test
Diffstat (limited to 'tools')
-rwxr-xr-xtools/gce_setup/grpc_docker.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/gce_setup/grpc_docker.sh b/tools/gce_setup/grpc_docker.sh
index 8b5d5eae50..ecce0e2983 100755
--- a/tools/gce_setup/grpc_docker.sh
+++ b/tools/gce_setup/grpc_docker.sh
@@ -1250,6 +1250,37 @@ grpc_interop_gen_php_cmd() {
echo $the_cmd
}
+# constructs the full dockerized php service_account auth interop test cmd.
+#
+# call-seq:
+# flags= .... # generic flags to include the command
+# cmd=$($grpc_gen_test_cmd $flags)
+grpc_cloud_prod_auth_service_account_creds_gen_php_cmd() {
+ local env_flag="-e SSL_CERT_FILE=/cacerts/roots.pem "
+ env_flag+="-e GOOGLE_APPLICATION_CREDENTIALS=/service_account/stubbyCloudTestingTest-7dd63462c60c.json "
+ local cmd_prefix="sudo docker run $env_flag grpc/php";
+ local test_script="/var/local/git/grpc/src/php/bin/interop_client.sh";
+ local gfe_flags=$(_grpc_prod_gfe_flags);
+ local added_gfe_flags=$(_grpc_default_creds_test_flags)
+ local the_cmd="$cmd_prefix $test_script $gfe_flags $added_gfe_flags $@";
+ echo $the_cmd
+}
+
+# constructs the full dockerized php compute_engine auth interop test cmd.
+#
+# call-seq:
+# flags= .... # generic flags to include the command
+# cmd=$($grpc_gen_test_cmd $flags)
+grpc_cloud_prod_auth_compute_engine_creds_gen_php_cmd() {
+ local env_flag="-e SSL_CERT_FILE=/cacerts/roots.pem "
+ local cmd_prefix="sudo docker run $env_flag grpc/php";
+ local test_script="/var/local/git/grpc/src/php/bin/interop_client.sh";
+ local gfe_flags=$(_grpc_prod_gfe_flags);
+ local added_gfe_flags=$(_grpc_gce_test_flags)
+ local the_cmd="$cmd_prefix $test_script $gfe_flags $added_gfe_flags $@";
+ echo $the_cmd
+}
+
# constructs the full dockerized node interop test cmd.
#
# call-seq: