mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-08 10:29:25 +00:00
portforward: tunnel spdy through websockets
Kubernetes-commit: 8b447d8c97e8823b4308eb91cf7d75693e867c61
This commit is contained in:
committed by
Kubernetes Publisher
parent
08128e0dfa
commit
271d034e86
@@ -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{})
|
||||
|
Reference in New Issue
Block a user