Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
07814a55
Commit
07814a55
authored
Aug 3, 2015
by
Stanley Cheung
Browse files
Options
Downloads
Plain Diff
Merge pull request #2737 from jtattermusch/enable_new_interop_tests
Enable oauth2_auth_token and per_rpc_creds interop tests for C#
parents
7716c53a
8015cad2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/gce_setup/grpc_docker.sh
+62
-0
62 additions, 0 deletions
tools/gce_setup/grpc_docker.sh
with
62 additions
and
0 deletions
tools/gce_setup/grpc_docker.sh
+
62
−
0
View file @
07814a55
...
@@ -1638,6 +1638,68 @@ grpc_cloud_prod_auth_compute_engine_creds_gen_csharp_dotnet_cmd() {
...
@@ -1638,6 +1638,68 @@ grpc_cloud_prod_auth_compute_engine_creds_gen_csharp_dotnet_cmd() {
echo
$the_cmd
echo
$the_cmd
}
}
# constructs the full dockerized csharp-mono oauth2_auth_token auth interop test cmd.
#
# call-seq:
# flags= .... # generic flags to include the command
# cmd=$($grpc_gen_test_cmd $flags)
grpc_cloud_prod_auth_oauth2_auth_token_gen_csharp_mono_cmd
()
{
local
workdir_flag
=
"-w /var/local/git/grpc/src/csharp/Grpc.IntegrationTesting.Client/bin/Debug"
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
$workdir_flag
$env_flag
grpc/csharp_mono"
;
local
test_script
=
"mono Grpc.IntegrationTesting.Client.exe --use_tls=true"
;
local
gfe_flags
=
$(
_grpc_prod_gfe_flags
)
;
local
the_cmd
=
"
$cmd_prefix
$test_script
$gfe_flags
$@
"
;
echo
$the_cmd
}
# constructs the csharp-dotnet oauth2_auth_token auth interop test cmd.
#
# call-seq:
# flags= .... # generic flags to include the command
# cmd=$($grpc_gen_test_cmd $flags)
grpc_cloud_prod_auth_oauth2_auth_token_gen_csharp_dotnet_cmd
()
{
local
set_workdir
=
"cd /cygdrive/c/github/grpc/src/csharp/Grpc.IntegrationTesting.Client/bin/Debug &&"
local
test_script
=
"./Grpc.IntegrationTesting.Client.exe --use_tls=true"
;
local
set_certfile
=
"SSL_CERT_FILE=/cacerts/roots.pem "
local
set_creds
=
"GOOGLE_APPLICATION_CREDENTIALS=/service_account/stubbyCloudTestingTest-7dd63462c60c.json "
local
gfe_flags
=
$(
_grpc_prod_gfe_flags
)
;
local
the_cmd
=
"
$set_workdir
$set_certfile
$set_creds
$test_script
$gfe_flags
$@
"
;
echo
$the_cmd
}
# constructs the full dockerized csharp-mono per_rpc_creds auth interop test cmd.
#
# call-seq:
# flags= .... # generic flags to include the command
# cmd=$($grpc_gen_test_cmd $flags)
grpc_cloud_prod_auth_per_rpc_creds_gen_csharp_mono_cmd
()
{
local
workdir_flag
=
"-w /var/local/git/grpc/src/csharp/Grpc.IntegrationTesting.Client/bin/Debug"
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
$workdir_flag
$env_flag
grpc/csharp_mono"
;
local
test_script
=
"mono Grpc.IntegrationTesting.Client.exe --use_tls=true"
;
local
gfe_flags
=
$(
_grpc_prod_gfe_flags
)
;
local
the_cmd
=
"
$cmd_prefix
$test_script
$gfe_flags
$@
"
;
echo
$the_cmd
}
# constructs the csharp-dotnet per_rpc_creds auth interop test cmd.
#
# call-seq:
# flags= .... # generic flags to include the command
# cmd=$($grpc_gen_test_cmd $flags)
grpc_cloud_prod_auth_per_rpc_creds_gen_csharp_dotnet_cmd
()
{
local
set_workdir
=
"cd /cygdrive/c/github/grpc/src/csharp/Grpc.IntegrationTesting.Client/bin/Debug &&"
local
test_script
=
"./Grpc.IntegrationTesting.Client.exe --use_tls=true"
;
local
set_certfile
=
"SSL_CERT_FILE=/cacerts/roots.pem "
local
set_creds
=
"GOOGLE_APPLICATION_CREDENTIALS=/service_account/stubbyCloudTestingTest-7dd63462c60c.json "
local
gfe_flags
=
$(
_grpc_prod_gfe_flags
)
;
local
the_cmd
=
"
$set_workdir
$set_certfile
$set_creds
$test_script
$gfe_flags
$@
"
;
echo
$the_cmd
}
# outputs the flags passed to gfe tests
# outputs the flags passed to gfe tests
_grpc_prod_gfe_flags
()
{
_grpc_prod_gfe_flags
()
{
echo
" --server_port=443 --server_host=grpc-test.sandbox.google.com --server_host_override=grpc-test.sandbox.google.com"
echo
" --server_port=443 --server_host=grpc-test.sandbox.google.com --server_host_override=grpc-test.sandbox.google.com"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment