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
546a7979
Commit
546a7979
authored
Sep 20, 2018
by
Martin Wortschack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve merge conflicts
parent
a3ea22c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
143 deletions
+0
-143
spec/features/admin/admin_settings_spec.rb
spec/features/admin/admin_settings_spec.rb
+0
-143
No files found.
spec/features/admin/admin_settings_spec.rb
View file @
546a7979
...
@@ -80,15 +80,9 @@ describe 'Admin updates settings' do
...
@@ -80,15 +80,9 @@ describe 'Admin updates settings' do
select
'Are forbidden'
,
from:
'ED25519 SSH keys'
select
'Are forbidden'
,
from:
'ED25519 SSH keys'
click_on
'Save changes'
click_on
'Save changes'
end
end
<<<<<<<
HEAD
forbidden
=
ApplicationSetting
::
FORBIDDEN_KEY_VALUE
.
to_s
forbidden
=
ApplicationSetting
::
FORBIDDEN_KEY_VALUE
.
to_s
=======
forbidden
=
ApplicationSetting
::
FORBIDDEN_KEY_VALUE
.
to_s
>>>>>>>
upstream
/
master
expect
(
page
).
to
have_content
'Application settings saved successfully'
expect
(
page
).
to
have_content
'Application settings saved successfully'
expect
(
find_field
(
'RSA SSH keys'
).
value
).
to
eq
(
forbidden
)
expect
(
find_field
(
'RSA SSH keys'
).
value
).
to
eq
(
forbidden
)
expect
(
find_field
(
'DSA SSH keys'
).
value
).
to
eq
(
'0'
)
expect
(
find_field
(
'DSA SSH keys'
).
value
).
to
eq
(
'0'
)
...
@@ -198,7 +192,6 @@ describe 'Admin updates settings' do
...
@@ -198,7 +192,6 @@ describe 'Admin updates settings' do
end
end
end
end
<<<<<<<
HEAD
describe
'LDAP settings'
do
describe
'LDAP settings'
do
context
'with LDAP enabled'
do
context
'with LDAP enabled'
do
it
'Change allow group owners to manage ldap'
do
it
'Change allow group owners to manage ldap'
do
...
@@ -264,60 +257,6 @@ describe 'Admin updates settings' do
...
@@ -264,60 +257,6 @@ describe 'Admin updates settings' do
end
end
end
end
context
'CI/CD page'
do
it
'Change CI/CD settings'
do
visit
ci_cd_admin_application_settings_path
page
.
within
(
'.as-ci-cd'
)
do
check
'Default to Auto DevOps pipeline for all projects'
fill_in
'Auto devops domain'
,
with:
'domain.com'
click_button
'Save changes'
end
expect
(
Gitlab
::
CurrentSettings
.
auto_devops_enabled?
).
to
be
true
expect
(
Gitlab
::
CurrentSettings
.
auto_devops_domain
).
to
eq
(
'domain.com'
)
expect
(
page
).
to
have_content
"Application settings saved successfully"
=======
context
'Integrations page'
do
before
do
visit
integrations_admin_application_settings_path
end
it
'Enable hiding third party offers'
do
page
.
within
(
'.as-third-party-offers'
)
do
check
'Do not display offers from third parties within GitLab'
click_button
'Save changes'
end
expect
(
page
).
to
have_content
"Application settings saved successfully"
expect
(
Gitlab
::
CurrentSettings
.
hide_third_party_offers
).
to
be
true
end
it
'Change Slack Notifications Service template settings'
do
first
(
:link
,
'Service Templates'
).
click
click_link
'Slack notifications'
fill_in
'Webhook'
,
with:
'http://localhost'
fill_in
'Username'
,
with:
'test_user'
fill_in
'service_push_channel'
,
with:
'#test_channel'
page
.
check
(
'Notify only broken pipelines'
)
page
.
check
(
'Notify only default branch'
)
check_all_events
click_on
'Save'
expect
(
page
).
to
have_content
'Application settings saved successfully'
click_link
'Slack notifications'
page
.
all
(
'input[type=checkbox]'
).
each
do
|
checkbox
|
expect
(
checkbox
).
to
be_checked
end
expect
(
find_field
(
'Webhook'
).
value
).
to
eq
'http://localhost'
expect
(
find_field
(
'Username'
).
value
).
to
eq
'test_user'
expect
(
find
(
'#service_push_channel'
).
value
).
to
eq
'#test_channel'
end
end
context
'CI/CD page'
do
context
'CI/CD page'
do
it
'Change CI/CD settings'
do
it
'Change CI/CD settings'
do
visit
ci_cd_admin_application_settings_path
visit
ci_cd_admin_application_settings_path
...
@@ -352,32 +291,6 @@ describe 'Admin updates settings' do
...
@@ -352,32 +291,6 @@ describe 'Admin updates settings' do
end
end
end
end
context
'Metrics and profiling page'
do
before
do
visit
metrics_and_profiling_admin_application_settings_path
>>>>>>>
upstream
/
master
end
end
context
'Reporting page'
do
it
'Change Spam settings'
do
visit
reporting_admin_application_settings_path
<<<<<<<
HEAD
page
.
within
(
'.as-spam'
)
do
check
'Enable reCAPTCHA'
fill_in
'reCAPTCHA Site Key'
,
with:
'key'
fill_in
'reCAPTCHA Private Key'
,
with:
'key'
fill_in
'IPs per user'
,
with:
15
click_button
'Save changes'
end
expect
(
page
).
to
have_content
"Application settings saved successfully"
expect
(
Gitlab
::
CurrentSettings
.
recaptcha_enabled
).
to
be
true
expect
(
Gitlab
::
CurrentSettings
.
unique_ips_limit_per_user
).
to
eq
(
15
)
end
end
context
'Metrics and profiling page'
do
context
'Metrics and profiling page'
do
before
do
before
do
visit
metrics_and_profiling_admin_application_settings_path
visit
metrics_and_profiling_admin_application_settings_path
...
@@ -421,46 +334,6 @@ describe 'Admin updates settings' do
...
@@ -421,46 +334,6 @@ describe 'Admin updates settings' do
click_on
'Save changes'
click_on
'Save changes'
end
end
=======
it
'Change Influx settings'
do
page
.
within
(
'.as-influx'
)
do
check
'Enable InfluxDB Metrics'
click_button
'Save changes'
end
expect
(
Gitlab
::
CurrentSettings
.
metrics_enabled?
).
to
be
true
expect
(
page
).
to
have_content
"Application settings saved successfully"
end
it
'Change Prometheus settings'
do
page
.
within
(
'.as-prometheus'
)
do
check
'Enable Prometheus Metrics'
click_button
'Save changes'
end
expect
(
Gitlab
::
CurrentSettings
.
prometheus_metrics_enabled?
).
to
be
true
expect
(
page
).
to
have_content
"Application settings saved successfully"
end
it
'Change Performance bar settings'
do
group
=
create
(
:group
)
page
.
within
(
'.as-performance-bar'
)
do
check
'Enable the Performance Bar'
fill_in
'Allowed group'
,
with:
group
.
path
click_on
'Save changes'
end
expect
(
page
).
to
have_content
"Application settings saved successfully"
expect
(
find_field
(
'Enable the Performance Bar'
)).
to
be_checked
expect
(
find_field
(
'Allowed group'
).
value
).
to
eq
group
.
path
page
.
within
(
'.as-performance-bar'
)
do
uncheck
'Enable the Performance Bar'
click_on
'Save changes'
end
>>>>>>>
upstream
/
master
expect
(
page
).
to
have_content
'Application settings saved successfully'
expect
(
page
).
to
have_content
'Application settings saved successfully'
expect
(
find_field
(
'Enable the Performance Bar'
)).
not_to
be_checked
expect
(
find_field
(
'Enable the Performance Bar'
)).
not_to
be_checked
expect
(
find_field
(
'Allowed group'
).
value
).
to
be_nil
expect
(
find_field
(
'Allowed group'
).
value
).
to
be_nil
...
@@ -508,21 +381,6 @@ describe 'Admin updates settings' do
...
@@ -508,21 +381,6 @@ describe 'Admin updates settings' do
expect
(
Gitlab
::
CurrentSettings
.
help_page_support_url
).
to
eq
"http://example.com/help"
expect
(
Gitlab
::
CurrentSettings
.
help_page_support_url
).
to
eq
"http://example.com/help"
expect
(
page
).
to
have_content
"Application settings saved successfully"
expect
(
page
).
to
have_content
"Application settings saved successfully"
end
end
<<<<<<<
HEAD
it
'Change Pages settings'
do
page
.
within
(
'.as-pages'
)
do
fill_in
'Maximum size of pages (MB)'
,
with:
15
check
'Require users to prove ownership of custom domains'
click_button
'Save changes'
end
expect
(
Gitlab
::
CurrentSettings
.
max_pages_size
).
to
eq
15
expect
(
Gitlab
::
CurrentSettings
.
pages_domain_verification_enabled?
).
to
be_truthy
expect
(
page
).
to
have_content
"Application settings saved successfully"
end
=======
it
'Change Pages settings'
do
it
'Change Pages settings'
do
page
.
within
(
'.as-pages'
)
do
page
.
within
(
'.as-pages'
)
do
...
@@ -536,7 +394,6 @@ describe 'Admin updates settings' do
...
@@ -536,7 +394,6 @@ describe 'Admin updates settings' do
expect
(
page
).
to
have_content
"Application settings saved successfully"
expect
(
page
).
to
have_content
"Application settings saved successfully"
end
end
>>>>>>>
upstream
/
master
it
'Change Background jobs settings'
do
it
'Change Background jobs settings'
do
page
.
within
(
'.as-background'
)
do
page
.
within
(
'.as-background'
)
do
fill_in
'Throttling Factor'
,
with:
1
fill_in
'Throttling Factor'
,
with:
1
...
...
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