Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
186aebe3
Commit
186aebe3
authored
Jan 25, 2021
by
Quang-Minh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failed rack attack integration tests
parent
21d9ab95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/support/shared_examples/requests/rack_attack_shared_examples.rb
...t/shared_examples/requests/rack_attack_shared_examples.rb
+2
-2
No files found.
spec/support/shared_examples/requests/rack_attack_shared_examples.rb
View file @
186aebe3
...
@@ -278,7 +278,7 @@ RSpec.shared_examples 'rate-limited web authenticated requests' do
...
@@ -278,7 +278,7 @@ RSpec.shared_examples 'rate-limited web authenticated requests' do
expect
(
response
).
not_to
have_gitlab_http_status
(
:too_many_requests
)
expect
(
response
).
not_to
have_gitlab_http_status
(
:too_many_requests
)
end
end
arguments
=
{
arguments
=
a_hash_including
(
{
message:
'Rack_Attack'
,
message:
'Rack_Attack'
,
env: :throttle
,
env: :throttle
,
remote_ip:
'127.0.0.1'
,
remote_ip:
'127.0.0.1'
,
...
@@ -287,7 +287,7 @@ RSpec.shared_examples 'rate-limited web authenticated requests' do
...
@@ -287,7 +287,7 @@ RSpec.shared_examples 'rate-limited web authenticated requests' do
user_id:
user
.
id
,
user_id:
user
.
id
,
'meta.user'
=>
user
.
username
,
'meta.user'
=>
user
.
username
,
matched:
throttle_types
[
throttle_setting_prefix
]
matched:
throttle_types
[
throttle_setting_prefix
]
}
}
)
expect
(
Gitlab
::
AuthLogger
).
to
receive
(
:error
).
with
(
arguments
).
once
expect
(
Gitlab
::
AuthLogger
).
to
receive
(
:error
).
with
(
arguments
).
once
expect
{
request_authenticated_web_url
}.
not_to
exceed_query_limit
(
control_count
)
expect
{
request_authenticated_web_url
}.
not_to
exceed_query_limit
(
control_count
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment