Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
ddl-rliu committed Apr 9, 2024
1 parent 59be1f3 commit 30016de
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions flyteadmin/auth/auth_context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import (
)

func TestOAuth2ClientConfig(t *testing.T) {
authCtx := Context{
oauth2Client: &oauth2.Config{},
}

type test struct {
name string
url string
Expand All @@ -30,9 +34,6 @@ func TestOAuth2ClientConfig(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
authCtx := Context{
oauth2Client: &oauth2.Config{},
}
cfg := authCtx.OAuth2ClientConfig(config.MustParseURL(tt.url))
assert.Equal(t, tt.expectedRedirectURL, cfg.RedirectURL)
})
Expand Down

0 comments on commit 30016de

Please sign in to comment.