Merge pull request #130126 from fuweid/fix-128314

proxy: should add PingPeriod for websocket translator
This commit is contained in:
Kubernetes Prow Robot
2025-02-18 08:00:26 -08:00
committed by GitHub
2 changed files with 12 additions and 1 deletions

View File

@@ -501,6 +501,16 @@ var _ = SIGDescribe("Kubectl client", func() {
}
})
// https://issues.k8s.io/128314
f.It(f.WithSlow(), "should support exec idle connections", func(ctx context.Context) {
ginkgo.By("executing a command in the container")
execOutput := e2ekubectl.RunKubectlOrDie(ns, "exec", podRunningTimeoutArg, simplePodName, "--", "/bin/sh", "-c", "sleep 320 && echo running in container")
if expected, got := "running in container", strings.TrimSpace(execOutput); expected != got {
framework.Failf("Unexpected kubectl exec output. Wanted %q, got %q", expected, got)
}
})
ginkgo.It("should support exec through kubectl proxy", func(ctx context.Context) {
_ = getTestContextHost()