diff --git a/test/e2e/tests/envoy_shutdown.go b/test/e2e/tests/envoy_shutdown.go index 24e6b334637..7a249e01950 100644 --- a/test/e2e/tests/envoy_shutdown.go +++ b/test/e2e/tests/envoy_shutdown.go @@ -141,7 +141,8 @@ func restartProxyAndWaitForRollout(t *testing.T, timeoutConfig config.TimeoutCon return err } - return wait.PollUntilContextTimeout(ctx, 1*time.Second, timeoutConfig.CreateTimeout, true, func(ctx context.Context) (bool, error) { + // increase timeout for IPv6 first cluster + return wait.PollUntilContextTimeout(ctx, 2*time.Second, 2*timeoutConfig.CreateTimeout, true, func(ctx context.Context) (bool, error) { // wait for replicaset with the same annotation to reach ready status podList := &corev1.PodList{} listOpts := []client.ListOption{ diff --git a/test/e2e/upgrade/eg_upgrade_test.go b/test/e2e/upgrade/eg_upgrade_test.go index b93a3bab0df..6c3b9521e5f 100644 --- a/test/e2e/upgrade/eg_upgrade_test.go +++ b/test/e2e/upgrade/eg_upgrade_test.go @@ -36,6 +36,14 @@ func TestEGUpgrade(t *testing.T) { *flags.GatewayClassName, *flags.CleanupBaseResources, *flags.ShowDebug) } + var skipTests []string + // previous did not support ipv6, so skip upgrade tests for ipv6 + if tests.IPFamily == "ipv6" { + skipTests = append(skipTests, + tests.EGUpgradeTest.ShortName, + ) + } + cSuite, err := suite.NewConformanceTestSuite(suite.ConformanceOptions{ Client: c, RestConfig: cfg, @@ -46,7 +54,7 @@ func TestEGUpgrade(t *testing.T) { RunTest: *flags.RunTest, BaseManifests: "upgrade/manifests.yaml", SupportedFeatures: sets.New[features.FeatureName](features.SupportGateway), - SkipTests: []string{}, + SkipTests: skipTests, }) if err != nil { t.Fatalf("Failed to create test suite: %v", err) diff --git a/test/utils/prometheus/prometheus.go b/test/utils/prometheus/prometheus.go index c59a8f12ebb..bc62da2cc07 100644 --- a/test/utils/prometheus/prometheus.go +++ b/test/utils/prometheus/prometheus.go @@ -8,6 +8,7 @@ package prometheus import ( "context" "fmt" + "net" "time" prom "github.com/prometheus/client_golang/api" @@ -36,7 +37,7 @@ func NewClient(kubeClient client.Client, nn types.NamespacedName) (*Client, erro var addr string for _, ing := range svc.Status.LoadBalancer.Ingress { if len(ing.IP) > 0 { - addr = fmt.Sprintf("http://%s", ing.IP) + addr = fmt.Sprintf("http://%s", net.JoinHostPort(ing.IP, "80")) } } diff --git a/tools/make/kube.mk b/tools/make/kube.mk index d53c1931360..122e089b79e 100644 --- a/tools/make/kube.mk +++ b/tools/make/kube.mk @@ -22,7 +22,8 @@ BENCHMARK_REPORT_DIR ?= benchmark_report E2E_RUN_TEST ?= E2E_CLEANUP ?= true -E2E_TEST_ARGS ?= -v -tags e2e -timeout 20m +E2E_TIMEOUT ?= 20m +E2E_TEST_ARGS ?= -v -tags e2e -timeout $(E2E_TIMEOUT) # Set Kubernetes Resources Directory Path ifeq ($(origin KUBE_PROVIDER_DIR),undefined)