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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
de99fe86
Commit
de99fe86
authored
8 years ago
by
Noah Eisen
Browse files
Options
Downloads
Patches
Plain Diff
Enable Go negative http2 interop test
parent
cd232f64
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/run_tests/run_interop_tests.py
+9
-2
9 additions, 2 deletions
tools/run_tests/run_interop_tests.py
with
9 additions
and
2 deletions
tools/run_tests/run_interop_tests.py
+
9
−
2
View file @
de99fe86
...
...
@@ -164,6 +164,7 @@ class JavaLanguage:
def
__init__
(
self
):
self
.
client_cwd
=
'
../grpc-java
'
self
.
server_cwd
=
'
../grpc-java
'
self
.
http2_cwd
=
'
../grpc-java
'
self
.
safename
=
str
(
self
)
def
client_cmd
(
self
,
args
):
...
...
@@ -197,11 +198,15 @@ class GoLanguage:
# TODO: this relies on running inside docker
self
.
client_cwd
=
'
/go/src/google.golang.org/grpc/interop/client
'
self
.
server_cwd
=
'
/go/src/google.golang.org/grpc/interop/server
'
self
.
http2_cwd
=
'
/go/src/google.golang.org/grpc/interop/http2
'
self
.
safename
=
str
(
self
)
def
client_cmd
(
self
,
args
):
return
[
'
go
'
,
'
run
'
,
'
client.go
'
]
+
args
def
client_cmd_http2interop
(
self
,
args
):
return
[
'
go
'
,
'
run
'
,
'
negative_http2_client.go
'
]
+
args
def
cloud_to_prod_env
(
self
):
return
{}
...
...
@@ -393,6 +398,7 @@ class PythonLanguage:
def
__init__
(
self
):
self
.
client_cwd
=
None
self
.
server_cwd
=
None
self
.
http2_cwd
=
None
self
.
safename
=
str
(
self
)
def
client_cmd
(
self
,
args
):
...
...
@@ -469,7 +475,7 @@ _HTTP2_BADSERVER_TEST_CASES = ['rst_after_header', 'rst_after_data', 'rst_during
'
goaway
'
,
'
ping
'
,
'
max_streams
'
]
# TODO: Add python once the tests are fixed.
_LANGUAGES_FOR_HTTP2_BADSERVER_TESTS
=
[
'
java
'
]
_LANGUAGES_FOR_HTTP2_BADSERVER_TESTS
=
[
'
java
'
,
'
go
'
]
DOCKER_WORKDIR_ROOT
=
'
/var/local/git/grpc
'
...
...
@@ -605,11 +611,12 @@ def cloud_to_cloud_jobspec(language, test_case, server_name, server_host,
client_options
=
common_options
+
[
'
--server_port=%s
'
%
(
int
(
server_port
)
+
offset
)]
cmdline
=
bash_cmdline
(
language
.
client_cmd_http2interop
(
client_options
))
cwd
=
language
.
http2_cwd
else
:
client_options
=
interop_only_options
+
common_options
+
[
'
--server_port=%s
'
%
server_port
]
cmdline
=
bash_cmdline
(
language
.
client_cmd
(
client_options
))
cwd
=
language
.
client_cwd
cwd
=
language
.
client_cwd
environ
=
language
.
global_env
()
if
docker_image
:
container_name
=
dockerjob
.
random_name
(
'
interop_client_%s
'
%
language
.
safename
)
...
...
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
register
or
sign in
to comment