use MustPassRepeatedly
This commit is contained in:
parent
0f48040783
commit
bde121a429
1 changed files with 36 additions and 44 deletions
|
@ -220,8 +220,7 @@ var _ = framework.IngressNginxDescribe("[Flag] enable-ssl-passthrough", func() {
|
|||
}
|
||||
tries := 3
|
||||
|
||||
ginkgo.It("should handle known traffic without Host header", func() {
|
||||
for i := 0; i < tries; i++ {
|
||||
ginkgo.It("should handle known traffic without Host header", ginkgo.MustPassRepeatedly(tries), func() {
|
||||
f.HTTPTestClientWithTLSConfig(tlsConfig).
|
||||
GET("/").
|
||||
WithURL(url).
|
||||
|
@ -229,11 +228,9 @@ var _ = framework.IngressNginxDescribe("[Flag] enable-ssl-passthrough", func() {
|
|||
WithDialContextMiddleware(throttleMiddleware).
|
||||
Expect().
|
||||
Status(http.StatusOK)
|
||||
}
|
||||
})
|
||||
|
||||
ginkgo.It("should handle insecure traffic without Host header", func() {
|
||||
for i := 0; i < tries; i++ {
|
||||
ginkgo.It("should handle insecure traffic without Host header", ginkgo.MustPassRepeatedly(tries), func() {
|
||||
//nolint:gosec // Ignore the gosec error in testing
|
||||
f.HTTPTestClientWithTLSConfig(&tls.Config{ServerName: host, InsecureSkipVerify: true}).
|
||||
GET("/").
|
||||
|
@ -242,11 +239,9 @@ var _ = framework.IngressNginxDescribe("[Flag] enable-ssl-passthrough", func() {
|
|||
WithDialContextMiddleware(throttleMiddleware).
|
||||
Expect().
|
||||
Status(http.StatusOK)
|
||||
}
|
||||
})
|
||||
|
||||
ginkgo.It("should handle known traffic with Host header", func() {
|
||||
for i := 0; i < tries; i++ {
|
||||
ginkgo.It("should handle known traffic with Host header", ginkgo.MustPassRepeatedly(tries), func() {
|
||||
f.HTTPTestClientWithTLSConfig(tlsConfig).
|
||||
GET("/").
|
||||
WithURL(url).
|
||||
|
@ -255,11 +250,9 @@ var _ = framework.IngressNginxDescribe("[Flag] enable-ssl-passthrough", func() {
|
|||
WithDialContextMiddleware(throttleMiddleware).
|
||||
Expect().
|
||||
Status(http.StatusOK)
|
||||
}
|
||||
})
|
||||
|
||||
ginkgo.It("should handle insecure traffic with Host header", func() {
|
||||
for i := 0; i < tries; i++ {
|
||||
ginkgo.It("should handle insecure traffic with Host header", ginkgo.MustPassRepeatedly(tries), func() {
|
||||
//nolint:gosec // Ignore the gosec error in testing
|
||||
f.HTTPTestClientWithTLSConfig(&tls.Config{ServerName: host, InsecureSkipVerify: true}).
|
||||
GET("/").
|
||||
|
@ -269,7 +262,6 @@ var _ = framework.IngressNginxDescribe("[Flag] enable-ssl-passthrough", func() {
|
|||
WithDialContextMiddleware(throttleMiddleware).
|
||||
Expect().
|
||||
Status(http.StatusOK)
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue