-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xds: use google default creds #3673
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4f9aee7
[xds_google_default_creds] xds: use google default creds
menghanl 9527863
[xds_google_default_creds] add scope? Is this right?
menghanl f3ffd29
[xds_google_default_creds] split google_default tests out, and disabl…
menghanl 7013884
Revert "[xds_google_default_creds] split google_default tests out, an…
menghanl 98d784f
[xds_google_default_creds] disable leakcheck for bootstrap package. O…
menghanl a2271f7
[xds_google_default_creds] try harder
menghanl 82a978b
[xds_google_default_creds] comment
menghanl ed07434
[xds_google_default_creds] more cleanup
menghanl 50c8762
[xds_google_default_creds] add TODO
menghanl e16fab6
[xds_google_default_creds] disable test for appengine
menghanl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// +build !appengine | ||
|
||
/* | ||
* | ||
* Copyright 2019 gRPC authors. | ||
|
@@ -22,13 +24,11 @@ import ( | |
"os" | ||
"testing" | ||
|
||
corepb "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" | ||
"github.com/golang/protobuf/proto" | ||
structpb "github.com/golang/protobuf/ptypes/struct" | ||
"google.golang.org/grpc" | ||
"google.golang.org/grpc/credentials/google" | ||
"google.golang.org/grpc/internal/grpctest" | ||
|
||
corepb "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" | ||
structpb "github.com/golang/protobuf/ptypes/struct" | ||
) | ||
|
||
var ( | ||
|
@@ -58,19 +58,14 @@ var ( | |
} | ||
) | ||
|
||
type s struct { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we please add a TODO here to re-add the leak check once the leak is fixed upstream. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
grpctest.Tester | ||
} | ||
|
||
func Test(t *testing.T) { | ||
grpctest.RunSubTests(t, s{}) | ||
} | ||
// TODO: enable leak check for this package when | ||
// https://github.com/googleapis/google-cloud-go/issues/2417 is fixed. | ||
|
||
// TestNewConfig exercises the functionality in NewConfig with different | ||
// bootstrap file contents. It overrides the fileReadFunc by returning | ||
// bootstrap file contents defined in this test, instead of reading from a | ||
// file. | ||
func (s) TestNewConfig(t *testing.T) { | ||
func TestNewConfig(t *testing.T) { | ||
bootstrapFileMap := map[string]string{ | ||
"empty": "", | ||
"badJSON": `["test": 123]`, | ||
|
@@ -283,7 +278,7 @@ func (s) TestNewConfig(t *testing.T) { | |
} | ||
} | ||
|
||
func (s) TestNewConfigEnvNotSet(t *testing.T) { | ||
func TestNewConfigEnvNotSet(t *testing.T) { | ||
os.Unsetenv(fileEnv) | ||
config, err := NewConfig() | ||
if err == nil { | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test is disabled for appengine, because of https://travis-ci.org/github/grpc/grpc-go/jobs/697000659#L525