portforward: tunnel spdy through websockets

Kubernetes-commit: 8b447d8c97e8823b4308eb91cf7d75693e867c61
This commit is contained in:
Sean Sullivan
2024-02-21 08:56:07 +00:00
committed by Kubernetes Publisher
parent 08128e0dfa
commit 271d034e86
7 changed files with 557 additions and 4 deletions

View File

@@ -430,7 +430,8 @@ func TestGetListener(t *testing.T) {
func TestGetPortsReturnsDynamicallyAssignedLocalPort(t *testing.T) {
dialer := &fakeDialer{
conn: newFakeConnection(),
conn: newFakeConnection(),
negotiatedProtocol: PortForwardProtocolV1Name,
}
stopChan := make(chan struct{})
@@ -570,7 +571,8 @@ func TestWaitForConnectionExitsOnStreamConnClosed(t *testing.T) {
func TestForwardPortsReturnsErrorWhenConnectionIsLost(t *testing.T) {
dialer := &fakeDialer{
conn: newFakeConnection(),
conn: newFakeConnection(),
negotiatedProtocol: PortForwardProtocolV1Name,
}
stopChan := make(chan struct{})
@@ -601,7 +603,8 @@ func TestForwardPortsReturnsErrorWhenConnectionIsLost(t *testing.T) {
func TestForwardPortsReturnsNilWhenStopChanIsClosed(t *testing.T) {
dialer := &fakeDialer{
conn: newFakeConnection(),
conn: newFakeConnection(),
negotiatedProtocol: PortForwardProtocolV1Name,
}
stopChan := make(chan struct{})