From 150bc213f10e5917da3852346bd5a399a0e356e2 Mon Sep 17 00:00:00 2001 From: Haytham Abuelfutuh Date: Fri, 26 Feb 2021 16:46:37 -0800 Subject: [PATCH] Fix tests Signed-off-by: Haytham Abuelfutuh --- pkg/auth/handlers_test.go | 2 +- pkg/rpc/config/flyte_client_test.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/auth/handlers_test.go b/pkg/auth/handlers_test.go index fd523dc5c..f52cdfbe0 100644 --- a/pkg/auth/handlers_test.go +++ b/pkg/auth/handlers_test.go @@ -104,7 +104,7 @@ func TestGetMetadataEndpointRedirectHandler(t *testing.T) { mockAuthCtx := mocks.AuthenticationContext{} mockAuthCtx.On("GetBaseURL").Return(baseURL) mockAuthCtx.On("GetMetadataURL").Return(metadataPath) - handler := GetMetadataEndpointRedirectHandler(ctx, &mockAuthCtx) + handler := GetOAuth2MetadataEndpointRedirectHandler(ctx, &mockAuthCtx) req, err := http.NewRequest("GET", "/xyz", nil) assert.NoError(t, err) w := httptest.NewRecorder() diff --git a/pkg/rpc/config/flyte_client_test.go b/pkg/rpc/config/flyte_client_test.go index 47b2bd333..2c6bbe529 100644 --- a/pkg/rpc/config/flyte_client_test.go +++ b/pkg/rpc/config/flyte_client_test.go @@ -44,5 +44,6 @@ func TestHandleFlyteCliConfigFunc(t *testing.T) { clientID: testClientID, redirectURI: testRedirectURI, authMetadataKey: testAuthMetadataKey, + scopes: "", }, responseBodyMap) }