-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- sessionStreamPollPeriod was never used - DomainName was written, but never read - The wsIODeadline field was never consulted as Teleport referenced a constant in all circumstances
- Loading branch information
Showing
4 changed files
with
10 additions
and
34 deletions.
There are no files selected for viewing
Submodule e
updated
from 41bca8 to bef544
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -482,7 +482,6 @@ func newWebSuiteWithConfig(t *testing.T, cfg webSuiteConfig) *WebSuite { | |
ClusterFeatures: features, | ||
Proxy: revTunServer, | ||
AuthServers: utils.FromAddr(s.server.TLS.Addr()), | ||
DomainName: s.server.ClusterName(), | ||
ProxyClient: s.proxyClient, | ||
CipherSuites: utils.DefaultCipherSuites(), | ||
AccessPoint: s.proxyClient, | ||
|
@@ -515,7 +514,7 @@ func newWebSuiteWithConfig(t *testing.T, cfg webSuiteConfig) *WebSuite { | |
handlerConfig.HealthCheckAppServer = func(context.Context, string, string) error { return nil } | ||
} | ||
|
||
handler, err := NewHandler(handlerConfig, SetSessionStreamPollPeriod(200*time.Millisecond), SetClock(s.clock)) | ||
handler, err := NewHandler(handlerConfig, SetClock(s.clock)) | ||
require.NoError(t, err) | ||
|
||
s.webServer = httptest.NewUnstartedServer(handler) | ||
|
@@ -8364,7 +8363,6 @@ func createProxy(ctx context.Context, t *testing.T, proxyID string, node *regula | |
handler, err := NewHandler(Config{ | ||
Proxy: revTunServer, | ||
AuthServers: utils.FromAddr(authServer.Addr()), | ||
DomainName: authServer.ClusterName(), | ||
ProxyClient: client, | ||
ProxyPublicAddrs: utils.MustParseAddrList("proxy-1.example.com", "proxy-2.example.com"), | ||
CipherSuites: utils.DefaultCipherSuites(), | ||
|
@@ -8390,7 +8388,7 @@ func createProxy(ctx context.Context, t *testing.T, proxyID string, node *regula | |
return &proxyClientCert, nil | ||
}, | ||
IntegrationAppHandler: &mockIntegrationAppHandler{}, | ||
}, SetSessionStreamPollPeriod(200*time.Millisecond), SetClock(clock)) | ||
}, SetClock(clock)) | ||
require.NoError(t, err) | ||
|
||
webServer := httptest.NewTLSServer(handler) | ||
|
@@ -9643,7 +9641,6 @@ func TestWebSocketAuthenticateRequest(t *testing.T) { | |
ctx := context.Background() | ||
env := newWebPack(t, 1) | ||
proxy := env.proxies[0] | ||
proxy.handler.handler.wsIODeadline = time.Second | ||
pack := proxy.authPack(t, "[email protected]", nil) | ||
for _, tc := range []struct { | ||
name string | ||
|