forked from dexidp/dex
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Upgrade golangci-lint to v1.50.1 from v1.46.0 (dexidp#2790)
- Loading branch information
1 parent
56c544c
commit 60e92fc
Showing
17 changed files
with
87 additions
and
86 deletions.
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
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 |
---|---|---|
|
@@ -31,7 +31,7 @@ var ( | |
callCounter = make(map[string]int) | ||
) | ||
|
||
func testSetup(t *testing.T) *httptest.Server { | ||
func testSetup() *httptest.Server { | ||
mux := http.NewServeMux() | ||
|
||
mux.HandleFunc("/admin/directory/v1/groups/", func(w http.ResponseWriter, r *http.Request) { | ||
|
@@ -46,7 +46,7 @@ func testSetup(t *testing.T) *httptest.Server { | |
return httptest.NewServer(mux) | ||
} | ||
|
||
func newConnector(config *Config, serverURL string) (*googleConnector, error) { | ||
func newConnector(config *Config) (*googleConnector, error) { | ||
log := logrus.New() | ||
conn, err := config.Open("id", log) | ||
if err != nil { | ||
|
@@ -78,7 +78,7 @@ func tempServiceAccountKey() (string, error) { | |
} | ||
|
||
func TestOpen(t *testing.T) { | ||
ts := testSetup(t) | ||
ts := testSetup() | ||
defer ts.Close() | ||
|
||
type testCase struct { | ||
|
@@ -155,7 +155,7 @@ func TestOpen(t *testing.T) { | |
assert := assert.New(t) | ||
|
||
os.Setenv("GOOGLE_APPLICATION_CREDENTIALS", reference.adc) | ||
conn, err := newConnector(reference.config, ts.URL) | ||
conn, err := newConnector(reference.config) | ||
|
||
if reference.expectedErr == "" { | ||
assert.Nil(err) | ||
|
@@ -168,7 +168,7 @@ func TestOpen(t *testing.T) { | |
} | ||
|
||
func TestGetGroups(t *testing.T) { | ||
ts := testSetup(t) | ||
ts := testSetup() | ||
defer ts.Close() | ||
|
||
serviceAccountFilePath, err := tempServiceAccountKey() | ||
|
@@ -181,7 +181,7 @@ func TestGetGroups(t *testing.T) { | |
RedirectURI: ts.URL + "/callback", | ||
Scopes: []string{"openid", "groups"}, | ||
AdminEmail: "[email protected]", | ||
}, ts.URL) | ||
}) | ||
assert.Nil(t, err) | ||
|
||
conn.adminSrv, err = admin.NewService(context.Background(), option.WithoutAuthentication(), option.WithEndpoint(ts.URL)) | ||
|
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
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
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
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