fix: Move testGatewayConnectionFunc to proxy_helpers.go (#51022)

This commit is contained in:
Alan Parra
2025-01-14 14:33:29 +00:00
committed by GitHub
parent 3b1518cd83
commit 73abfe87cc
2 changed files with 2 additions and 2 deletions
+2
View File
@@ -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()
-2
View File
@@ -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 {