diff --git a/integration/helpers/instance.go b/integration/helpers/instance.go index fc53e5b7d46d8..83a2e5556dd18 100644 --- a/integration/helpers/instance.go +++ b/integration/helpers/instance.go @@ -1539,7 +1539,7 @@ func (w *WebClient) SSH(termReq web.TerminalRequest) (*web.TerminalStream, error u := url.URL{ Host: w.i.Web, Scheme: client.WSS, - Path: fmt.Sprintf("/v1/webapi/sites/%v/connect", w.tc.SiteName), + Path: fmt.Sprintf("/v1/webapi/sites/%v/connect/ws", w.tc.SiteName), } data, err := json.Marshal(termReq) if err != nil { diff --git a/lib/benchmark/web.go b/lib/benchmark/web.go index 3ade60bc06352..af1cb2da9dd24 100644 --- a/lib/benchmark/web.go +++ b/lib/benchmark/web.go @@ -195,7 +195,7 @@ func connectToHost(ctx context.Context, tc *client.TeleportClient, webSession *w u := url.URL{ Host: tc.WebProxyAddr, Scheme: client.WSS, - Path: fmt.Sprintf("/v1/webapi/sites/%v/connect", tc.SiteName), + Path: fmt.Sprintf("/v1/webapi/sites/%v/connect/ws", tc.SiteName), RawQuery: url.Values{ "params": []string{string(data)}, roundtrip.AccessTokenQueryParam: []string{webSession.getToken()}, diff --git a/lib/web/assistant_test.go b/lib/web/assistant_test.go index c67f94fd6ab72..2471588458c66 100644 --- a/lib/web/assistant_test.go +++ b/lib/web/assistant_test.go @@ -435,7 +435,7 @@ func (s *WebSuite) makeAssistant(_ *testing.T, pack *authPack, conversationID, a u := url.URL{ Host: s.url().Host, Scheme: client.WSS, - Path: fmt.Sprintf("/v1/webapi/sites/%s/assistant", currentSiteShortcut), + Path: fmt.Sprintf("/v1/webapi/sites/%s/assistant/ws", currentSiteShortcut), } q := u.Query() diff --git a/lib/web/command_test.go b/lib/web/command_test.go index 1f23a65f161c7..32e16d17b59da 100644 --- a/lib/web/command_test.go +++ b/lib/web/command_test.go @@ -273,7 +273,7 @@ func (s *WebSuite) makeCommand(t *testing.T, pack *authPack, conversationID uuid u := url.URL{ Host: s.url().Host, Scheme: client.WSS, - Path: fmt.Sprintf("/v1/webapi/command/%v/execute", currentSiteShortcut), + Path: fmt.Sprintf("/v1/webapi/command/%v/execute/ws", currentSiteShortcut), } data, err := json.Marshal(req) if err != nil {