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
ee639379
Commit
ee639379
authored
Mar 27, 2020
by
mbergeron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update test cases
parent
6fb6be1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
ee/spec/models/application_setting_spec.rb
ee/spec/models/application_setting_spec.rb
+26
-0
No files found.
ee/spec/models/application_setting_spec.rb
View file @
ee639379
...
...
@@ -102,6 +102,32 @@ describe ApplicationSetting do
end
end
end
context
'when validating elasticsearch_url'
do
where
(
:elasticsearch_url
,
:is_valid
)
do
"http://es.localdomain"
|
true
"https://es.localdomain"
|
true
"http://es.localdomain, https://es.localdomain "
|
true
"http://10.0.0.1"
|
true
"https://10.0.0.1"
|
true
"http://10.0.0.1, https://10.0.0.1"
|
true
"es.localdomain"
|
false
"10.0.0.1"
|
false
"http://es.localdomain, es.localdomain"
|
false
"http://es.localdomain, 10.0.0.1"
|
false
"this_isnt_a_url"
|
false
end
with_them
do
it
do
setting
.
update_column
(
:elasticsearch_url
,
elasticsearch_url
)
expect
(
setting
.
reload
.
valid?
).
to
eq
(
is_valid
)
end
end
end
end
describe
'#should_check_namespace_plan?'
do
...
...
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