Commit Graph

74 Commits

Author SHA1 Message Date
Easwar Swaminathan 2983360ff4
Fix interop tests which rely on the old certs/keys. (#3804) 2020-08-10 15:53:34 -07:00
Menghan Li 8beeedb8b1
internal: clean up all usages of grpclog, and replace with component (#3719) 2020-08-06 13:19:17 -07:00
Easwar Swaminathan fd393c8989
testdata: Update testdata certs. (#3786)
* This will be used in certprovider tests where we would want more than one server and client certs.
* Also, updated existing usages of these certs to point to the new  files.
* Also copy over the required certs/key files. This avoids the example gomodule from depending on gRPC testdata package which should be able to change independently.
* Fix interop test's SAN.
2020-08-05 09:55:07 -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
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
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
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
Chyroc f8dbc38bdc Fix "deprecated" function godoc comments to match standard formatting (#2027) 2018-05-02 08:52:49 -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
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
Menghan Li 4b49faaf06 Make interop client dial blocking (#1559)
This should not be necessary once the new balancer API is done.

Currently interop clients don't use balancer. With a non-blocking dial, the first failfast RPC will fail because there's no connection available.
This is a known bug, and will be fixed by the new balancer APIs.

This is a temp fix to make interop tests pass.
2017-10-03 16:57:48 -07:00
ZhouyihaiDing 66c9ed803b Add flags for tls file path (#1419) 2017-08-03 15:23:02 -07:00
田欧 ca9e0c3458 Add testdata package and unify testdata to only one dir (#1297) 2017-07-25 10:24:45 -07:00
Jan Tattermusch ddbf6c46a6 autofix license notice 2017-06-08 14:42:19 +02:00
Paul Marks 97c325c956 Replace "127.0.0.1" with "localhost" to support IPv6-only environments. 2017-02-07 16:08:24 -08:00
Noah Eisen 2769b6cafd Fix comments from github 2016-11-10 16:50:37 -08:00
Noah Eisen 687c958422 Reimplement unimplemented_method and address gofmt issues 2016-11-02 14:53:28 -07:00
Noah Eisen 5b6bca7d0c Add unimplemented test cases to Go interop client
Add UnimplementedService/UnimplementedCall and
TestService/UnimplementedCall to test.proto then regenerated the proto
file.
2016-11-02 09:49:56 -07:00
Noah Eisen dc220c92c0 Add support for custom metadata to Go interop code
Write custom_metadata test case in Go interop client and add support for
metadata echoing in Go interop server.
2016-11-02 09:20:52 -07:00
Mark D. Roth 6fd077118b Merge remote-tracking branch 'upstream/master' into status_interop_test 2016-09-28 13:48:46 -07:00
Menghan Li 18f8a8be26 set interop default server_host_override to empty string 2016-09-09 10:24:20 -07:00
Mark D. Roth d7ac54924b Add status_code_and_message interop test. (Does not yet work, because
the server does not yet support the response_status field.)
2016-06-30 14:57:30 -07:00
Menghan Li 59486d9c17 Rename TransportAuthenticator to TransportCredentials 2016-06-08 11:19:25 -07:00
Menghan Li 62a892fc16 Move interop log from utils to client main 2016-04-04 16:00:19 -07:00
iamqizhao 453b255dda gofmt 2015-12-18 16:50:38 -08:00
iamqizhao 7239e4afea Refactor interop tests 2015-12-18 16:26:06 -08:00
iamqizhao 7afe4e5cec rename some interop client flags 2015-10-20 16:49:37 -07:00
iamqizhao 6be470f058 Credentials API and jwtAccess implementation tunning 2015-08-28 16:51:45 -07:00
iamqizhao 100ca6a0da fix benchmark, interop and examples 2015-08-27 17:32:57 -07:00
iamqizhao d12ff72146 allow access of some info of client certificate 2015-08-21 15:49:53 -07:00
iamqizhao 1fedb82059 correct a test case name 2015-08-17 13:23:09 -07:00
yangzhouhan dd6b930e09 minor change 2015-08-14 17:18:12 -07:00
yangzhouhan 7f81611b64 remove extra space 2015-08-14 16:24:06 -07:00
yangzhouhan 25c36604b9 add oauth2 and perrpc interop tests 2015-08-14 16:22:19 -07:00
Qi Zhao 362136bea2 Merge pull request #288 from yangzhouhan/master
add interop test jwt_token_creds
2015-08-14 11:39:42 -07:00
yangzhouhan 32444cd24d minor changes 2015-08-14 11:35:15 -07:00
yangzhouhan 41ee26a353 add JWTAccessTokenFromKey 2015-08-14 11:20:13 -07:00
iamqizhao 3d7251c81c minor fix 2015-08-13 10:53:48 -07:00
iamqizhao db71b8f965 fix Timeout interop test 2015-08-13 10:50:38 -07:00
yangzhouhan 9f5d4180bd fix the space 2015-08-12 18:29:17 -07:00
yangzhouhan 3a245b8cab fix the space 2015-08-12 18:28:16 -07:00
yangzhouhan 5ef857242f add jwt_token_creds interop test 2015-08-12 18:26:30 -07:00
Qi Zhao fb14f48984 Merge pull request #281 from yangzhouhan/interop
add 2 interop tests
2015-08-12 13:16:24 -07:00