Skip to content

Commit

Permalink
Merge pull request #29326 from alebedev87/http2-router-reenable-aws
Browse files Browse the repository at this point in the history
OCPBUGS-26601: Re-enable AWS for router HTTP/2 test
  • Loading branch information
openshift-merge-bot[bot] authored Feb 20, 2025
2 parents a08c0e0 + d72c325 commit 2c391f3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
14 changes: 11 additions & 3 deletions test/extended/router/h2spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package router
import (
"context"
"fmt"
"net"
"os"
"sort"
"strconv"
Expand Down Expand Up @@ -470,7 +471,7 @@ BFNBRELPe53ZdLKWpf2Sr96vRPRNw
return
}

testSuites, err := runConformanceTests(oc, host, "h2spec", 5*time.Minute)
testSuites, err := runConformanceTests(oc, host, "h2spec", 10*time.Minute)
o.Expect(err).NotTo(o.HaveOccurred())
o.Expect(testSuites).ShouldNot(o.BeEmpty())

Expand Down Expand Up @@ -546,7 +547,14 @@ func failingTests(testSuites []*h2spec.JUnitTestSuite) []h2specFailingTest {
func runConformanceTests(oc *exutil.CLI, host, podName string, timeout time.Duration) ([]*h2spec.JUnitTestSuite, error) {
var testSuites []*h2spec.JUnitTestSuite

if err := wait.Poll(time.Second, timeout, func() (bool, error) {
if err := wait.Poll(2*time.Second, timeout, func() (bool, error) {
// Error message will read as:
// <date>: INFO: lookup <host>: no such host, retrying...
if _, err := net.LookupHost(host); err != nil {
e2e.Logf("%v, retrying...", err)
return false, nil
}

g.By("Running the h2spec CLI test")

// this is the output file in the pod
Expand Down Expand Up @@ -613,7 +621,7 @@ func runConformanceTestsAndLogAggregateFailures(oc *exutil.CLI, host, podName st
failuresByTestCaseID := map[string]int{}

for i := 1; i <= iterations; i++ {
testResults, err := runConformanceTests(oc, host, podName, 5*time.Minute)
testResults, err := runConformanceTests(oc, host, podName, 10*time.Minute)
if err != nil {
e2e.Logf(err.Error())
continue
Expand Down
5 changes: 1 addition & 4 deletions test/extended/router/http2.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,11 +592,8 @@ func resolveHost(oc *exutil.CLI, interval, timeout time.Duration, host string) (
// clients.
func platformHasHTTP2LoadBalancerService(platformType configv1.PlatformType) bool {
switch platformType {
case configv1.AzurePlatformType, configv1.GCPPlatformType:
case configv1.AWSPlatformType, configv1.AzurePlatformType, configv1.GCPPlatformType:
return true
case configv1.AWSPlatformType:
e2e.Logf("AWS support waiting on https://bugzilla.redhat.com/show_bug.cgi?id=1912413")
fallthrough
default:
return false
}
Expand Down

0 comments on commit 2c391f3

Please sign in to comment.