Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
one more test
Browse files Browse the repository at this point in the history
Signed-off-by: Haytham Abuelfutuh <[email protected]>
  • Loading branch information
EngHabu committed Feb 27, 2021
1 parent 150bc21 commit bb04640
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/auth/handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ func TestGetMetadataEndpointRedirectHandler(t *testing.T) {
ctx := context.Background()
baseURL, err := url.Parse("http://www.google.com")
assert.NoError(t, err)
metadataPath, err := url.Parse(OIdCMetadataEndpoint)
metadataPath, err := url.Parse(OAuth2MetadataEndpoint)
assert.NoError(t, err)
mockAuthCtx := mocks.AuthenticationContext{}
mockAuthCtx.On("GetBaseURL").Return(baseURL)
mockAuthCtx.On("GetMetadataURL").Return(metadataPath)
mockAuthCtx.OnGetBaseURL().Return(baseURL)
mockAuthCtx.OnGetOAuth2MetadataURL().Return(metadataPath)
handler := GetOAuth2MetadataEndpointRedirectHandler(ctx, &mockAuthCtx)
req, err := http.NewRequest("GET", "/xyz", nil)
assert.NoError(t, err)
Expand Down

0 comments on commit bb04640

Please sign in to comment.