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
afc071fe
Commit
afc071fe
authored
Apr 01, 2022
by
Paul Gascou-Vaillancourt
Committed by
mc_rocha
Apr 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable ArkoseLabs feature flag globally in specs
parent
5b6c58a5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
ee/spec/features/users/arkose_labs_csp_spec.rb
ee/spec/features/users/arkose_labs_csp_spec.rb
+4
-0
ee/spec/requests/api/captcha_check_spec.rb
ee/spec/requests/api/captcha_check_spec.rb
+4
-0
spec/spec_helper.rb
spec/spec_helper.rb
+4
-0
No files found.
ee/spec/features/users/arkose_labs_csp_spec.rb
View file @
afc071fe
...
...
@@ -5,6 +5,10 @@ require 'spec_helper'
RSpec
.
describe
'ArkoseLabs content security policy'
do
let
(
:user
)
{
create
(
:user
)
}
before
do
stub_feature_flags
(
arkose_labs_login_challenge:
true
)
end
it
'has proper Content Security Policy headers'
do
visit
root_path
...
...
ee/spec/requests/api/captcha_check_spec.rb
View file @
afc071fe
...
...
@@ -21,6 +21,10 @@ RSpec.describe API::CaptchaCheck do
end
context
'when the feature flag arkose_labs_login_challenge is enabled'
do
before
do
stub_feature_flags
(
arkose_labs_login_challenge:
true
)
end
context
'when the username is invalid'
do
let
(
:invalid_username
)
{
'invalidUsername'
}
...
...
spec/spec_helper.rb
View file @
afc071fe
...
...
@@ -329,6 +329,10 @@ RSpec.configure do |config|
stub_feature_flags
(
disable_anonymous_search:
false
)
stub_feature_flags
(
disable_anonymous_project_search:
false
)
# Specs should not get a CAPTCHA challenge by default, this makes the sign-in flow simpler in
# most cases. We do test the CAPTCHA flow in the appropriate specs.
stub_feature_flags
(
arkose_labs_login_challenge:
false
)
allow
(
Gitlab
::
GitalyClient
).
to
receive
(
:can_use_disk?
).
and_return
(
enable_rugged
)
else
unstub_all_feature_flags
...
...
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