Skip to content

Commit

Permalink
Fix TestIgnored
Browse files Browse the repository at this point in the history
  • Loading branch information
Tit Petric authored and titpetric committed Sep 12, 2024
1 parent fc670bc commit 0b48436
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gateway/api_definition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,9 @@ func TestConflictingPaths(t *testing.T) {
}

func TestIgnored(t *testing.T) {
ts := StartTest(nil)
ts := StartTest(func (c *config.Config) {
c.HttpServerOptions.EnablePrefixMatching = true
})
defer ts.Close()

t.Run("Extended Paths", func(t *testing.T) {
Expand Down Expand Up @@ -466,7 +468,7 @@ func TestIgnored(t *testing.T) {
// Should ignore auth check
{Path: "/ignored/literal", Code: http.StatusOK},
{Path: "/ignored/123/test", Code: http.StatusOK},
// All methods ignored

{Method: "POST", Path: "/ext/ignored/literal", Code: http.StatusUnauthorized},

{Path: "/", Code: http.StatusUnauthorized},
Expand Down

0 comments on commit 0b48436

Please sign in to comment.