Remove most of the time.Sleep from the e2e tests
This commit is contained in:
parent
c3ff76ae50
commit
62a80a39ad
30 changed files with 628 additions and 465 deletions
|
|
@ -76,9 +76,9 @@ var _ = framework.IngressNginxDescribe("Default backend", func() {
|
|||
|
||||
switch test.Scheme {
|
||||
case framework.HTTP:
|
||||
cm = request.CustomMethod(test.Method, f.NginxHTTPURL)
|
||||
cm = request.CustomMethod(test.Method, f.IngressController.HTTPURL)
|
||||
case framework.HTTPS:
|
||||
cm = request.CustomMethod(test.Method, f.NginxHTTPSURL)
|
||||
cm = request.CustomMethod(test.Method, f.IngressController.HTTPSURL)
|
||||
// the default backend uses a self generated certificate
|
||||
cm.Transport = &http.Transport{
|
||||
TLSClientConfig: &tls.Config{
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ var _ = framework.IngressNginxDescribe("Default backend - SSL", func() {
|
|||
It("should return a self generated SSL certificate", func() {
|
||||
By("checking SSL Certificate using the NGINX IP address")
|
||||
resp, _, errs := gorequest.New().
|
||||
Post(f.NginxHTTPSURL).
|
||||
Post(f.IngressController.HTTPSURL).
|
||||
TLSClientConfig(&tls.Config{
|
||||
// the default backend uses a self generated certificate
|
||||
InsecureSkipVerify: true,
|
||||
|
|
@ -53,7 +53,7 @@ var _ = framework.IngressNginxDescribe("Default backend - SSL", func() {
|
|||
|
||||
By("checking SSL Certificate using the NGINX catch all server")
|
||||
resp, _, errs = gorequest.New().
|
||||
Post(f.NginxHTTPSURL).
|
||||
Post(f.IngressController.HTTPSURL).
|
||||
TLSClientConfig(&tls.Config{
|
||||
// the default backend uses a self generated certificate
|
||||
InsecureSkipVerify: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue