From 73abfe87ccb03adc2c979110cb8fb7069928085c Mon Sep 17 00:00:00 2001 From: Alan Parra Date: Tue, 14 Jan 2025 11:33:29 -0300 Subject: [PATCH] fix: Move testGatewayConnectionFunc to proxy_helpers.go (#51022) --- integration/proxy/proxy_helpers.go | 2 ++ integration/proxy/teleterm_test.go | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/integration/proxy/proxy_helpers.go b/integration/proxy/proxy_helpers.go index e4e0823c2ce..3ed6fcb10d2 100644 --- a/integration/proxy/proxy_helpers.go +++ b/integration/proxy/proxy_helpers.go @@ -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() diff --git a/integration/proxy/teleterm_test.go b/integration/proxy/teleterm_test.go index 18b0efd4884..3cd4353c417 100644 --- a/integration/proxy/teleterm_test.go +++ b/integration/proxy/teleterm_test.go @@ -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 {