Skip to content

Commit

Permalink
better
Browse files Browse the repository at this point in the history
Signed-off-by: Katrina Rogan <[email protected]>
  • Loading branch information
katrogan committed Jan 23, 2024
1 parent 384a665 commit f0bff26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flyteadmin/auth/handler_utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ func TestGetRedirectURLAllowed(t *testing.T) {
})
cfg := &config.Config{
AuthorizedURIs: []flytestdconfig.URL{
{URL: *config.MustParseURL("example.com")},
{URL: *config.MustParseURL("https://example.com")},
{URL: *config.MustParseURL("http://localhost:3008")},
},
}
t.Run("authorized url", func(t *testing.T) {
assert.True(t, GetRedirectURLAllowed(ctx, "example.com", cfg))
assert.True(t, GetRedirectURLAllowed(ctx, "https://example.com", cfg))
})
t.Run("authorized localhost url", func(t *testing.T) {
assert.True(t, GetRedirectURLAllowed(ctx, "http://localhost:3008", cfg))
Expand Down

0 comments on commit f0bff26

Please sign in to comment.