From 888a71df578111efcfc5a062f29d18610abe877d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B0=D0=B2=D0=B5=D0=BB=20=D0=9A=D0=BE=D0=BC=D0=B8?= =?UTF-8?q?=D1=81=D1=81=D0=B0=D1=80=D0=BE=D0=B2?= Date: Fri, 4 Sep 2026 10:11:59 +0300 Subject: [PATCH] MSP-8520 restore blitz --- tests/auth_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/auth_test.go b/tests/auth_test.go index dc9be45..7ccbc01 100644 --- a/tests/auth_test.go +++ b/tests/auth_test.go @@ -4,6 +4,7 @@ import ( "fmt" "net/http" "net/http/httptest" + "net/url" "strconv" "sync/atomic" "testing" @@ -54,7 +55,8 @@ func (s *AuthTestSuite) SetupTest() { s.oauthClientName = fake.It[string]() mocksrv, host := s.initMockOauth() - s.oauthCli.GlobalRequestConfig().BaseUrl = host + oauthHost, _ := url.JoinPath(host, "/blitz/") + s.oauthCli.GlobalRequestConfig().BaseUrl = oauthHost remote := conf.Remote{ Oauth: &conf.Oauth{ @@ -325,7 +327,7 @@ func (s *AuthTestSuite) TestBruteForceLogin() { func (s *AuthTestSuite) initMockOauth() (*httptest.Server, string) { mux := http.NewServeMux() - mux.HandleFunc("/oauth/te", func(writer http.ResponseWriter, request *http.Request) { + mux.HandleFunc("/blitz/oauth/te", func(writer http.ResponseWriter, request *http.Request) { res := entity.OauthTokenResponse{ OauthAuthError: nil, IdToken: "1", @@ -336,7 +338,7 @@ func (s *AuthTestSuite) initMockOauth() (*httptest.Server, string) { _, err = writer.Write(data) s.NoError(err) }) - mux.HandleFunc("/oauth/me", func(writer http.ResponseWriter, request *http.Request) { + mux.HandleFunc("/blitz/oauth/me", func(writer http.ResponseWriter, request *http.Request) { res := entity.OauthUserResponse{ OauthAuthError: nil, Email: "oauth@email.ru",