mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-02 06:08:23 +08:00
fix: Move testGatewayConnectionFunc to proxy_helpers.go (#51022)
This commit is contained in:
@@ -724,6 +724,8 @@ func mustConnectWebAppGateway(ctx context.Context, t *testing.T, _ *daemon.Servi
|
||||
require.Equal(t, http.StatusOK, resp.StatusCode)
|
||||
}
|
||||
|
||||
type testGatewayConnectionFunc func(context.Context, *testing.T, *daemon.Service, gateway.Gateway)
|
||||
|
||||
func makeMustConnectMultiPortTCPAppGateway(wantMessage string, otherTargetPort int, otherWantMessage string) testGatewayConnectionFunc {
|
||||
return func(ctx context.Context, t *testing.T, d *daemon.Service, gw gateway.Gateway) {
|
||||
t.Helper()
|
||||
|
||||
@@ -186,8 +186,6 @@ func testDBGatewayCertRenewal(ctx context.Context, t *testing.T, params dbGatewa
|
||||
)
|
||||
}
|
||||
|
||||
type testGatewayConnectionFunc func(context.Context, *testing.T, *daemon.Service, gateway.Gateway)
|
||||
|
||||
type generateAndSetupUserCredsFunc func(t *testing.T, tc *libclient.TeleportClient, ttl time.Duration)
|
||||
|
||||
type gatewayCertRenewalParams struct {
|
||||
|
||||
Reference in New Issue
Block a user