Damien Neil
f818fd2a02
all: regenerate .pb.go files using cmd/protoc-gen-go-grpc ( #3646 )
...
Change regenerate.sh to use cmd/protoc-gen-go-grpc and rerun it.
This splits the gRPC service definitions into separate files, but
otherwise has no changes.
2020-05-28 13:52:49 -07:00
Menghan Li
30c53e745c
xds: move balancer/resolver registation to package xds ( #3640 )
2020-05-27 10:14:25 -07:00
Eric Gribkoff
695da821e9
interop: increase xds test client rpc timeout ( #3579 )
2020-04-28 19:30:16 -07:00
Eric Gribkoff
a3cc4f613d
interop: add --fail_on_failed_rpc xds client flag ( #3567 )
2020-04-24 12:11:27 -07:00
Damien Neil
15653fec60
all: refactor .pb.go generation ( #3451 )
...
Replace various //go:generate lines and regenerate.sh scripts with a
single, top-level regenerate.sh that regenerates all .pb.go files.
Placing generation in a single script ensures that all files are
generated with similar parameters. The new regenerate.sh uses the
protoc-gen-go version defined in test/tools/go.mod and automatically
handles new .proto files as they are added.
Do some minor refactoring on .proto files: Every file now has a
go_package option (which will be required by a future version of the
code generator), and file imports are all relative to the repository
root.
2020-04-24 08:54:03 -07:00
Menghan Li
c7079afb44
lint: fail on missing package comment ( #3524 )
...
golint does check for missing package comment, but with low confidence.
golint checks each file, and complains on every file missing package comment, even though another file in the same package has the comment.
This PR adds a golint check with low min_confidence, and filters out false-positives.
2020-04-15 09:59:17 -07:00
Eric Gribkoff
2cd9da628a
test: record peers by hostname in xds client ( #3409 )
2020-02-28 14:51:49 -08:00
Eric Gribkoff
6f9eea6eae
test: include xDS package in test client dependencies ( #3407 )
2020-02-28 09:40:52 -08:00
Menghan Li
f8ad812d8e
internal: update interop test.pb.go ( #3405 )
2020-02-27 13:17:00 -08:00
Eric Gribkoff
a43f3ee96c
interop: add xds test client and server ( #3326 )
...
https://github.com/grpc/grpc/blob/master/doc/xds-test-descriptions.md
2020-02-24 13:45:21 -08:00
Easwar Swaminathan
f3111a575a
interop: Build grpclb_fallback/client.go only for linux. ( #3375 )
2020-02-12 00:49:35 -08:00
Doug Fawley
b88d2d7465
protobuf: update protoc-gen-go version and generated code ( #3345 )
2020-01-30 10:23:21 -08:00
Doug Fawley
895b36ddf2
travis: run interop tests with examples ( #3229 )
2019-12-04 15:55:45 -08:00
apolcyn
d903dd74ec
interop: add grpclb fallback test ( #2994 )
2019-11-08 13:14:23 -08:00
Doug Fawley
4ec516e589
interop, examples: use localhost instead of 127.0.0.1 ( #3124 )
2019-10-28 14:41:46 -07:00
Doug Fawley
e2cfd1c28f
internal: update proto library version ( #3025 )
...
Also, two fixes:
- Fix long-standing `.travis.yml` bug where `VET_SKIP_PROTO` was not `export`ed (so not seen by `vet.sh`).
- Update `vet.sh` to work with new `goimports -l` that does not print a `:` after filenames.
2019-09-17 13:49:26 -07:00
Cesar Ghali
8655d473ad
credentials/alts: Add example of authz in ALTS ( #2814 )
2019-05-16 14:58:44 -07:00
Cesar Ghali
e1d95c39ad
credentials/alts: Support UDS addresses in ALTS interop test server ( #2763 )
...
* Support UDS addresses in ALTS interop test server
* Fix flag description
* Fixed comment
* Fix comment
2019-04-11 16:49:01 -07:00
Menghan Li
ee9f7f0c9a
interop: add test case for "pick_first" ( #2762 )
2019-04-11 14:22:58 -07:00
apolcyn
6d8271a06c
credentials: add compute engine channel creds ( #2708 )
2019-03-25 14:47:12 -07:00
apolcyn
17f2449821
Add google_default_credentials interop test case for go ( #2600 )
...
Implementing the [google default creds](https://github.com/grpc/grpc/blob/master/doc/interop-test-descriptions.md#google_default_credentials ) interop test for go.
This test case was added in https://github.com/grpc/grpc/pull/17213 . The existing OAuth creds test cases turned out to not be great first for google default creds testing, so https://github.com/grpc/grpc/pull/17213 got rid of those tests and created a new dedicated test for google default creds. This PR does that and also gets rid of the now-unneeded (we thought they would be needed earlier) OAuth test scenarios with plain ALTS.
2019-01-29 11:49:49 -08:00
Doug Fawley
04ea82009c
cleanup: replace "x/net/context" import with "context" ( #2439 )
2018-11-12 13:30:41 -08:00
apolcyn
431e4028c5
Provide a fake grpclb balancer server that can be used for testing ( #2338 )
2018-10-02 18:26:40 -07:00
Menghan Li
4dedfdc82c
credentials: support google default creds ( #2315 )
...
Google default creds is a combo of ALTS, TLS and OAuth2. The right set of creds will be picked to use based on environment.
This PR contains:
- A new `creds.Bundle` type
- changes to use it in ClientConn and transport
- dial option to set the bundle for a ClientConn
- balancer options and NewSubConnOption to set it for SubConn
- Google default creds implementation by @cesarghali
- grpclb changes to use different creds mode for different servers
- interop client changes for google default creds testing
2018-09-25 13:17:25 -07:00
dfawley
5fe10fccaf
Remove unused symbols ( #2287 )
2018-09-05 12:29:02 -07:00
Menghan Li
8fbeaf87a6
interop: implement special_status_message interop test ( #2241 )
...
fixes #2240
2018-07-30 13:33:50 -07:00
apolcyn
4f4261e767
interop: loosen restrictions on creds per test in interop client ( #2231 )
2018-07-19 10:53:08 -07:00
apolcyn
6a43dcc2ac
Allow interop client to use call creds on any secure channel ( #2185 )
2018-06-28 10:41:13 -07:00
apolcyn
b519e3d28d
interop: set dns as default scheme in interop client ( #2165 )
...
this is to allow use of grpclb-in-DNS in the interop client
2018-06-20 12:19:01 -07:00
apolcyn
7e6dc36bea
Import grpclb package in the interop client ( #2155 )
...
This can allow the interop client to start running in scenarios in which the target is grpclb balanced.
2018-06-15 15:00:04 -07:00
Menghan Li
39a411827d
internal: Update proto generated code ( #2133 )
2018-06-08 17:54:26 -07:00
Menghan Li
f669235193
internal: update proto generated code ( #2093 )
2018-05-21 09:59:26 -07:00
lyuxuan
a36eb4675a
regenerate *.pb.go files due to proto-gen-go update ( #2070 )
2018-05-11 18:57:54 -07:00
mmukhi
0bc7c3280e
Revert "Less mem ( #1987 )" ( #2049 )
...
This reverts commit 7a8c989507 .
2018-05-03 11:37:59 -07:00
mmukhi
3592bccfd9
interop: Fix unimplemented method test ( #2040 )
...
* Don't send nil requests.
* Fix import name and get rid of condition.
* Let registered encoder deal with nil requests.
* Break encode into encode and compress.
2018-05-02 16:08:12 -07:00
Chyroc
f8dbc38bdc
Fix "deprecated" function godoc comments to match standard formatting ( #2027 )
2018-05-02 08:52:49 -07:00
Menghan Li
e538e04cad
proto: update generated code ( #2039 )
2018-05-01 12:53:20 -07:00
Cesar Ghali
75d37eff66
credentials/alts: Add ServiceOption for server-side ALTS creation ( #2009 )
...
* Move handshaker_service_address flag to binaries
2018-04-23 11:11:20 -07:00
Karsten Weiss
5d8897144f
Remove unnecessary type conversions (unconvert) ( #1995 )
...
This fixes:
grpc/interop/test_utils.go:156:17: unnecessary conversion
interop/test_utils.go:201:17: unnecessary conversion
resolver/dns/dns_resolver.go:190:31: unnecessary conversion
transport/flowcontrol.go:36:47: unnecessary conversion
transport/flowcontrol.go:41:47: unnecessary conversion
transport/flowcontrol.go:42:47: unnecessary conversion
transport/flowcontrol.go:43:47: unnecessary conversion
transport/http2_client.go:788:16: unnecessary conversion
transport/http2_client.go:798:36: unnecessary conversion
transport/http2_client.go:809:28: unnecessary conversion
transport/http2_client.go:834:31: unnecessary conversion
transport/http2_client.go:839:30: unnecessary conversion
transport/http2_client.go:864:23: unnecessary conversion
transport/http2_server.go:513:16: unnecessary conversion
transport/http2_server.go:524:36: unnecessary conversion
transport/http2_server.go:534:28: unnecessary conversion
transport/http2_server.go:557:31: unnecessary conversion
transport/http2_server.go:562:30: unnecessary conversion
transport/http_util.go:350:31: unnecessary conversion
2018-04-16 10:18:17 -07:00
Cesar Ghali
211a7b7ec0
credentials/alts: Update ALTS "New" APIs ( #1921 )
2018-03-19 09:07:54 -07:00
Cesar Ghali
3ae2a613bc
interop: Add use_alts flag to client and server binaries ( #1896 )
2018-03-07 10:21:48 -08:00
Cesar Ghali
5190b068e2
ALTS: Simplify "New" APIs ( #1895 )
...
ALTS NewClientALTS and NewServerALTS APIs are in the grpc/credentials/alts package. Having the term ALTS in the API names is redundant. This PR removes it.
2018-03-07 09:14:47 -08:00
Cesar Ghali
a1de3b2bd6
alts: Change ALTS proto package name ( #1886 )
2018-02-26 18:05:53 -08:00
Cesar Ghali
2e7e633fea
Add ALTS code ( #1865 )
2018-02-26 17:02:59 -08:00
Menghan Li
6c48c7f5c8
interop test: Expect io.EOF from stream.Send() ( #1858 )
2018-02-12 14:41:34 -08:00
dfawley
f4b523765c
status: add Code convenience function ( #1754 )
2017-12-18 15:00:50 -08:00
Daniel Nephin
4e393e0b21
grpc: fix deprecation comments to conform to standard ( #1691 )
2017-12-18 09:23:42 -08:00
Gyu-Ho Lee
865013bc17
*: replace deprecated grpc.Errorf calls with status.Errorf ( #1651 )
2017-11-06 10:24:20 -08:00
田欧
faebfcb7bf
Remove single-entry var blocks ( #1589 )
2017-10-18 09:59:23 -07:00
Menghan Li
5131c1f096
Use proto3 in interop tests and end2end tests ( #1574 )
2017-10-12 14:05:19 -07:00