68 Commits

Author SHA1 Message Date
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
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
8fbeaf87a6 interop: implement special_status_message interop test (#2241)
fixes #2240
2018-07-30 13:33:50 -07:00
4f4261e767 interop: loosen restrictions on creds per test in interop client (#2231) 2018-07-19 10:53:08 -07:00
6a43dcc2ac Allow interop client to use call creds on any secure channel (#2185) 2018-06-28 10:41:13 -07:00
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
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
f8dbc38bdc Fix "deprecated" function godoc comments to match standard formatting (#2027) 2018-05-02 08:52:49 -07:00
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
211a7b7ec0 credentials/alts: Update ALTS "New" APIs (#1921) 2018-03-19 09:07:54 -07:00
3ae2a613bc interop: Add use_alts flag to client and server binaries (#1896) 2018-03-07 10:21:48 -08:00
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
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
ddbf6c46a6 autofix license notice 2017-06-08 14:42:19 +02:00
97c325c956 Replace "127.0.0.1" with "localhost" to support IPv6-only environments. 2017-02-07 16:08:24 -08:00
2769b6cafd Fix comments from github 2016-11-10 16:50:37 -08:00
687c958422 Reimplement unimplemented_method and address gofmt issues 2016-11-02 14:53:28 -07:00
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
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
6fd077118b Merge remote-tracking branch 'upstream/master' into status_interop_test 2016-09-28 13:48:46 -07:00
18f8a8be26 set interop default server_host_override to empty string 2016-09-09 10:24:20 -07:00
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
59486d9c17 Rename TransportAuthenticator to TransportCredentials 2016-06-08 11:19:25 -07:00
62a892fc16 Move interop log from utils to client main 2016-04-04 16:00:19 -07:00
453b255dda gofmt 2015-12-18 16:50:38 -08:00
7239e4afea Refactor interop tests 2015-12-18 16:26:06 -08:00
7afe4e5cec rename some interop client flags 2015-10-20 16:49:37 -07:00
6be470f058 Credentials API and jwtAccess implementation tunning 2015-08-28 16:51:45 -07:00
100ca6a0da fix benchmark, interop and examples 2015-08-27 17:32:57 -07:00
d12ff72146 allow access of some info of client certificate 2015-08-21 15:49:53 -07:00
1fedb82059 correct a test case name 2015-08-17 13:23:09 -07:00
dd6b930e09 minor change 2015-08-14 17:18:12 -07:00
7f81611b64 remove extra space 2015-08-14 16:24:06 -07:00
25c36604b9 add oauth2 and perrpc interop tests 2015-08-14 16:22:19 -07:00
362136bea2 Merge pull request #288 from yangzhouhan/master
add interop test jwt_token_creds
2015-08-14 11:39:42 -07:00
32444cd24d minor changes 2015-08-14 11:35:15 -07:00
41ee26a353 add JWTAccessTokenFromKey 2015-08-14 11:20:13 -07:00
3d7251c81c minor fix 2015-08-13 10:53:48 -07:00
db71b8f965 fix Timeout interop test 2015-08-13 10:50:38 -07:00
9f5d4180bd fix the space 2015-08-12 18:29:17 -07:00
3a245b8cab fix the space 2015-08-12 18:28:16 -07:00
5ef857242f add jwt_token_creds interop test 2015-08-12 18:26:30 -07:00
fb14f48984 Merge pull request #281 from yangzhouhan/interop
add 2 interop tests
2015-08-12 13:16:24 -07:00
6eb790420c fix merge conflict 2015-08-12 12:49:51 -07:00
dd17fced98 modify the error info 2015-08-12 12:40:07 -07:00
d1b30b7195 modify the error information 2015-08-12 12:34:38 -07:00
bf963e1bb3 change end2end test 2015-08-10 16:59:16 -07:00
54f53f005e remove unused code 2015-08-10 16:10:19 -07:00
f0e1a2ac75 add 2 interop tests
add 2 interop tests

fix the space

delete swp
2015-08-07 18:34:01 -07:00