Skip to content

Commit

Permalink
gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
msfidelis committed Mar 28, 2024
1 parent e6386c0 commit 5001c1f
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions test/e2e/ingress/pathtype_prefix.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ var _ = framework.IngressNginxDescribe("[Ingress] [PathType] prefix checks", fun
})

ginkgo.It("should test prefix path using regex pattern for /id/{int} ignoring non-digits characters at end of string", func() {
host := "echo.com.br"
host := "echo.regex.br"

annotations := map[string]string{
"nginx.ingress.kubernetes.io/use-regex": `true`,
Expand Down Expand Up @@ -140,7 +140,7 @@ var _ = framework.IngressNginxDescribe("[Ingress] [PathType] prefix checks", fun
})

ginkgo.It("should test prefix path using fixed path size regex pattern /id/{int}{3}", func() {
host := "echo.com.br"
host := "echo.regex.size.br"

annotations := map[string]string{
"nginx.ingress.kubernetes.io/use-regex": `true`,
Expand All @@ -150,13 +150,7 @@ var _ = framework.IngressNginxDescribe("[Ingress] [PathType] prefix checks", fun
f.EnsureIngress(ing)

f.HTTPTestClient().
GET("/id/1").
WithHeader("Host", host).
Expect().
Status(http.StatusNotFound)

f.HTTPTestClient().
GET("/id/12").
GET("/id/99").
WithHeader("Host", host).
Expect().
Status(http.StatusNotFound)
Expand All @@ -168,7 +162,7 @@ var _ = framework.IngressNginxDescribe("[Ingress] [PathType] prefix checks", fun
Status(http.StatusOK)

f.HTTPTestClient().
GET("/id/1234").
GET("/id/9999").
WithHeader("Host", host).
Expect().
Status(http.StatusNotFound)
Expand All @@ -181,7 +175,7 @@ var _ = framework.IngressNginxDescribe("[Ingress] [PathType] prefix checks", fun
})

ginkgo.It("should correctly route multi-segment path patterns", func() {
host := "echo.com.br"
host := "echo.multi.segment.br"

annotations := map[string]string{
"nginx.ingress.kubernetes.io/use-regex": `true`,
Expand Down

0 comments on commit 5001c1f

Please sign in to comment.