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
d8e544a6
Commit
d8e544a6
authored
Apr 04, 2018
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more tests to ee-only app settings
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
f527373d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
0 deletions
+54
-0
ee/spec/features/admin/admin_settings_spec.rb
ee/spec/features/admin/admin_settings_spec.rb
+54
-0
No files found.
ee/spec/features/admin/admin_settings_spec.rb
0 → 100644
View file @
d8e544a6
require
'spec_helper'
feature
'Admin updates EE-only settings'
do
include
StubENV
before
do
stub_env
(
'IN_MEMORY_APPLICATION_SETTINGS'
,
'false'
)
sign_in
(
create
(
:admin
))
allow
(
License
).
to
receive
(
:feature_available?
).
and_return
(
true
)
visit
admin_application_settings_path
end
scenario
'Modify GitLab Geo settings'
do
page
.
within
(
'.as-geo'
)
do
fill_in
'Connection timeout'
,
with:
15
click_button
'Save changes'
end
expect
(
Gitlab
::
CurrentSettings
.
geo_status_timeout
).
to
eq
(
15
)
expect
(
page
).
to
have_content
"Application settings saved successfully"
end
scenario
'Enable external authentication'
do
page
.
within
(
'.as-external-auth'
)
do
check
'Enable classification control using an external service'
fill_in
'Default classification label'
,
with:
'default'
click_button
'Save changes'
end
expect
(
page
).
to
have_content
"Application settings saved successfully"
end
scenario
'Enable elastic search indexing'
do
page
.
within
(
'.as-elasticsearch'
)
do
check
'Elasticsearch indexing'
click_button
'Save changes'
end
expect
(
Gitlab
::
CurrentSettings
.
elasticsearch_indexing
).
to
be_truthy
expect
(
page
).
to
have_content
"Application settings saved successfully"
end
scenario
'Enable Slack application'
do
allow
(
Gitlab
).
to
receive
(
:com?
).
and_return
(
true
)
visit
admin_application_settings_path
page
.
within
(
'.as-slack'
)
do
check
'Enable Slack application'
click_button
'Save changes'
end
expect
(
page
).
to
have_content
"Application settings saved successfully"
end
end
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