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
460cea1f
Commit
460cea1f
authored
Oct 12, 2021
by
Axel García
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add controller test case for OneTrust
parent
634d574e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
spec/features/users/login_spec.rb
spec/features/users/login_spec.rb
+12
-0
No files found.
spec/features/users/login_spec.rb
View file @
460cea1f
...
...
@@ -171,6 +171,18 @@ RSpec.describe 'Login', :clean_gitlab_redis_shared_state do
end
end
describe
'with OneTrust authentication'
do
before
do
stub_config
(
extra:
{
one_trust_id:
SecureRandom
.
uuid
})
end
it
'has proper Content-Security-Policy headers'
do
visit
root_path
expect
(
response_headers
[
'Content-Security-Policy'
]).
to
include
(
'https://cdn.cookielaw.org https://*.onetrust.com'
)
end
end
describe
'with two-factor authentication'
,
:js
do
def
enter_code
(
code
)
fill_in
'user_otp_attempt'
,
with:
code
...
...
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