Skip to content

Commit 399b52f

Browse files
committed
fix test names and sts exchange toekn request with header
1 parent b621b33 commit 399b52f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

google/internal/externalaccount/basecredentials.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ func (ts tokenSource) Token() (*oauth2.Token, error) {
255255
"userProject": conf.WorkforcePoolUserProject,
256256
}
257257
}
258-
stsResp, err := sts_exchange.ExchangeToken(ts.ctx, conf.TokenURL, &stsRequest, clientAuth, nil, options)
258+
stsResp, err := sts_exchange.ExchangeToken(ts.ctx, conf.TokenURL, &stsRequest, clientAuth, header, options)
259259
if err != nil {
260260
return nil, err
261261
}

google/internal/externalaccountauthorizeduser/externalaccountauthorizeduser_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func TestExernalAccountAuthorizedUser_JustToken(t *testing.T) {
105105
}
106106
}
107107

108-
func TestExernalAccountAuthorizedUser_TokenRefreshWithRefreshTokenInResponds(t *testing.T) {
108+
func TestExernalAccountAuthorizedUser_TokenRefreshWithRefreshTokenInRespondse(t *testing.T) {
109109
server := &testRefreshTokenServer{
110110
URL: "/",
111111
Authorization: "Basic Q0xJRU5UX0lEOkNMSUVOVF9TRUNSRVQ=",
@@ -147,7 +147,7 @@ func TestExernalAccountAuthorizedUser_TokenRefreshWithRefreshTokenInResponds(t *
147147
}
148148
}
149149

150-
func TestExernalAccountAuthorizedUser_minimumFieldsRequiredForRefresh(t *testing.T) {
150+
func TestExernalAccountAuthorizedUser_MinimumFieldsRequiredForRefresh(t *testing.T) {
151151
server := &testRefreshTokenServer{
152152
URL: "/",
153153
Authorization: "Basic Q0xJRU5UX0lEOkNMSUVOVF9TRUNSRVQ=",

0 commit comments

Comments
 (0)