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
f319b555
Commit
f319b555
authored
Mar 15, 2018
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a number of specs to take account of the new :elastic rspec filter
parent
90760c1d
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
9 additions
and
69 deletions
+9
-69
ee/spec/models/concerns/elastic/issue_spec.rb
ee/spec/models/concerns/elastic/issue_spec.rb
+1
-7
ee/spec/models/concerns/elastic/merge_request_spec.rb
ee/spec/models/concerns/elastic/merge_request_spec.rb
+1
-7
ee/spec/models/concerns/elastic/milestone_spec.rb
ee/spec/models/concerns/elastic/milestone_spec.rb
+1
-7
ee/spec/models/concerns/elastic/note_spec.rb
ee/spec/models/concerns/elastic/note_spec.rb
+1
-7
ee/spec/models/concerns/elastic/project_spec.rb
ee/spec/models/concerns/elastic/project_spec.rb
+1
-7
ee/spec/models/concerns/elastic/project_wiki_spec.rb
ee/spec/models/concerns/elastic/project_wiki_spec.rb
+1
-7
ee/spec/models/concerns/elastic/repository_spec.rb
ee/spec/models/concerns/elastic/repository_spec.rb
+1
-7
ee/spec/models/concerns/elastic/snippet_spec.rb
ee/spec/models/concerns/elastic/snippet_spec.rb
+1
-7
ee/spec/models/repository_spec.rb
ee/spec/models/repository_spec.rb
+0
-6
ee/spec/workers/elastic_indexer_worker_spec.rb
ee/spec/workers/elastic_indexer_worker_spec.rb
+1
-7
No files found.
ee/spec/models/concerns/elastic/issue_spec.rb
View file @
f319b555
require
'spec_helper'
describe
Issue
,
elastic:
true
do
describe
Issue
,
:elastic
do
before
do
stub_ee_application_setting
(
elasticsearch_search:
true
,
elasticsearch_indexing:
true
)
Gitlab
::
Elastic
::
Helper
.
create_empty_index
end
after
do
Gitlab
::
Elastic
::
Helper
.
delete_index
stub_ee_application_setting
(
elasticsearch_search:
false
,
elasticsearch_indexing:
false
)
end
let
(
:project
)
{
create
:project
}
...
...
ee/spec/models/concerns/elastic/merge_request_spec.rb
View file @
f319b555
require
'spec_helper'
describe
MergeRequest
,
elastic:
true
do
describe
MergeRequest
,
:elastic
do
before
do
stub_ee_application_setting
(
elasticsearch_search:
true
,
elasticsearch_indexing:
true
)
Gitlab
::
Elastic
::
Helper
.
create_empty_index
end
after
do
Gitlab
::
Elastic
::
Helper
.
delete_index
stub_ee_application_setting
(
elasticsearch_search:
false
,
elasticsearch_indexing:
false
)
end
it
"searches merge requests"
do
...
...
ee/spec/models/concerns/elastic/milestone_spec.rb
View file @
f319b555
require
'spec_helper'
describe
Milestone
,
elastic:
true
do
describe
Milestone
,
:elastic
do
before
do
stub_ee_application_setting
(
elasticsearch_search:
true
,
elasticsearch_indexing:
true
)
Gitlab
::
Elastic
::
Helper
.
create_empty_index
end
after
do
Gitlab
::
Elastic
::
Helper
.
delete_index
stub_ee_application_setting
(
elasticsearch_search:
false
,
elasticsearch_indexing:
false
)
end
it
"searches milestones"
do
...
...
ee/spec/models/concerns/elastic/note_spec.rb
View file @
f319b555
require
'spec_helper'
describe
Note
,
elastic:
true
do
describe
Note
,
:elastic
do
before
do
stub_ee_application_setting
(
elasticsearch_search:
true
,
elasticsearch_indexing:
true
)
Gitlab
::
Elastic
::
Helper
.
create_empty_index
end
after
do
Gitlab
::
Elastic
::
Helper
.
delete_index
stub_ee_application_setting
(
elasticsearch_search:
false
,
elasticsearch_indexing:
false
)
end
it
"searches notes"
do
...
...
ee/spec/models/concerns/elastic/project_spec.rb
View file @
f319b555
require
'spec_helper'
describe
Project
,
elastic:
true
do
describe
Project
,
:elastic
do
before
do
stub_ee_application_setting
(
elasticsearch_search:
true
,
elasticsearch_indexing:
true
)
Gitlab
::
Elastic
::
Helper
.
create_empty_index
end
after
do
Gitlab
::
Elastic
::
Helper
.
delete_index
stub_ee_application_setting
(
elasticsearch_search:
false
,
elasticsearch_indexing:
false
)
end
it
"finds projects"
do
...
...
ee/spec/models/concerns/elastic/project_wiki_spec.rb
View file @
f319b555
require
'spec_helper'
describe
ProjectWiki
,
elastic:
true
do
describe
ProjectWiki
,
:elastic
do
before
do
stub_ee_application_setting
(
elasticsearch_search:
true
,
elasticsearch_indexing:
true
)
Gitlab
::
Elastic
::
Helper
.
create_empty_index
end
after
do
Gitlab
::
Elastic
::
Helper
.
delete_index
stub_ee_application_setting
(
elasticsearch_search:
false
,
elasticsearch_indexing:
false
)
end
it
"searches wiki page"
do
...
...
ee/spec/models/concerns/elastic/repository_spec.rb
View file @
f319b555
require
'spec_helper'
describe
Repository
,
elastic:
true
do
describe
Repository
,
:elastic
do
before
do
stub_ee_application_setting
(
elasticsearch_search:
true
,
elasticsearch_indexing:
true
)
Gitlab
::
Elastic
::
Helper
.
create_empty_index
end
after
do
Gitlab
::
Elastic
::
Helper
.
delete_index
stub_ee_application_setting
(
elasticsearch_search:
false
,
elasticsearch_indexing:
false
)
end
def
index!
(
project
)
...
...
ee/spec/models/concerns/elastic/snippet_spec.rb
View file @
f319b555
require
'spec_helper'
describe
Snippet
,
elastic:
true
do
describe
Snippet
,
:elastic
do
before
do
stub_ee_application_setting
(
elasticsearch_search:
true
,
elasticsearch_indexing:
true
)
Gitlab
::
Elastic
::
Helper
.
create_empty_index
end
after
do
Gitlab
::
Elastic
::
Helper
.
delete_index
stub_ee_application_setting
(
elasticsearch_search:
false
,
elasticsearch_indexing:
false
)
end
context
'searching snippets by code'
do
...
...
ee/spec/models/repository_spec.rb
View file @
f319b555
...
...
@@ -30,12 +30,6 @@ describe Repository do
describe
"Elastic search"
,
:elastic
do
before
do
stub_ee_application_setting
(
elasticsearch_search:
true
,
elasticsearch_indexing:
true
)
Gitlab
::
Elastic
::
Helper
.
create_empty_index
end
after
do
Gitlab
::
Elastic
::
Helper
.
delete_index
stub_ee_application_setting
(
elasticsearch_search:
false
,
elasticsearch_indexing:
false
)
end
describe
"class method find_commits_by_message_with_elastic"
do
...
...
ee/spec/workers/elastic_indexer_worker_spec.rb
View file @
f319b555
require
'spec_helper'
describe
ElasticIndexerWorker
,
elastic:
true
do
describe
ElasticIndexerWorker
,
:elastic
do
subject
{
described_class
.
new
}
before
do
...
...
@@ -8,12 +8,6 @@ describe ElasticIndexerWorker, elastic: true do
Elasticsearch
::
Model
.
client
=
Gitlab
::
Elastic
::
Client
.
build
(
Gitlab
::
CurrentSettings
.
elasticsearch_config
)
Gitlab
::
Elastic
::
Helper
.
create_empty_index
end
after
do
Gitlab
::
Elastic
::
Helper
.
delete_index
end
it
'returns true if ES disabled'
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