Fix unparam lint error in oauth_test
Signed-off-by: Shuanglei Tao <tsl0922@gmail.com>
This commit is contained in:
parent
7b75e1e0cc
commit
691f8be785
@ -84,7 +84,7 @@ func TestHandleCallBackForGroupsInUserInfo(t *testing.T) {
|
|||||||
defer testServer.Close()
|
defer testServer.Close()
|
||||||
|
|
||||||
conn := newConnector(t, testServer.URL)
|
conn := newConnector(t, testServer.URL)
|
||||||
req := newRequestWithAuthCode(t, testServer.URL, "some-code")
|
req := newRequestWithAuthCode(t, testServer.URL, "TestHandleCallBackForGroupsInUserInfo")
|
||||||
|
|
||||||
identity, err := conn.HandleCallback(connector.Scopes{Groups: true}, req)
|
identity, err := conn.HandleCallback(connector.Scopes{Groups: true}, req)
|
||||||
assert.Equal(t, err, nil)
|
assert.Equal(t, err, nil)
|
||||||
@ -120,7 +120,7 @@ func TestHandleCallBackForGroupMapsInUserInfo(t *testing.T) {
|
|||||||
defer testServer.Close()
|
defer testServer.Close()
|
||||||
|
|
||||||
conn := newConnector(t, testServer.URL)
|
conn := newConnector(t, testServer.URL)
|
||||||
req := newRequestWithAuthCode(t, testServer.URL, "some-code")
|
req := newRequestWithAuthCode(t, testServer.URL, "TestHandleCallBackForGroupMapsInUserInfo")
|
||||||
|
|
||||||
identity, err := conn.HandleCallback(connector.Scopes{Groups: true}, req)
|
identity, err := conn.HandleCallback(connector.Scopes{Groups: true}, req)
|
||||||
assert.Equal(t, err, nil)
|
assert.Equal(t, err, nil)
|
||||||
@ -154,7 +154,7 @@ func TestHandleCallBackForGroupsInToken(t *testing.T) {
|
|||||||
defer testServer.Close()
|
defer testServer.Close()
|
||||||
|
|
||||||
conn := newConnector(t, testServer.URL)
|
conn := newConnector(t, testServer.URL)
|
||||||
req := newRequestWithAuthCode(t, testServer.URL, "some-code")
|
req := newRequestWithAuthCode(t, testServer.URL, "TestHandleCallBackForGroupsInToken")
|
||||||
|
|
||||||
identity, err := conn.HandleCallback(connector.Scopes{Groups: true}, req)
|
identity, err := conn.HandleCallback(connector.Scopes{Groups: true}, req)
|
||||||
assert.Equal(t, err, nil)
|
assert.Equal(t, err, nil)
|
||||||
@ -184,7 +184,7 @@ func TestHandleCallbackForNumericUserID(t *testing.T) {
|
|||||||
defer testServer.Close()
|
defer testServer.Close()
|
||||||
|
|
||||||
conn := newConnector(t, testServer.URL)
|
conn := newConnector(t, testServer.URL)
|
||||||
req := newRequestWithAuthCode(t, testServer.URL, "some-code")
|
req := newRequestWithAuthCode(t, testServer.URL, "TestHandleCallbackForNumericUserID")
|
||||||
|
|
||||||
identity, err := conn.HandleCallback(connector.Scopes{Groups: true}, req)
|
identity, err := conn.HandleCallback(connector.Scopes{Groups: true}, req)
|
||||||
assert.Equal(t, err, nil)
|
assert.Equal(t, err, nil)
|
||||||
|
Reference in New Issue
Block a user