MSP-3427 swagger refreshed
This commit is contained in:
1 parent
1f232c4271
commit
753af57524
7 files changed
+3510
-44
No files matched your search
+3
-4
@@ -179,7 +179,7 @@ func (s *AuthTestSuite) initMockSudir() (*httptest.Server, string) {
|
||||
AccessToken: "token",
|
||||
}
|
||||
data, err := json.Marshal(res)
|
||||
s.NoError(err)
|
||||
s.Require().NoError(err)
|
||||
_, err = writer.Write(data)
|
||||
s.NoError(err)
|
||||
})
|
||||
@@ -193,7 +193,7 @@ func (s *AuthTestSuite) initMockSudir() (*httptest.Server, string) {
|
||||
FamilyName: "surname",
|
||||
}
|
||||
data, err := json.Marshal(res)
|
||||
s.NoError(err)
|
||||
s.Require().NoError(err)
|
||||
_, err = writer.Write(data)
|
||||
s.NoError(err)
|
||||
})
|
||||
@@ -262,8 +262,7 @@ func (s *AuthTestSuite) TestBruteForceLogin() {
|
||||
tooManyRequestsErrorCount := &atomic.Int32{}
|
||||
unauthorizedErrorCount := &atomic.Int32{}
|
||||
group, ctx := errgroup.WithContext(context.Background())
|
||||
for i := range 100 {
|
||||
index := i
|
||||
for index := range 100 {
|
||||
group.Go(func() error {
|
||||
start := time.Now()
|
||||
response := domain.LoginResponse{}
|
||||
|
||||
Reference in new issue
Block a user