diff --git a/test/e2e/ingress/pathtype_prefix.go b/test/e2e/ingress/pathtype_prefix.go index fa664ce27..ecac280f2 100644 --- a/test/e2e/ingress/pathtype_prefix.go +++ b/test/e2e/ingress/pathtype_prefix.go @@ -67,5 +67,29 @@ var _ = framework.IngressNginxDescribe("[Ingress] [PathType] prefix checks", fun WithHeader("Host", host). Expect(). Status(http.StatusOK) + + f.HTTPTestClient(). + GET("/aaa/.*"). + WithHeader("Host", host). + Expect(). + Status(http.StatusOK) + + f.HTTPTestClient(). + GET("/aaa/(.+)"). + WithHeader("Host", host). + Expect(). + Status(http.StatusOK) + + f.HTTPTestClient(). + GET("/aaa/?(.*)"). + WithHeader("Host", host). + Expect(). + Status(http.StatusNotFound) + + f.HTTPTestClient(). + GET("/aaa/?(.+)"). + WithHeader("Host", host). + Expect(). + Status(http.StatusNotFound) }) })